Contents | Index | < Browse | Browse >
* T h i n g s y o u s h o u l d k n o w :
Variables Must read.
Internal Variables List Must read.
Keyboard Shortcuts Very usefull shortcuts.
Passing Arguments Pass args to routines & guis
Translation Interpretation of arguments
Making Commands Lines Tricks & tips of forming commands
C Programs interface Talk to Gui4Cli & add new commands
DataBase Listviews Columns, Fields etc
Mathematical Calculations Floats & functions
Using the Clipboard How to Load/Save clips.
ARexx How to talk to ARexx
Finding Paths Make GUIs run from anywhere.
Resizable Windows How to make Guis resizable.
Gui Names Using #This
Fonts Fonts & Font commands.
Font Sensitivity Font Sensing
Thigs you can wait for
Operators + - * / and others..
The SET command Some important commands you
Attributes might miss...
Extract
------------------------------------------------------------
Writing Programs:
In Gui4Cli, commands can not span lines.
A line can be 1000 characters long (you can increase this with
the SET BUFFERS command)
A ";" character ends the line (unless it is inside a quoted
string), and you may place comments or anything else after it.
A "parser" is computer-jargon for that part of the program that
reads your program file and tries to make sense out of it.
The parser, in this case, is pretty simple-minded. It's designed
to be as fast as possible - not as intuitive as possible. Do
not try to confuse it because you probably will.
When you write commands, separate each argument with a space or
a comma.
IF $Variable= 10 <- is NOT correct.
IF $Variable=10 <- is NOT correct.
IF $Variable = 10 <- IS correct.
Use of Quotes:
A string which starts with " ends with a " and if it starts with
a ' it ends with another '
If you load files and put them in a variable, and if these files
contain a space they will be quoted e.g. "Ram Disk:MyFile"
So, if your arguments are likely to contain such quoted strings,
it is vital that you use single quotes ' to surround each
argument.
Debugging :
When writing a GUI, apart from the DEBUG mode (which you can
activate with Control-D), there are 2 other useful keys:
Control E - will run "c:ed" loading the GUI for editing.
(can be changed to any name with the SET command)
Control R - will Re-Load the active GUI.
These will make editing much easier, especially for seeing the
positions of the gadgets and graphics.