Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Building an EXE: How do I clear the main screen and max
Message
From
15/07/1999 02:13:31
 
 
General information
Forum:
Visual FoxPro
Category:
Project manager
Miscellaneous
Thread ID:
00241644
Message ID:
00241656
Views:
16
>>>I am building an app from scratch, no Wizards. I created a form called MENUMAIN that has menu choice buttons on it. I want that form to appear when the APP starts.
>>>
>>>I created a MAIN program and in it it has...
>>>
>>>SET DELETED ON
>>>SET TALK OFF
>>>
>>>DO FORM MENUMAIN
>>>
>>>READ EVENTS
>>>
>>>
>>>This works (surprisingly for me). The only part I really don't care for is I would prefer:
>>>
>>>a) the desktop to be completely blanked out and the menumain to be centered on the screen
>>
>>After your SET TALK OFF, put:
>>
>>CLEAR
>>_SCREEN.WindowState = 2
>>
>>
>>Then in form, menumain, set the AutoCenter = .t.
>>
>
>It'd be more transparent to put SCREEN = OFF in the CONFIG.FPW, and then to reset the screen chacteristics behind the scenes before ever making things visisble, by doing something like:
>
>CLEAR
>_SCREEN.WindowState = 2
>SYSMENU = OFF
^^^^^^^^^^^^^^ late hour typo alert!

After bitching at Craig, no excuse for getting this wrong. It's SET SYSMENU OFF in the application; SYSMENU = OFF would be how to put the equivalent into the CONFIG.FPW instead. Doh!




>_SCREEN.CAPTION = whatever he wants
>
>If the form mainmenu is non-modal he could DO FORM MainMenu and set it up autocentered as well before ever issuing the next command below, which would make the screen visible:
>
>_SCREEN.Show()
>
>and then proceding with code leading to the READ EVENTS statement which would sustain the application. If the form were modal, he'd have to make the main VFP creen visible before the DO FORM...
>
>
>>>
>>>b) the background window that automatically appears to NOT have a menubar with FILE / EDIT / WINDOW / HELP
>>
>>SET MENU OFF
>
>It's late; I'd bet you mean SET SYSMENU OFF here...
>
>>
>>>
>>>c) the Microsoft Visual Foxpro to NOT be in the title bar on that background window.
>>
>>
>>_SCREEN.Caption = "My Application"
>>
>>>
>>>
>>>How can I do this?
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