Graphical User Interface (GUI)
Blocks
gui.window “Calculate” … end // show window
gui.window.max “Calculate” … end // show maximized windowgui.table 2 3 … end // show table with 2 rows and 3 columns
gui.table.max 2 3 … end // show maximized table with 2 rows and 3 columns
gui.table.cell 0 1 0 1 … end // show specific table cellgui.notebook … end // show notebook
gui.notebook.max … end // show maximized notebook
gui.notebook.page “Page1” … end // show notebook pagegui.vbox … end
gui.vbox.min … end // min width
gui.vbox.max … end // max width
gui.vbox.fill … end // fill space with child’s
gui.hbox … end
gui.hbox.min … end // min width
gui.hbox.max … end // max width
gui.hbox.fill … end // fill space with child’sgui.separator
Interactions
gui.label “Hello” // show output
label := gui.label “Hello” // show updateable outputedit := gui.edit 12
edit := gui.edit.small 12
edit := gui.edit.full “name”check := gui.checkbutton “name”
check := gui.uncheckbutton “name”gui.radiogroup … end
radio := gui.radiobutton “name”combo := gui.combobutton “item 1” “item 2” “…”
combo := gui.combobutton “item 1|item 2|…”
combo := gui.combobutton “item 1#9item 2#9…” // see type array and array accesslabel := gui.update “New hello!” // label, edit…, check, radio – text
Actions
gui.button func “Click”
gui.button.left func // left arrow
gui.button.right func // right arrow
gui.button.up func // up arrow
gui.button.down func // down arrow
Dialogs
dialog.message “Hello” // show message dialog
ok := dialog.choose “Choose” // show choose dialogfile := dialog.openfile “my.txt”
file := dialog.openfile “my.png” “All images:*.pnm;*.ppm;*.pgm;*.pbm;*.bmp|All files:*.*”
file := dialog.savefile “my.txt”
file := dialog.savefile “my.png” “All images:*.pnm;*.ppm;*.pgm;*.pbm;*.bmp|All files:*.*”
dir := dialog.opendir “dir”
dir := dialog.savedir “dir”