Skip to main content

Gui Library Reference

The EasyBite GUI library empowers users to build interactive applications by providing functions to create and manage forms (windows) and various controls such as buttons, labels, textboxes, and more advanced elements like treeviews and sliders. Key benefits include:

  • Simplicity: Intuitive functions make GUI development accessible without deep technical knowledge.
  • Integration: Seamlessly works within EasyBite’s runtime, ensuring safety and ease of use.
  • Versatility: Supports a wide range of controls and layouts for diverse application needs.

This reference mirrors the structure of the EasyBite system and socket library documentation, using tables to list functions with their parameters and descriptions, followed by examples demonstrating their usage.


Form Creation and Management

FunctionParametersDescription
createformtitle (String), width (Number), height (Number)Creates a new form with the specified title and dimensions. Returns a FormObject.
runappform_id (FormObject)Runs the application with the specified form as the main window.
setresizableform_id (FormObject), resizable (Bool)Sets whether the form can be resized by the user.
getresizableform_id (FormObject)Returns whether the form is resizable (true or false).
setstartpositionform_id (FormObject), position (String: "centerscreen"/"manual")Sets the form’s starting position.
getstartpositionform_id (FormObject)Returns the form’s starting position as a string.
setfullscreenform_id (FormObject), fullscreen (Bool)Toggles fullscreen mode.
getfullscreenform_id (FormObject)Returns whether the form is in fullscreen mode.
setpositionform_id (FormObject), x (Number), y (Number)Sets the form’s position (when start position is "manual").
setmaximizedform_id (FormObject), maximized (Bool)Toggles maximized state.
getmaximizedform_id (FormObject)Returns whether the form is maximized.
setborderform_id (FormObject), border (Bool)Toggles the form’s border.
getborderform_id (FormObject)Returns whether the form has a border.
showformform_id (FormObject)Makes the form visible.
hideformform_id (FormObject)Hides the form.
exitExits the running application.
restoreform_id (FormObject)Restores from maximized/fullscreen to normal.
closeformform_id (FormObject)Closes and removes the form.

Control Creation

Label

ParameterTypeDescription
form_idFormObjectParent form object.
textStringDisplay text.
Optional:Variousx, y, width, height (Number)
autosize (Bool)
fontname (String)
fontsize (Number)
fontweight (String)
forecolor, backcolor (String)

Example

import gui

set form to gui.createform("Label Demo", 300, 150)
set lbl to gui.label(form, "Username:", 10, 10, 80, 20, true, "SegoeUI", 12, "regular", "#000000", "#FFFFFF")
gui.runapp(form)

Button

ParameterTypeDescription
form_idFormObjectParent form object.
textStringButton text.
Optional:Variouscallback (Function)
x, y, width, height (Number)
autosize (Bool)
fontname (String)
fontsize (Number)
fontweight (String)
forecolor, backcolor (String)

Example

import gui

function onClick()
show("Button clicked!")
end function

set form to gui.createform("Button Demo", 300, 150)
set btn to gui.button(form, "Click Me", onClick, 50, 50, 100, 30)
gui.runapp(form)

TextBox

ParameterTypeDescription
form_idFormObjectParent form object.
textStringInitial text.
Optional:VariousSame optional parameters as Button.

Example

import gui

set form to gui.createform("TextBox Demo", 300, 150)
set txt to gui.textbox(form, "", 10, 10, 200, 25)
gui.runapp(form)

CheckBox

ParameterTypeDescription
form_idFormObjectParent form object.
textStringLabel text.
Optional:VariousSame optional parameters as Button, plus checked (Bool).

Example

import gui

set form to gui.createform("CheckBox Demo", 300, 150)
set chk to gui.checkbox(form, "Accept Terms", 10, 10, 120, 20, false)
gui.runapp(form)

RadioBox

ParameterTypeDescription
form_idFormObjectParent form object.
textStringLabel text.
groupStringGroup name (for grouping radio buttons).
Optional:VariousSame as CheckBox, plus checked (Bool).

Example

import gui

set form to gui.createform("RadioBox Demo", 300, 150)
set rb1 to gui.radiobox(form, "Option A", "grp1", 10, 10, 100, 20, true)
set rb2 to gui.radiobox(form, "Option B", "grp1", 10, 40, 100, 20, false)
gui.runapp(form)

GroupBox

