Dear EMG
Yes, I could see the problem which you have mentioned. The problem occurs only when you create the controls (GET and BUTTON) via the ON INIT clause.
I was able to eliminate the problem, when I created the "GET" and "BUTTON" controls from the Main() itself
- Code: Select all Expand view
FUNCTION MAIN()
LOCAL oDlg
LOCAL cVar := PADR( "This is a test", 35 )
MsgInfo(If(IsAppThemed(),"Themed","Not Themed"))
DEFINE DIALOG oDlg;
SIZE 800, 600 PIXEL
@ 1, 1 GET cVar OF oDlg SIZE 180, 25
@ 3, 1 BUTTON "&Close" OF oDlg;
ACTION oDlg:End()
ACTIVATE DIALOG oDlg
// ON INIT TEST( oDlg, @cVar );
// CENTER
RETURN NIL
Another problem which I noticed is that the size of the controls (GET and BUTTON) are different, when created from the ON INIT clause and from Main(). If I create the controls from the Main(), the controls are bigger in size.
Regards
Anser