Problem command SAY
Posted: Fri Mar 12, 2021 9:23 am
Good morning everyone
It seems to me that there is a problem in the ADJUST clause of the SAY command, the size of the displayed text is not calculated correctly.
to verify this try the test below.
Thank you
It seems to me that there is a problem in the ADJUST clause of the SAY command, the size of the displayed text is not calculated correctly.
to verify this try the test below.
Thank you
Code: Select all | Expand
#include "FiveWin.ch"
Function Main
LOCAL oFont AS OBJECT
LOCAL oDlg AS OBJECT
LOCAL oSay AS OBJECT
oFont := tFont():new("Tahoma", 0, -12.00 ,,.F.,,,,.F.)
DEFINE DIALOG oDlg ;
SIZE 400,400 ;
TITLE "Test " + FWVERSION ;
TRUEPIXEL ;
FONT oFont
@ 20, 20 SAY oSay VAR "Percentuale detraibilita'" ;
SIZE GetTextWidth( 0, "Percentuale detraibilita'", oFont ) , oFont:nHeight * 2 ;
OF oDlg ;
PIXEL ;
FONT oFont ;
BORDER
@ 60, 20 SAY oSay VAR "Percentuale detraibilita'" ;
OF oDlg ;
PIXEL ;
FONT oFont ;
BORDER ;
ADJUST
ACTIVATE DIALOG oDlg CENTER
oFont:end()
return nil