Core Controls

Core parts of the Gui System.

Enumeration

enum GuiAlignmentType
Parameters:
  • Left
  • Center
  • Right
  • Top
  • Bottom
enum GuiFontCharset
Parameters:
  • ANSI
  • SYMBOL
  • SHIFTJIS
  • HANGEUL
  • HANGUL
  • GB2312
  • CHINESEBIG5
  • OEM
  • JOHAB
  • HEBREW
  • ARABIC
  • GREEK
  • TURKISH
  • VIETNAMESE
  • THAI
  • EASTEUROPE
  • RUSSIAN
  • MAC
  • BALTIC
enum GuiHorizontalSizing

Horizontal sizing behavior of a GuiControl .

Parameters:
  • right
  • width
  • left
  • center
  • relative
  • windowRelative
enum GuiVerticalSizing

Vertical sizing behavior of a GuiControl .

Parameters:
  • bottom
  • height
  • top
  • center
  • relative
  • windowRelative

Functions

bool excludeOtherInstance(string appIdentifer)

Used to exclude/prevent all other instances using the same identifier specified.

Parameters:appIdentifier – Name of the app set up for exclusive use.
Returns:False if another app is running that specified the same appIdentifier
string StripMLControlChars(string inString)

Strip TorqueML control characters from the specified string, returning a ‘clean’ version.

Parameters:inString – String to strip TorqueML control characters from.
Returns:Version of the inputted string with all TorqueML characters removed.

Example:

// Define the string to strip TorqueML control characters from
%string = "<font:Arial:24>How Now <color:c43c12>Brown <color:000000>Cow";

// Request the stripped version of the string
%strippedString = StripMLControlChars(%string);

Variables

GuiControl $ThisControl

The control for which a command is currently being evaluated. Only set during ‘command’ and altCommand callbacks to the control for which the command or altCommand is invoked.