Base: IControl Class
All interface control classes share certain functions:
Functions
CreateControl(string name, stringifaceclass)
Creates a Child Control.
name can be any name you want to give the control.
ifaceclass is the class of the control
that you are creating.
ex. CreateControl("OptionWindow", "WINDOW")
BorderSize(integer size)
Function that sets up border for a control.
size: size of border
BevelSize(integer size)
Function that sets up bevel for a control.
size: size of bevel.
PollInterval(integer time)
Number of milliseconds between polling
events.
time: in milliseconds
Style(string names)
Styles for that control
names: multiple styles can be specified.
Geometry(string names)
Geometry paramaters to be added.
names: multiple paramaters can be specified.
Size(integer width, integer height)
Size of the control.
integer width, integer height: Height and width modifiers.
note: When combined with a geometry setting such as 'ParentWidth', the size set will be relative to the geometry setting.
Position(integer x, integer y)
Position of control.
integer x, integer y: Position modifiers.
note: When used with certain geometry settings, the position becomes relative to that setting.
TabStop(integer flag)
Sets wether or not a control is a tab stop.
(When you press tab, notice in editor how
it switches between buttons and edits)
integer flag: 1 turns tabstop on, 0 turns tabstop off.
ColorGroup(string name)
Sets what colorgroup a control uses.
name: name of colorgroup.
Note: When colorgroup function is not present, the colorgroup is default set to "DEFAULT"
Image(TextureSpecification texture)
Sets a texture for that control.
See: TextureSpecification.
Cursor(string name)
Tells what cursor to use on mouseover.
name: The name of the cursor to use on mouseover.
Text(string text)
Text to be displayed.
text: Text.
Font(string name)
Font to use with control.
name: font name.
JustifyText(string pos)
Justifies location of text.
pos: Either 'left', 'right', or 'centre' (center)
OnEvent(string name)
Executes the attached scope body when event occurs.
name: Name of the event to bind to.
NotifyParent(String Event1 , String Event2)
Notifies the parent when string event 1 has
occured.
event1: The name of a notification that the controls code can generate.
event2: Name of event to send to parent.
ex: NotifyParent("Button::Press", "Save");
Style Attributes
Transparent- Background will not be drawn.
Modal- Captures key and mouse focus.
Inert- Ignores Input
Outline- Gives the control a visual outline. (dont know if for every control)
Geometry Attributes
Top- Align to top of target control.
Bottom- Align to bottom of target control.
Left- Align to left of target control.
Right- Align to right of target control.
HCentre- Align to horizontal centre of target control.
VCentre- Align to vertical centre of target control.
ParentWidth- Sets width relative to that of parent.
ParentHeight- Sets height relative to that of parent.
Events
None