You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
CREATESLIDER(name, x, y, width, height, min, max, current)
Create slider
name, x, y, width, height, min, max, current
CREATECHECKBOX(name, x, y, width, height, text, checked)
Create checkbox
name, x, y, width, height, text, checked
CREATECOMBOBOX(name, x, y, width, height)
Create combo box
name, x, y, width, height
CREATEPROGRESSBAR(name, x, y, width, height, min, max, current)
Create progress bar
name, x, y, width, height, min, max, current
CREATELISTVIEW(name, x, y, width, height)
Create list view
name, x, y, width, height
CREATEWINDOW(name, x, y, width, height, title)
Create window
name, x, y, width, height, title
CREATEPANEL(name, x, y, width, height)
Create panel
name, x, y, width, height
Control Properties
Text Properties
Function
Description
Parameters
SETCONTROLTEXT(control_id, text)
Set control text
control_id, text
GETCONTROLTEXT(control_id)
Get control text
control_id
Value Properties
Function
Description
Parameters
SETCONTROLVALUE(control_id, value)
Set control value
control_id, value
GETCONTROLVALUE(control_id)
Get control value
control_id
Position and Size
Function
Description
Parameters
SETCONTROLPOSITION(control_id, x, y)
Set control position
control_id, x, y
SETCONTROLSIZE(control_id, width, height)
Set control size
control_id, width, height
Visibility and State
Function
Description
Parameters
SETCONTROLVISIBLE(control_id, visible)
Set control visibility
control_id, visible (true/false)
SETCONTROLENABLED(control_id, enabled)
Set control enabled state
control_id, enabled (true/false)
Specialized Control Functions
Check Box
Function
Description
Parameters
SETCHECKBOXCHECKED(control_id, checked)
Set checkbox state
control_id, checked (true/false)
ISCHECKBOXCHECKED(control_id)
Get checkbox state
control_id
Slider
Function
Description
Parameters
SETSLIDERVALUE(control_id, value)
Set slider value
control_id, value (number)
GETSLIDERVALUE(control_id)
Get slider value
control_id
Progress Bar
Function
Description
Parameters
SETPROGRESSBARVALUE(control_id, value)
Set progress bar value
control_id, value (number)
GETPROGRESSBARVALUE(control_id)
Get progress bar value
control_id
Combo Box
Function
Description
Parameters
ADDCOMBOBOXITEM(control_id, item)
Add item to combo box
control_id, item (text)
CLEARCOMBOBOXITEMS(control_id)
Clear all combo box items
control_id
SETCOMBOBOXSELECTED(control_id, index)
Set selected item
control_id, index (number)
GETCOMBOBOXSELECTED(control_id)
Get selected item index
control_id
List View
Function
Description
Parameters
ADDLISTVIEWITEM(control_id, item)
Add item to list view
control_id, item (text)
CLEARLISTVIEWITEMS(control_id)
Clear all list view items
control_id
SETLISTVIEWSELECTED(control_id, index)
Set selected item
control_id, index (number)
GETLISTVIEWSELECTED(control_id)
Get selected item index
control_id
Layout System
Function
Description
Parameters
CREATEHORIZONTALLAYOUT(x, y, width, height)
Create horizontal layout
x, y, width, height
CREATEVERTICALLAYOUT(x, y, width, height)
Create vertical layout
x, y, width, height
CREATEGRIDLAYOUT(x, y, width, height, columns, rows)
Create grid layout
x, y, width, height, columns, rows
ADDTOLAYOUT(layout_id, control_id)
Add control to layout
layout_id, control_id
UPDATELAYOUT(layout_id)
Update layout
layout_id
Style System
Function
Description
Parameters
USEDEFAULTSTYLE()
Use default style
None
USEDARKSTYLE()
Use dark style
None
USELIGHTSTYLE()
Use light style
None
USEGAMESTYLE()
Use game style
None
Control Management
Function
Description
Parameters
DESTROYCONTROL(control_id)
Destroy specific control
control_id
DESTROYALLCONTROLS()
Destroy all controls
None
Common Patterns
Basic GUI Setup
INITGAMESYSTEMS()
INITGUI()
REM Your GUI code here
UPDATEGUI()
DRAWGUI()
DESTROYALLCONTROLS()
SHUTDOWNGUI()
SHUTDOWNGAMESYSTEMS()
Main Loop Pattern
WHILENOT WINDOWSHOULDCLOSE()
UPDATEGUI()
REM Handle user interactions
VAR slider_value = GETSLIDERVALUE(slider_id)
VAR checkbox_state = ISCHECKBOXCHECKED(checkbox_id)
DRAWGUI()
SLEEP(16)
ENDWHILE
Creating Multiple Controls
VAR buttons[5]
VAR i =0WHILE i <5
buttons[i] = CREATEBUTTON("button"+ STR(i), 20, 20+ i *40, 100, 30, "Button "+ STR(i))
i = i +1
ENDWHILE