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/8d3799e613d24871a8f786805e983...@develop
** 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.