I wanna share mode of change alignment of a button native. ( yet don't have in sintax option RIGHT or LEFT and by default is Centered )
Well is simple look:
@ 5,5 Button oBtn Prompt Replicate(" ",2)+"&1 - Cheque" Of oDlg Size 190,18 Pixel
SetAlignTextButton( oBtn, "LEFT" )
Function:
My Result:


Well is simple look:
@ 5,5 Button oBtn Prompt Replicate(" ",2)+"&1 - Cheque" Of oDlg Size 190,18 Pixel
SetAlignTextButton( oBtn, "LEFT" )
Function:
//----------------------------------------------------------------------------------------------------------------------//
#define BS_LEFT 0x00000100L
#define BS_RIGHT 0x00000200L
#define BS_CENTER 0x00000300L
#define BS_TOP 0x00000400L
#define BS_BOTTOM 0x00000800L
#define BS_VCENTER 0x00000C00L
//----------------------------------------------------------------------------------------------------------------------//
Function SetAlignTextButton( oButton, cType )
If cType == "LEFT"
oButton:nStyle:=nOr(oButton:nStyle,BS_LEFT)
ElseIf cType == "RIGHT"
oButton:nStyle:=nOr(oButton:nStyle,BS_RIGHT)
ENDIF
Return Nil
//----------------------------------------------------------------------------------------------------------------------//My Result:

