IControl

Base class for all interface controls, not used directly.

Functions
CreateControl(string name, string codeclass)
Multiple
Create a child control.

Style(string names...)
Optional(none)
names : Styles to be added

Geometry(string names...)
Optional(none)
names : Geometry attributes to be added

Size(integer width, integer height)
Optional(0, 0)
width/height : The width and height modifiers
Combined with geometry settings such as 'ParentWidth' etc
Can be negative values

Pos(integer x, integer y)
Optional(0, 0)
x/y : The position modifiers
Combined with geometry settings such as 'Right', 'Bottom' etc
Can be negative values

Align(ControlNameSpecification name)
Optional(none)
name : The name of a control to align to
Combined with geometry settings such as 'HInternal', 'Bottom' etc

TabStop(integer flag)
Optional(code specific), flag Optional(TRUE)
flag : 0 tabstop turns off, 1 tabstop turns on

ColorGroup(string name)
Optional("Sys::Default")
name : The name of the color group to use for this control

Image(TextureSpecification texture)
Optional(none)
texture : See TextureSpecification.

Cursor(string name)
Optional(none)
name : The name of a cursor to use when over this control

Text(string key)
Optional(none)
key : The multilanguage key, or temporary text, to use with this control

FormatSpec(string format)
Optional(none)
format : The printf style format spec for displaying var values

Font(string name)
Optional(none)
font : The name of a font to use with this control

JustifyText(string pos)
Optional(control specific)
pos : One of 'left', 'right' or 'centre' (or 'center' for deluded yankee designers ;)

TipText(string key)
Optional(none)
key : The multilanguage key, or temporary text, to display as a tool tip

OnEvent(string name)
Multiple
name : The name of the event to bind to
Executes the attached scope body when event occurs. See commands

TranslateEvent(string original, string translated, ControlNameSpecification control)
NotifyParent(string event1, string event2) (obsolete)
Multiple
original : The name of a notification that the code can generate
translated : The name of the event to send to parent control
control : Name of the control to send translated event to

PollInterval(integer time)
Optional(none)
time : Number of millseconds between polling events

CreateVarInteger(string name)
CreateVarFloat(string name)
CreateVarString(string name)
Multiple
name : The name of the local variable to create

Style Attributes
Transparent - The background will not be drawn
DropShadow - Draws a drop shadow beneath the control
Modal - Captures mouse and keyboard focus
ModalClose - Combines modal functionality with auto closing on external mouse click or escape key.
VGradient - Draw background with vertical gradient
HGradient - Draw background with horizontal gradient

Geometry Attributes
Top - Align to the top of target control (TRUE by default)
Left - Align to the left of target control (TRUE by default)
Right - Align to the right of target control
Bottom - Align to the bottom of target control
HCentre - Centre the control horizontally
VCentre - Centre the control vertically
Persist - Ignores all automatic geometry adjustment
ParentWidth - Takes on the width of parent control
ParentHeight - Takes on the height of parent control
Square - Takes the smaller of width/height and uses that for both values
AutoSize - Context sensitive automatic size adjustment
HInternal - Align control horizonally within target (used with Align())
VInternal - Align control vertically within target (used with Align())
KeepVisible - Prevents control from moving offscreen

Events
None