fo_main makes the form the application's main GUI face and event receiver, and its icon the application's icon
Source position: mseforms.pas line 52
type formoptionty = ( |
||
fo_main, |
||
fo_terminateonclose, |
||
fo_freeonclose, |
||
fo_windowclosecancel, |
||
fo_defaultpos, |
||
fo_screencentered, |
||
fo_screencenteredvirt, |
||
fo_transientforcentered, |
||
fo_mainwindowcentered, |
||
fo_modal, |
||
fo_createmodal, |
||
fo_minimized, |
||
fo_maximized, |
||
fo_fullscreen, |
||
fo_fullscreenvirt, |
||
fo_closeonesc, |
||
fo_cancelonesc, |
||
fo_closeonenter, |
||
fo_closeonf10, |
||
fo_keycloseifwinonly, |
||
fo_nowindowclose, |
||
fo_globalshortcuts, |
|
Adjust shortcut handling for an undocked |
fo_localshortcuts, |
||
fo_autoreadstat, |
||
fo_delayedreadstat, |
||
fo_autowritestat, |
||
fo_savepos, |
||
fo_savezorder, |
||
fo_savestate |
||
); |
fo_main makes the form the application's main GUI face and event receiver, and its icon the application's icon. fo_terminateonclose terminates the application once the form has closed, independently of fo_main. fo_freeonclose releases the form's memory on closure (even for a modal form), once oncanclose accepts closing.
fo_closeonesc closes the form with mr_escape (not mr_windowclosed) when Escape is pressed. fo_defaultpos discards the design-time position on the window's first creation, so the window manager can place it freely (do not set it from onexecute). fo_minimized, fo_maximized and fo_fullscreen set the initial window state. Window position, size and state are saved by the connected tstatfile if fo_savestate is set; restoring the user's last state is usually preferable to forcing one of these initial states. More generally, the form calls tstatfile.readstat/writestat automatically only if fo_autoreadstat/fo_autowritestat is set; otherwise call them programmatically, or use a tactivator.