BT_DrawTextEx() and Text bigger than size
Posted: Mon Nov 30, 2020 3:12 am
hi,
i use
Problem : cTimeText is bigger than wide / height and DOES print "outside"
height is just 1 Cell which i have pain using BT_DrawGradientFillHorizontal()
but it paint over 3 Cell ... what are i´m doing wrong
i use
Code: Select all
hWnd := GetControlHandle( cLabel, "Form_1" )
hDC := GetDC( hWnd )
BT_DrawGradientFillHorizontal( hDC, 0, 0, SP_nCellwide(), nheight, aColor, aMore )
BT_DrawTextEx( hDC, 0, 0, SP_nCellwide, nheight, cTimeText, ;
SP_cFontName(), SP_nFontSize(), BLACK, BLACK, ;
BT_TEXT_TRANSPARENT, BT_TEXT_LEFT + BT_TEXT_TOP, BT_TEXT_NORMAL_ORIENTATION )

but it paint over 3 Cell ... what are i´m doing wrong
