Hi Dave, Tried your suggestion without success. Incidentally the _Screen.Height = 0 made the app open up showing the ribbon with about an inch of desktop. Have solved it with:
_Screen.Windowstate=2 _Screen.Width = Sysmetric(1) _Screen.Height=Sysmetric(2) May I email you direct my Main Program. Some of your suggestions were a better way of doing things than mine and have been incorporated. Thanks anyway. Cheers Peter -----Original Message----- From: [email protected] [mailto:[email protected]] On Behalf Of Peter Hart Sent: 28 July 2009 14:30 To: ProFox Email List Subject: RE: My App does not display properly. Thanks for that Dave, But: The CommandBars control allows you to create a main form then in the Command Bars Manager you set AttachToScreen to True. The Main for is actually just a container for the Ribbon. I will try your suggestions although my Config.fpw does contain the commands you suggest plus a "Command = _Screen.WindowState = 2". Cheers Peter -----Original Message----- From: [email protected] [mailto:[email protected]] On Behalf Of Dave Crozier Sent: 28 July 2009 13:16 To: 'ProFox Email List' Subject: RE: My App does not display properly. Peter, Try this 1. Embed config.fpw in your executable SEREEN=OFF DATE=BRITISH EXCLUSIVE=OFF 2. Your stub loader program like this _Screen.Windowstate=1 _Screen.Height=0 Set_Environment() && All the Set....to commands go here On Shutdown Execscript( ; "On Shutdown"+chr(13) ; +"Quit"+chr(13) ; +"Clear Events" ; +chr(13) ; +"Quit"+chr(13)) Do Form Main Read events * Return 3. Your main form needs to have the following properties Desktop=.T. ControlBox=.F. MaxButton=.F. ShowWindow=2 && As top level Form In the Form Unload check for Runtime mode Version(2)=0 in which case do nothing else simply do: On Shutdown * Clear events Cancel && or quit That should give you a single form application startup form. Obviously you can then call any other forms you need from either a menu attached to this form or from buttons. This is mostly off the top of my head so it may need a couple of tweaks but it shows the basic steps needed. Dave Crozier -----Original Message----- From: [email protected] [mailto:[email protected]] On Behalf Of Peter Hart Sent: 28 July 2009 12:36 To: ProFox Email List Subject: Re: My App does not display properly. My Purchase Ledger Application is proceeding well, so I decided it was time to build it into an Executable. I have a main program containing "Do MySplashScreen" and "Do MyMainForm" to which I added as the last line "Read Events" In the CommandBars Manager I added to the "On Action" code for the Exit Application button "Clear all", "Clear Events" This works but any ideas on the best ways to set-up the application i.e. a main program starting the main form and every thing run from there. The Executable works but does not display maximised to my monitor, and if I click the Zoom button the application maximises but the monitor only displays the same area on screen i.e. the initial display is the top left-hand quarter of the screen. The Desktop wallpaper can be seen everywhere else. The same applies to the fully zoomed view except that the Minimise, Zoom and Exit buttons have disappeared to the right. I have a "_Screen.WindowState = 2" Line near the top of my Main Program. Any help would be much appreciated. Peter Hart [excessive quoting removed by server] _______________________________________________ Post Messages to: [email protected] Subscription Maintenance: http://leafe.com/mailman/listinfo/profox OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech Searchable Archive: http://leafe.com/archives/search/profox This message: http://leafe.com/archives/byMID/profox/a57fa4cf19531343a2ee11b57db8e3af04c...@server.peterhartcomputers.local ** All postings, unless explicitly stated otherwise, are the opinions of the author, and do not constitute legal or medical advice. This statement is added to the messages for those lawyers who are too stupid to see the obvious.

