diff options
author | graemeg <graemeg@ae50a9b5-8222-0410-bf8d-8a13f76226bf> | 2007-09-13 10:45:08 +0000 |
---|---|---|
committer | graemeg <graemeg@ae50a9b5-8222-0410-bf8d-8a13f76226bf> | 2007-09-13 10:45:08 +0000 |
commit | 60515a6cef02edd0ccab823569f10238c26f10c7 (patch) | |
tree | 7d913e6ed3f587509dcaa2cd81a88fb63982d125 /examples/apps/uidesigner/uidesigner.lpr | |
parent | 97c0f8c9a629842f647e19dc792c055895763f98 (diff) | |
download | fpGUI-60515a6cef02edd0ccab823569f10238c26f10c7.tar.xz |
* CoreLib: fpgApplication now has a Terminated property which terminates the
main event loop and application. Halt was just to harsh and objects never got
freed.
* GUI: Added a new INI Utils unit which introduces ReadOnly ini support and
can also save a form's state and position. You access the ini file via the
gINI singleton function. fpGUI Designer uses this.
* All example project now free there main forms correctly.
* Many bug fixes in GUI Designer. GUI Designer now also remembers the size and
location of most forms.
* Many of the GUI Designer forms are now maintained by the GUI Designer itself.
* GUI Designer: Started implementing a Recent Files feature so it is quicker to
open frequently used files.
Diffstat (limited to 'examples/apps/uidesigner/uidesigner.lpr')
-rw-r--r-- | examples/apps/uidesigner/uidesigner.lpr | 44 |
1 files changed, 16 insertions, 28 deletions
diff --git a/examples/apps/uidesigner/uidesigner.lpr b/examples/apps/uidesigner/uidesigner.lpr index 9405a668..fe3c980d 100644 --- a/examples/apps/uidesigner/uidesigner.lpr +++ b/examples/apps/uidesigner/uidesigner.lpr @@ -31,34 +31,22 @@ uses procedure MainProc; begin fpgApplication.Initialize; - - RegisterWidgets; - PropList := TPropertyList.Create; - maindsgn := TMainDesigner.Create; - maindsgn.CreateWindows; - maindsgn.EditedFileName := ParamStr(1); - if FileExists(maindsgn.EditedFileName) then - maindsgn.OnLoadFile(maindsgn); - - // Note: This needs improving!! - fpgApplication.ProcessMessages; - repeat - fpgWaitWindowMessage; - until (not frmMain.Visible); - -{ - repeat - try - fpgDoMessageLoop; - break; - except - on e: Exception do - ShowMessage(e.message, 'Exception'); - end; - until False; -} - -// fpgApplication.Run; + try + RegisterWidgets; + PropList := TPropertyList.Create; + maindsgn := TMainDesigner.Create; + maindsgn.CreateWindows; + maindsgn.EditedFileName := ParamStr(1); + if FileExists(maindsgn.EditedFileName) then + maindsgn.OnLoadFile(maindsgn); + + // Note: This needs improving!! + fpgApplication.MainForm := frmMain; + fpgApplication.Run; + + finally + maindsgn.Free; + end; end; begin |