Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Top Level Form Menu

Status
Not open for further replies.

fdc

IS-IT--Management
Dec 26, 2001
15
US
How can I make form/menu active upon startup?
Have modal form as top level and menu as top level within exe.
EVERYTHING works........except upon start form is not active and I have to 'click'.
Pressing 'Enter' activates last used windows function (such as Windows Explorer).
From start program I have the statement 'Do form mainfrm'
In init event of Mainfrm I do the following:
application.visible = .f.
do mainmnu.mpr with this,.t.
Any help is appreciated.
FDC
 
HI
In your main form.. check the windowState property. This shall be normal or maximised.
Hope this helps you :) ramani :-9
(Subramanian.G),FoxAcc, ramani_g@yahoo.com
 
FDC,
First, Modal and Top-Level are mutually exclusive - can't happen. Try moving 'application.visible = .f.' out to your main program (just before 'Do form mainfrm'). Having a CONFIG.FPW with SCREEN=OFF in it, included in the project, is also a good idea.

Rick
 
Complied with both suggestions.........still same.
Thanks.
 
Is the reason my program runs fine in foxpro and then no screens are visable when I run the compiled .exe program with SCREEN=OFF because I dont have the main form set to TOP LEVEL, It runs fine when I dont have SCREEN = OFF in the config file.

Maby there is a checklist or something for all this stuff, there is probbly a million combinations of the wrong way to have things set up.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top