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:
00832404
Views:
26
Thanks for trying Fred. I've got a lot going on in this form. I may just have to start with a "blank" form and add pieces until I figure out what's killing me.

I appreciate all your suggestions though. If anything else comes to mind, let me know.

Rodd
>
>I don't know what to tell you, the Resize() is called for me if the form is made Visible.
>
>>
>>I am (and always was) calling my _AlignObjects method in Init(). That sizes all my objects based on the size of the form. However, everything gets sized on the "design size" of my form rather than the maximized size. This gives me the impression that Maximize hasn't taken place yet in that the height and width values of the form haven't changed yet.
>
>Same situation. The sizes are not "updated" until the form is made Visible.
>
>>Does the form "maximize" itself AFTER Init? It seems like everything points that way. If so, it seems like I'm stuck ... there's no "post_init()" method to call to cause everything to refresh.
>
>No, the Maximize does not occur after the Init. It doesn't take effect on the Height/Width properties unless the form is Visible, though.
>
>>>In your Init:
>>>
>>>thisform.LockScreen = .t.
>>>thisform.Visible = .t.
>>>thisform.WindowState = 2
>>>thisform.LockScreen = .f.
>>>
>>>
>>>Resize only seems to fire if the form is Visible when the WindowState is changed.
>>>
>>>Or you could probably get away with just calling thisform.Resize() from the .Init, too.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform