Global commands are commands sent to the client program from your application program to control global actions that are not specific to any particular form or control. They affect global operations of the TrueGUI system and the client application. All global commands begin with the "TrueGUI" class identifier and must be enclosed in curly braces to identify them to the TrueGui command parser. The "TrueGUI" specifier may be omitted if the property or method being referred to does not conflict with any other class property or method that is being used.
TrueGUI global commands have one the following formats:
{ TrueGui.Property=Value }
{ TrueGui.Method(Argument List) }
TrueGUI - the class ID which identifies the TrueGUI static class for all global commands. Note that beginning with beta version 105, this explicit TrueGUI class identifier is optional. The above two commands may be more conveniently written as simply:
{ Property=Value }
{ Method(Argument List) }
Property - the name of the TrueGUI property being referenced.
Value - the value (string, integer, True, False etc) that the property is being set to.
Method - the name of the TrueGUI method to be executed.
Argument List - optional arguments passed to the method being executed.
Some examples of TrueGUI class property commands are:
{ TrueGui.FormsDirectory=String } - sets the current forms directory path
{ TrueGui.FormsDirectory? } - returns the current forms directory path
{ TrueGui.StringDelimiter=Character } - sets the current string delimiter character
{ TrueGui.StringDelimiter? } - returns the current string delimiter character
{ TrueGui.BeginCommand=Character } - sets the current begin command identifier
{ TrueGui.EndCommand=Character } - sets the current end command identifier
{ TrueGui.Version? } - returns the current TrueGUI version
{ TrueGui.Connected? } - returns the current network connected status
{ TrueGui.EventCount? } - returns the current event item count in the event queue
{ TrueGui.NextEvent? } - returns the next event item in the event queue
Some examples of TrueGUI class method commands are:
{ TrueGui.LoadAssembly(Assembly) } - loads the specified assembly file. (See Assembly)
{ TrueGui.Reset() } - resets certain global variables in the TrueGUI class for client application reuse
For a complete list of the supported TrueGUI class properties and methods, refer to the TrueGuiInterface help file.