Contents | Index | < Browse | Browse >
GuiLoad GuiFullPathName
GuiOpen GuiName
GuiClose GuiName
GuiQuit GuiName
These commands load,open,close and unload(quit) GUIs.
When loading a GUI, you have to give the GUIs full path, i.e. :
GuiLoad GUIs:MyGUIS/ThisGui.gc
Thereafter, the GUIs are referred to by the file name only, i.e. :
GuiOpen ThisGui.gc (or GuiOpen #This)
When opening/closing etc the GUIs, the respective events :
xOnLoad, xOnOpen, xOnClose and xOnQuit
are executed, if defined.
Starting with V3.2, these commands can also take Arguments
This ability makes them very powerfull, allowing for function-type
guis which can be called at will. (see guis:tools/rtn)
***** IMPORTANT note about GuiQuit :
When an GuiQuit is encountered, the file which has been instructed
to quit is marked as such and the execution of the commands
continues uninterrupted.
When all the commands have executed, then Gui4Cli looks around to
see if there are any files marked for deletion, and deletes
(unloads) them.
So, if you want a gui to quit immediately, you have to issue a STOP
command after the GuiQuit command :
Guiquit mygui.gc
Stop
; more commands here..
otherwise the commands following GuiQuit *will* be executed, and
the file will be unloaded afterwards..