Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Maximize form
Message
From
03/11/2000 18:44:38
 
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Title:
Miscellaneous
Thread ID:
00437528
Message ID:
00437917
Views:
21
>>Create the Form with the Visible property set .F., or set the property to .F. in the Load method; in the Init:
>>
>>WITH thisform
>> .lockscreen = .T.
>> =DODEFAULT()
>> .WindowState = 2
>> .visible = .t.
>> .lockscreen = .F.
>>ENDWITH
>
>Thanks Ed, I tried this setting the visible property to .F. in the Load event, your code works but a question, the Resize Event is not fired. Any cue?
>

SWAG, I haven't tried this, so it may not work, but the form may think that it's already maximized; try changing to something like:
WITH thisform
   .lockscreen = .T.
   .WindowState = 0
   =DODEFAULT()
   .WindowState = 2
   .visible = .t.
   .lockscreen = .F.
ENDWITH
It may not be possible to trigger the Resize event within the Init, since it's prior to the Show(), but it's worth a try, since it will force VFP to cause the form to resize, not just minimize. Be aware that it might well call Resize twice, slowing down the display.
EMail: EdR@edrauh.com
"See, the sun is going down..."
"No, the horizon is moving up!"
- Firesign Theater


NT and Win2K FAQ .. cWashington WSH/ADSI/WMI site
MS WSH site ........... WSH FAQ Site
Wrox Press .............. Win32 Scripting Journal
eSolutions Services, LLC

The Surgeon General has determined that prolonged exposure to the Windows Script Host may be addictive to laboratory mice and codemonkeys
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform