Contents | Index | < Browse | Browse >
NEWFILE NewFileName
This is a "parser" command, i.e. it is executed while G4C is reading
your file. It enables you to have many GUIs in one file.
When G4C encounters this command in a file, it marks the beginning
of a new GUI. No new "G4C" marker is needed !!
example :
----------------- File named test1.gc
G4C
WinBig -1 -1 400 100 "test 1"
NEWFILE test2.gc
WinBig 10 10 300 150 "test 2"
----------------- end of file
This file, when loaded, will result in 2 GUIs, one named test1.gc and
another named test2.gc.
Example : Run Gui Source
IMPORTANT :
Such multiple GUI files have the following limitations :
- Only the xOnload commands of the 1st file will be executed.
xOnLoad events of other files, if present, will be ignored.
- On Ctrl-R (reload), all GUIs contained in the file will be reloaded
but only the GUI you asked to reload, will have quit first, so
you will get reports that the other files exist - This is normal.
- On Ctrl-E (edit), the "mother" file will be loaded for editing.
- RESIZE_BIG & RESIZE_SMALL commands now have filename. But the
old versions will also work.