ParameterTypeDescription
form_idFormObjectParent form object.
titleStringGroup box title.
Optional:Variousx, y, width, height (Number), border (Bool).

Example

import gui

set form to gui.createform("GroupBox Demo", 300, 200)
set grp to gui.groupbox(form, "User Info", 10, 10, 280, 100, true)
gui.runapp(form)

Panel

ParameterTypeDescription
form_idFormObjectParent form object.
Optional:Variousx, y, width, height (Number), border (Bool).

Example

import gui

set form to gui.createform("Panel Demo", 300, 200)
set pnl to gui.panel(form, 10, 10, 280, 100, true)
gui.runapp(form)

Card

ParameterTypeDescription
form_idFormObjectParent form object.
Optional:Variousx, y, width, height (Number).

Example

import gui

set form to gui.createform("Card Demo", 300, 200)
set card to gui.card(form, 10, 10, 280, 100)
gui.runapp(form)

ParameterTypeDescription
form_idFormObjectParent form object.
Optional:Variousx (Number), width (Number), dock (String: "left"/"right").

Example

import gui

set form to gui.createform("Sidebar Demo", 400, 300)
set sb to gui.sidebar(form, 0, 100, "left")
gui.runapp(form)

Pages (Tabbed)

ParameterTypeDescription
form_idFormObjectParent form object.
Optional:Variouspage_titles (Array), default_panel (Bool), x, y, width, height (Number).

Example

import gui

set form to gui.createform("Pages Demo", 400, 300)
set tabs to gui.pages(form, ["Home","Settings"], true, 10, 10, 380, 280)
gui.runapp(form)

PictureBox

ParameterTypeDescription
form_idFormObjectParent form object.
Optional:Variousx, y, width, height (Number).

Example

import gui

set form to gui.createform("PictureBox Demo", 300, 250)
set pb to gui.picturebox(form, 10, 10, 280, 200)
gui.setimage(pb, "path/to/image.png")
gui.runapp(form)

ProgressBar

ParameterTypeDescription
form_idFormObjectParent form object.
Optional:Variousx, y, width, height (Number).

Example

import gui

set form to gui.createform("ProgressBar Demo", 300, 150)
set pb to gui.progressbar(form, 10, 10, 280, 20)
gui.setvalue(pb, 50)
gui.runapp(form)

ScrollBar

ParameterTypeDescription
form_idFormObjectParent form object.
orientationString"horizontal" or "vertical".
Optional:Variousx, y, width, height (Number).

Example

import gui

set form to gui.createform("ScrollBar Demo", 200, 150)
set sb to gui.scrollbar(form, "vertical", 180, 10, 10, 130)
gui.runapp(form)

Timer

ParameterTypeDescription
Optional:Variousinterval (Number, ms), callback (Function).

Example

import gui

function onTick()
show("Tick")
end function

set t to gui.timer(1000, onTick)
gui.starttimer(t)

DateTimePicker

ParameterTypeDescription
form_idFormObjectParent form object.
Optional:Variousx, y, width, height (Number), format (String).

Example

import gui

set form to gui.createform("DateTimePicker Demo", 300, 200)
set dt to gui.datetimepicker(form, 10, 10, 200, 25, "yyyy-MM-dd HH:mm")
gui.runapp(form)

TimePicker

ParameterTypeDescription
form_idFormObjectParent form object.
Optional:VariousSame as DateTimePicker.

Example

import gui

set form to gui.createform("TimePicker Demo", 300, 200)
set tp to gui.timepicker(form, 10, 10, 200, 25, "HH:mm")
gui.runapp(form)

Table

ParameterTypeDescription
form_idFormObjectParent form object.
Optional:Variousx, y, width, height (Number)
fontname (String)
fontsize (Number)
forecolor, backcolor (String)
text_alignment (String)

Example

import gui

set form to gui.createform("Table Demo", 400, 250)
set tbl to gui.table(form, 10, 10, 380, 200)
gui.settabledata(tbl, ["Name","Age"], [["Alice",30],["Bob",25]])
gui.runapp(form)

ParameterTypeDescription
form_idFormObjectParent form object.
Optional:Variousx, y, width (Number).

Example

import gui

set form to gui.createform("Menu Demo", 400, 300)
set mnu to gui.menu(form, 0, 0, 400)
gui.menuitem(mnu, "File", null, [
{ label: "Open", callback: onOpen },
{ label: "Exit", callback: onExit }
])
gui.runapp(form)

