Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Maximize not calling resize ??
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00832301
Message ID:
00832380
Views:
22
Try doing a Thisform.WindowState=2 in your form's Load or Init events.


>I have a form with the following:
>
>1) WindowState = Maximize (set at design time)
>2) resize event calls this._AlignObjects()
>3) init event calls this._AlignObjects(.T.)
>
>_AlignObjects is used to resize and rearrange objects on the screen based on the sizing of the form. However, when I launch the form, the form does maximize like it's supposed to but the objects on my screen are all sized to the initial (design) size of my form. Its as though maximizing is not calling my resize event.
>
>I even added the following code to _AlignObjects:
>
>
>= messagebox("Align "+iif(lInit,"TRUE","FALSE")
>
>
>The message box only appears once during the launch of the form and it states "Align TRUE" meaning that it was called from the Init() method and not from resize().
>
>Once the form is up and running, I can click on the Restore Down button and then Maximize again and everything works great.
>
>How can the form maximizing ignore the resize event?
>
>Any ideas? Thanks!
Fred
Microsoft Visual FoxPro MVP

foxcentral.net
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform