Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
WindowState property
Message
From
07/12/1999 13:07:36
 
 
To
07/12/1999 12:53:13
General information
Forum:
Visual FoxPro
Category:
Troubleshooting
Miscellaneous
Thread ID:
00299794
Message ID:
00299862
Views:
14
>>_SCREEN.WindowState is not always reliable. Besides, why would you want your app to open minimized, anyway?
>
>Some users want her app. open minimized when they logon. And they just have to maximize it when they want to use it !

Put a SCREEN = OFF in CONFIG.FPW, and then set _SCREEN.WindowsState to whatever you like before issuing an _SCREEN.Show(). Let the user configure the starting mode in the app. My preference would be to store the user selection in the registry under the HKEY_CURRENT_USER key; doing this will allow the user's selection to move with them when they work on a different machine if the network is set up to support floating registry hives (a part of the registry related to the userid is stored to a network folder that's loaded and set when the user logs in; this permits selected registry settings to follow a user from machine to machine, but requires a bit of care and diligence when setting up the network environment.) Putting the value in the registry under HKEY_CURRENT_USER also works in the non-network environment where multiple user profiles are available on the system.
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
Reply
Map
View

Click here to load this message in the networking platform