function onOpen()
show("Open selected")
end function

function onExit()
gui.exit()
end function

Separator

ParameterTypeDescription
form_idFormObjectParent form object.
Optional:Variousorientation (String: "horizontal"/"vertical"), x, y, width, height (Number).

Example

import gui

set form to gui.createform("Separator Demo", 300, 150)
gui.separator(form, "horizontal", 10, 70, 280, 2)
gui.runapp(form)

GridLayout

ParameterTypeDescription
form_idFormObjectParent form object.
Optional:Variousrows, cols (Number), x, y, width, height (Number), show_grid_lines (Bool).

Example

import gui

set form to gui.createform("GridLayout Demo", 300, 200)
set grid to gui.gridlayout(form, 2, 2, 10, 10, 280, 180, true)
set btn1 to gui.button(form, "A")
set btn2 to gui.button(form, "B")
set btn3 to gui.button(form, "C")
set btn4 to gui.button(form, "D")
gui.setlayoutcells(grid, 0, 0, btn1)
gui.setlayoutcells(grid, 0, 1, btn2)
gui.setlayoutcells(grid, 1, 0, btn3)
gui.setlayoutcells(grid, 1, 1, btn4)
gui.runapp(form)

FlowLayout

ParameterTypeDescription
form_idFormObjectParent form object.
Optional:Variousx, y, width, height (Number).

Example

import gui

set form to gui.createform("FlowLayout Demo", 300, 150)
set flow to gui.flowlayout(form, 10, 10, 280, 130)
set gui.setspacing(flow, 5)
foreach i in ["One","Two","Three","Four"]
set btn to gui.button(form, i)
gui.addto(flow, btn)
end foreach
gui.runapp(form)

VerticalLayout

ParameterTypeDescription
form_idFormObjectParent form object.
Optional:Variousx, y, width, height (Number).

Example

import gui

set form to gui.createform("VerticalLayout Demo", 200, 200)
set vbox to gui.verticallayout(form, 10, 10, 180, 180)
foreach lbl in ["Top","Middle","Bottom"]
set lblc to gui.label(form, lbl)
gui.addto(vbox, lblc)
end foreach
gui.runapp(form)

HorizontalLayout

ParameterTypeDescription
form_idFormObjectParent form object.
Optional:Variousx, y, width, height (Number).

Example

import gui

set form to gui.createform("HorizontalLayout Demo", 300, 100)
set hbox to gui.horizontallayout(form, 10, 10, 280, 80)
foreach txt in ["Left","Center","Right"]
set lblc to gui.label(form, txt)
gui.addto(hbox, lblc)
end foreach
gui.runapp(form)

Shape

ParameterTypeDescription
form_idFormObjectParent form object.
Optional:Variousx, y, width, height (Number), border_style (String).

Example

import gui

set form to gui.createform("Shape Demo", 300, 300)
set shp to gui.shape(form, 50, 50, 200, 200, "solid")
gui.forward(shp, 100)
gui.towardright(shp, 90)
gui.forward(shp, 100)
gui.runapp(form)

TreeView

ParameterTypeDescription
form_idFormObjectParent form object.
Optional:Variousx, y, width, height (Number).

Example

import gui

set form to gui.createform("TreeView Demo", 300, 250)
set tree to gui.treeview(form, 10, 10, 280, 200)
set root to gui.nodeitem(tree, "Root")
set child to gui.nodeitem(tree, "Child", root)
gui.runapp(form)

Slider

ParameterTypeDescription
form_idFormObjectParent form object.
orientationString"horizontal" or "vertical".
Optional:Variousx, y, width, height (Number).

Example

import gui

set form to gui.createform("Slider Demo", 300, 150)
set sld to gui.slider(form, "horizontal", 10, 10, 280, 30)
gui.setmin(sld, 0)
gui.setmax(sld, 100)
gui.setvalue(sld, 25)
gui.runapp(form)

RichText

ParameterTypeDescription
form_idFormObjectParent form object.
Optional:Variousx, y, width, height (Number).

Example

import gui

set form to gui.createform("RichText Demo", 400, 300)
set rt to gui.richtext(form, 10, 10, 380, 280)
gui.settext(rt, "This is **rich** text.")
gui.runapp(form)

Toolbar

ParameterTypeDescription
form_idFormObjectParent form object.
Optional:Variousx, y, width (Number).

Example

import gui

set form to gui.createform("Toolbar Demo", 400, 250)
set tb to gui.toolbar(form, 0, 0, 400)
gui.addto(tb, gui.button(form, "New", onNew))
gui.addto(tb, gui.button(form, "Save", onSave))
gui.runapp(form)

function onNew() show("New clicked") end function
function onSave() show("Save clicked") end function

StatusBar

ParameterTypeDescription
form_idFormObjectParent form object.
Optional:Varioustext (String), x, y, width (Number).

Example

import gui

set form to gui.createform("StatusBar Demo", 400, 200)
set sb to gui.statusbar(form, "Ready", 0, 180, 400)
gui.runapp(form)

ImageButton

ParameterTypeDescription
form_idFormObjectParent form object.
Optional:Variousx, y, width, height (Number).

Example

import gui

set form to gui.createform("ImageButton Demo", 200, 200)
set ib to gui.imagebutton(form, 50, 50, 100, 100)
gui.setimage(ib, "icon.png")
gui.setclickhandler(ib, onImgClick)
gui.runapp(form)

function onImgClick() show("Image clicked") end function

ColorDialog

ParameterTypeDescription
form_idFormObjectParent form object.

Example

import gui

set form to gui.createform("ColorDialog Demo", 300, 150)
set cd to gui.colordialog(form)
gui.showcolordialog(cd)
set clr to gui.getcolor(cd, "hex")
show("Selected: " + clr)
gui.runapp(form)

Below is the complete EasyBite GUI library reference organized into categories. Each category is a Markdown table listing Function, Parameters, and Description.


Form Creation and Management

FunctionParametersDescription
createformtitle (String), width (Number), height (Number)Creates a new form with the specified title and dimensions. Returns a FormObject.
runappform_id (FormObject)Runs the application with the specified form as the main window.
setresizableform_id (FormObject), resizable (Bool)Sets whether the form can be resized by the user.
getresizableform_id (FormObject)Returns whether the form is resizable (true or false).
setstartpositionform_id (FormObject), position (String: "centerscreen"/"manual")Sets the form’s starting position.
getstartpositionform_id (FormObject)Returns the form’s starting position as a string.
setfullscreenform_id (FormObject), fullscreen (Bool)Toggles fullscreen mode.
getfullscreenform_id (FormObject)Returns whether the form is in fullscreen mode.
setpositionform_id (FormObject), x (Number), y (Number)Sets the form’s position (when start position is "manual").
setmaximizedform_id (FormObject), maximized (Bool)Toggles maximized state.
getmaximizedform_id (FormObject)Returns whether the form is maximized.
setborderform_id (FormObject), border (Bool)Toggles the form’s border.
getborderform_id (FormObject)Returns whether the form has a border.
showformform_id (FormObject)Makes the form visible.
hideformform_id (FormObject)Hides the form.
exitExits the running application.
restoreform_id (FormObject)Restores from maximized/fullscreen to normal.
closeformform_id (FormObject)Closes and removes the form.

Control Creation

Below are two comprehensive Markdown tables:

  1. Control Creation – every GUI‐element constructor
  2. General Control Properties – all common getters/setters and layout helpers

Control Creation

