I put the following code in the THISFORM.do_after_init of my form (last line of my form class method init):
WAIT STR(THISFORM.Width) + " x " + STR(THISFORM.Height) + " BEFORE" WINDOW
THISFORM.WindowState = 2
WAIT STR(THISFORM.Width) + " x " + STR(THISFORM.Height) + " AFTER" WINDOW
I was very surprise to see that the second wait shows the same size as before. I have a button on the screen. When I clic it, then it has the proper size.
When does thisform.width and height get updated if not when changing windowstate ?
Thks
Eric