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
General information
Forum:
Visual FoxPro
Category:
Project manager
Miscellaneous
Thread ID:
00241644
Message ID:
00242068
Views:
27
>>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
>>
>>b) the background window that automatically appears to NOT have a menubar with FILE / EDIT / WINDOW / HELP
>>
>>c) the Microsoft Visual Foxpro to NOT be in the title bar on that background window.
>>
>>
>>How can I do this?
>
>If you create a text file called CONFIG.FPW containing:
>
>TITLE=What I want in the caption
>SYSMENU=OFF
>
>
>And in the project, include that file to be compiled into your application, it should start with no menu showing, and the caption should be what you put by TITLE= .
>
>-Lou.

Also, if you wanted to be even more tricky, you could include:
SCREEN=OFF
in the CONFIG.FPW file which will start your application with _SCREEN.Visible set to .F. Then in your main program:
SET DELETED ON
SET TALK OFF
_SCREEN.WindowState = 2  && maximize main window
_SCREEN.Visible = .T.  && necessary to have your form show up correctly

DO FORM MENUMAIN  && if you have AutoCenter = .T. this will be in the center

READ EVENTS
"All my life I said I wanted to be someone ...
I can see now that I should have been more specific." -Jane Wagner
Previous
Reply
Map
View

Click here to load this message in the networking platform