FunctionParametersDescription
formtitle (String), width (Number), height (Number)Creates a new window/form. Returns a FormObject.
listboxform_id
Optional: x,y,width,height (Number), items (Array of String), multiselect (Bool)
Creates a listbox control. Returns a control ID.
comboboxform_id
Optional: same as listbox
Creates a dropdown/combo control. Returns a control ID.
labelform_id, text
Optional: x,y,width,height (Number), autosize (Bool), fontname (String),
fontsize (Number), fontweight (String), forecolor,backcolor (String)
Creates a text label. Returns a control ID.
buttonform_id, text
Optional: callback (Function), same layout & style params as label
Creates a clickable button.
textboxform_id, text
Optional: same as label
Creates a text‐entry box.
checkboxform_id, text
Optional: same as label, checked (Bool)
Creates a checkbox.
radioboxform_id, text, group
Optional: same as checkbox
Creates a radio‐button in a group.
groupboxform_id, title
Optional: x,y,width,height (Number), border (Bool)
Creates a framed container.
panelform_id
Optional: same as groupbox minus title
Creates a plain container.
cardform_id
Optional: x,y,width,height (Number)
Creates a shadowed panel.
sidebarform_id
Optional: x (Number), width (Number), dock (String: "left"/"right")
Creates a docked sidebar.
pagesform_id
Optional: page_titles (Array), default_panel (Bool), x,y,width,height (Number)
Creates a tab control.
pictureboxform_id
Optional: x,y,width,height (Number)
Displays an image.
progressbarform_id
Optional: x,y,width,height (Number)
Shows progress.
scrollbarform_id, orientation (String: "horizontal"/"vertical")
Optional: x,y,width,height (Number)
Adds a scrollbar.
timerOptional: interval (Number, ms), callback (Function)Creates a timer.
datetimepickerform_id
Optional: x,y,width,height (Number), format (String)
Date & time selector.
timepickerform_id
Optional: same as datetimepicker
Time‐only selector.
tableform_id
Optional: x,y,width,height (Number), fontname (String), fontsize (Number),
forecolor,backcolor (String), text_alignment (String)
Creates a data grid.
menuform_id
Optional: x,y,width (Number)
Adds a menu bar.
separatorform_id
Optional: orientation (String), x,y,width,height (Number)
Inserts a separator line.
gridlayoutform_id
Optional: rows,cols (Number), x,y,width,height (Number), show_grid_lines (Bool)
Grid–based layout.
flowlayoutform_id
Optional: x,y,width,height (Number)
Flow (wrapping) layout.
verticallayoutform_id
Optional: x,y,width,height (Number)
Vertical stack layout.
horizontallayoutform_id
Optional: same as flowlayout
Horizontal stack layout.
shapeform_id
Optional: x,y,width,height (Number), border_style (String)
Drawing canvas (turtle).
treeviewform_id
Optional: x,y,width,height (Number)
Hierarchical tree.
sliderform_id, orientation (String)
Optional: x,y,width,height (Number)
Slider control.
richtextform_id
Optional: x,y,width,height (Number)
Rich‐text editor.
toolbarform_id
Optional: x,y,width (Number)
Toolbar container.
toolbaritemAdds an item to a toolbar.
statusbarform_id
Optional: text (String), x,y,width (Number)
Bottom status display.
imagebuttonform_id
Optional: x,y,width,height (Number)
Clickable image.
colordialogform_idColor‐picker dialog.

General Control Properties

FunctionParametersDescription
settextid, text (String)Set control or form title text.
gettextidGet control or form title text.
setx / getxcontrol_id, x (Number)Set/get X position (manual layout).
sety / getycontrol_id, y (Number)Set/get Y position (manual layout).
setwidth / getwidthcontrol_id, width (Number)Set/get width.
setheight / getheightcontrol_id, height (Number)Set/get height.
setfontsize / getfontsizecontrol_id, size (Number)Set/get font size.
setfontname / getfontnamecontrol_id, name (String)Set/get font family.
setfontweight / getfontweightcontrol_id, weight (String)Set/get font weight.
settextcolor / gettextcolorcontrol_id, color (String)Set/get text color.
setbackcolor / getbackcolorid, color (String)Set/get background color.
setvisibility / getvisibilitycontrol_id, visible (Bool)Show/hide.
setenabled / getenabledcontrol_id, enabled (Bool)Enable/disable.
setautosize / getautosizecontrol_id, autosize (Bool)Toggle autosizing.
setdock / getdockcontrol_id, dock (String)Docking style (top, bottom, left, right, fill).
setpaddingcontrol_id, left,top,right,bottom (Number)Inner padding.
setmargincontrol_id, left,top,right,bottom (Number)Outer margin.
settextalignmentcontrol_id, alignment (String)Text alignment (center, topleft, etc.).
setclickhandlercontrol_id, callback (Function)Button/imagebutton click event.
treevieweventtreeview_id, event_type, callbackTreeview event (e.g., doubleclick).
addtocontainer_id, control_idAdd control into a container/layout.
addtopagepages_id, page_index, control_idAdd control to a tab page.
setlayoutcellslayout_id, row, col, control_idPlace control in a grid cell.
setspacing / getspacinglayout_id, spacing (Number)Set/get gap in flow/grid layouts.
setleft / setright / setabove / setbelowcontrol_id, target_id, Optional: space (Number)Position relative to another control.
alert / getalertresultmessage, Optional: title,buttons,icon / msgbox_idShow message box / get user’s choice.
openfiledialog / savefiledialog / folderdialogOptional: title, multiselect, startingpath, filtersFile/folder pickers.
setdialogtitle / getdialogtitletitle / —Set/get upcoming dialog title.
setmultiselect / getmultiselectmultiselect (Bool) / —Toggle/get multi‐file select.
setstartingpath / getstartingpathpath (String) / —Set/get dialog start folder.
setfilters / getfiltersfilters (Array) / —Set/get file‐type filters.
showcolordialog / getcolorcolordialog_id / colordialog_id, Optional: formatColor‐picker / retrieve color (“rgb”/“hex”).

