Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
THISFORM.WindowState = 2 don't change thisform.height?
Message
 
To
All
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Title:
THISFORM.WindowState = 2 don't change thisform.height?
Environment versions
Visual FoxPro:
VFP 8 SP1
Miscellaneous
Thread ID:
01249691
Message ID:
01249691
Views:
92
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
Eric Crespin
Consultant
PC PLUS Software Inc.
www.pcplus.ca
Next
Reply
Map
View

Click here to load this message in the networking platform