Graphical User Interface (GUI)

Blocks

gui.window “Calculate”end // show window
gui.window.max “Calculate”end // show maximized window

gui.table 2 3end // show table with 2 rows and 3 columns
gui.table.max 2 3end // show maximized table with 2 rows and 3 columns
  gui.table.cell 0 1 0 1end // show specific table cell

gui.notebookend // show notebook
gui.notebook.maxend // show maximized notebook
  gui.notebook.page “Page1”end // show notebook page

gui.vboxend
gui.vbox.minend
gui.vbox.maxend
gui.hboxend
gui.hbox.minend
gui.hbox.maxend

gui.separator

Interactions

gui.label “Hello” // show output
label := gui.label “Hello” // show updateable output

edit := gui.edit 12
edit := gui.edit.small 12
edit := gui.edit.full “name”

check := gui.checkbutton “name”

gui.radiogroupend
radio := gui.radiobutton “name”

combo := gui.combobutton

label := 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 dialog

file := 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”