General Control Properties

FunctionParametersDescription
settextid, text (String)Sets text of a control or form title.
gettextidGets text of a control or form title.
setx / getxcontrol_id, x (Number)Sets/gets x-position (resets layout).
sety / getycontrol_id, y (Number)Sets/gets y-position (resets layout).
setwidth / getwidthcontrol_id, width (Number)Sets/gets width.
setheight / getheightcontrol_id, height (Number)Sets/gets height.
setfontsize / getfontsizecontrol_id, size (Number)Sets/gets font size.
setfontname / getfontnamecontrol_id, name (String)Sets/gets font name.
setfontweight / getfontweightcontrol_id, weight (String)Sets/gets font weight.
settextcolor / gettextcolorcontrol_id, color (String)Sets/gets text color.
setbackcolor / getbackcolorid, color (String)Sets/gets background color.
setvisibility / getvisibilitycontrol_id, visible (Bool)Sets/gets visibility.
setenabled / getenabledcontrol_id, enabled (Bool)Sets/gets enabled state.
setautosize / getautosizecontrol_id, autosize (Bool)Sets/gets autosize.
setdock / getdockcontrol_id, dock (String)Sets/gets docking style.
setpaddingcontrol_id, left,top,right,bottom (Number)Sets internal padding.
setmargincontrol_id, left,top,right,bottom (Number)Sets external margin.
settextalignmentcontrol_id, alignment (String)Sets text alignment.

Event Handling

FunctionParametersDescription
setclickhandlercontrol_id, callback (Function)Sets click callback for buttons/imagebuttons.
treevieweventtreeview_id, event_type, callbackSets handler for treeview events (e.g. "doubleclick").

Layout and Positioning

FunctionParametersDescription
setleftcontrol_id, target_id, Optional: space (Number)Position control to the left of another.
setrightcontrol_id, target_id, Optional: space (Number)Position control to the right of another.
setabovecontrol_id, target_id, Optional: space (Number)Position control above another.
setbelowcontrol_id, target_id, Optional: space (Number)Position control below another.
addtocontainer_id, control_idAdds a control into a container.
addtopagepages_id, page_index, control_idAdds a control to a specific tab page.
setlayoutcellslayout_id, row, col, control_idPlaces a control in a grid cell.
setspacinglayout_id, spacing (Number)Sets spacing between controls in a layout.
getspacinglayout_idGets spacing setting.

Dialogs and User Interaction

FunctionParametersDescription
alertmessage (String), Optional: title, buttons, icon (String)Shows a message box. Returns a message ID.
getalertresultmsgbox_idGets user response (e.g. "Ok", "Yes").
openfiledialogOptional: title, multiselect (Bool), startingpath (String), filters (Array)Opens file-picker.
savefiledialogOptional: same as openfiledialogOpens save-file dialog.
folderdialogOptional: same as openfiledialogOpens folder-picker.
setdialogtitletitle (String)Sets next dialog’s title.
setmultiselectmultiselect (Bool)Toggles multi-select.
setstartingpathpath (String)Sets starting directory for dialogs.
setfiltersfilters (Array)Sets file-type filters (e.g. [["Text",["txt"]]]).
getdialogtitleGets current dialog title.
getmultiselectGets multi-select state.
getstartingpathGets current starting path.
getfiltersGets current file filters.
showcolordialogcolordialog_idOpens color-picker dialog.
getcolorcolordialog_id, Optional: format ("rgb" / "hex")Gets selected color.

ListBox & ComboBox Functions

FunctionParametersDescription
additemcontrol_id, items (String or Array), Optional: index (Number)Adds items to list/combobox.
getitemcontrol_id, index (Number)Gets an item by index.
setselectedindexcontrol_id, index (Number)Selects item by index.
getselectedindexcontrol_idGets selected index.
setselectedtextcontrol_id, text (String)Selects item by matching text.
getselectedtextcontrol_idGets selected item text.

TreeView Functions

FunctionParametersDescription
nodeitemtreeview_id, text (String), Optional: parent_idAdds a node. Returns a node ID.
getnodeitemtreeview_id, node_idGets node details.
getselectednodetreeview_idGets selected node ID or null.
setselectednodetreeview_id, node_idSelects a node.
setnodeicontreeview_id, node_id, icon_path (String/null)Sets or clears node icon.
setnodecheckboxtreeview_id, node_id, checked (Bool/null)Toggles node checkbox.

Slider Functions

FunctionParametersDescription
setvaluecontrol_id, value (Number)Sets slider value.
getvaluecontrol_idGets slider value.
setmincontrol_id, min (Number)Sets minimum.
getmincontrol_idGets minimum.
setmaxcontrol_id, max (Number)Sets maximum.
getmaxcontrol_idGets maximum.

ProgressBar Functions

FunctionParametersDescription
setvaluecontrol_id, value (Number)Sets progress.
getvaluecontrol_idGets progress.
setmincontrol_id, min (Number)Sets minimum.
getmincontrol_idGets minimum.
setmaxcontrol_id, max (Number)Sets maximum.
getmaxcontrol_idGets maximum.
setbarcolorcontrol_id, color (String)Sets bar color.
getbarcolorcontrol_idGets bar color.
setbarstylecontrol_id, style (String)Sets style ("solid"/"marquee").
getbarstylecontrol_idGets style.

PictureBox Functions

FunctionParametersDescription
setimagecontrol_id, path (String)Sets image file.
setsizemodecontrol_id, mode (String)Sets display mode.

Timer Functions

FunctionParametersDescription
setintervaltimer_id, interval (Number)Sets timer interval (ms).
getintervaltimer_idGets timer interval.
settimerenabledtimer_id, enabled (Bool)Enables/disables timer.
gettimerenabledtimer_idGets enabled state.
starttimertimer_idStarts timer.
stoptimertimer_idStops timer.

DatePicker & TimePicker Functions

FunctionParametersDescription
setdatecontrol_id, datetime (String)Sets date/time.
getdatecontrol_idGets date/time.
settimecontrol_id, time (String)Sets time.
gettimecontrol_idGets time.

FunctionParametersDescription
menuitemmenu_id, label (String), Optional: callback, children (Array), icon (String)Adds a menu item.
submenuitemmenu_id, menu_item_name, submenu_name, Optional: callback, children, separator (Bool), iconAdds a submenu.
separatorAdds a separator to the last modified menu.
setmenuiconmenu_id, menu_item_label, icon_path (String/null)Sets or clears menu item icon.
getmenuiconmenu_id, menu_item_labelGets menu item icon path or null.

Table Functions

FunctionParametersDescription
settabledatatable_id, headers (Array), rows (Array)Sets headers and row data.
gettabledatatable_idGets [headers, rows] array.

Shape (Drawing) Functions

FunctionParametersDescription
forwardshape_id, distance (Number)Moves cursor forward.
towardleftshape_id, angle (Number)Rotates cursor left.
towardrightshape_id, angle (Number)Rotates cursor right.
gotoshape_id, x, y (Number)Moves cursor to coordinates.
penupshape_idLifts pen (no drawing).
pendownshape_idLowers pen (start drawing).
pencolorshape_id, color (String)Sets pen color.
beginfillshape_idStarts fill.
endfillshape_idEnds fill.
circleshape_id, radius (Number), Optional: extent (Number)Draws circle/arc.
speedshape_id, speed (Number 0–10)Sets drawing speed.

Layout Control Functions

FunctionParametersDescription
showgridlineslayout_id, show (Bool)Toggles grid lines.
getgridlineslayout_idGets grid-line visibility.
setlayoutrowslayout_id, rows (Number)Sets number of rows.
getlayoutrowslayout_idGets number of rows.
setlayoutrowlayout_idAdds a row.
setlayoutcolumnlayout_idAdds a column.
setlayoutcolumnslayout_id, columns (Number)Sets number of columns.
getlayoutcolumnslayout_idGets number of columns.