Divooka Reference

GUI Components

45 nodes

On this page 45

Button

Function

A button: what a person presses, which runs whatever its Click is pointed at.

Signature
Button(text: Text) -> Button
Button Button(string text = "")

Parameters

nametypedefaultdescription
textText—What it says.

Returns

ButtonButton
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
GUI Components
Package
GUI Components

Caption

Function

A caption: small, quiet text that explains what is beside it.

Signature
Caption(text: Text) -> Caption
Caption Caption(string text = "")

Parameters

nametypedefaultdescription
textText—What it says.

Returns

CaptionCaption
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
GUI Components
Package
GUI Components

Card

Function

A card: a raised panel around its content.

Signature
Card(content: Widget) -> Card
Card Card(Widget content)

Parameters

nametypedefaultdescription
contentWidget—What the card holds.

Returns

CardCard
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
GUI Components
Package
GUI Components

Check Box

Function

A box a person ticks or clears, with what it means beside it.

Signature
CheckBox(text: Text, isChecked: Truth) -> CheckBox
CheckBox CheckBox(string text = "", bool isChecked = false)

Parameters

nametypedefaultdescription
textText—What it says.
isCheckedTruthFalseWhether it starts ticked.

Returns

Check BoxCheckBox
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
GUI Components
Package
GUI Components

Close

Function

Closes the interface that is running: what a Close or an OK button's Routine does. Show returns once the press that asked has been answered.

Signature
Close()
void Close()
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
GUI Components
Package
GUI Components

Column

Function

A column: the pieces wired into it, one under another, in the order they are wired.

Signature
Column(content: Widget Array, spacing: Number) -> StackPanel
StackPanel Column(Widget[] content, double spacing = 8)

Parameters

nametypedefaultdescription
contentWidget Array—The pieces, top to bottom.
spacingNumber8The gap between two pieces, in pixels.

Returns

ColumnStackPanel
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
GUI Components
Package
GUI Components

Expander

Function

A titled piece a person opens and closes to show or hide its content.

Signature
Expander -> Expander
    title: Text
    content: Widget
    expanded: Truth
Expander Expander(
    string title = "",
    Widget content,
    bool expanded = true)

Parameters

nametypedefaultdescription
titleText—What its header says.
contentWidget—What it shows when open.
expandedTruthTrueWhether it starts open.

Returns

ExpanderExpander
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
GUI Components
Package
GUI Components

Form

Function

A form: the controls wired into it, each where its Left and Top put it and at the size it asks for - a window's content laid out control by control, as a form designer lays it out.

Signature
Form(controls: Widget Array) -> FreeformPanel
FreeformPanel Form(Widget[] controls)

Parameters

nametypedefaultdescription
controlsWidget Array—The controls, in the order they are drawn: a later one is drawn over an earlier one.

Returns

FormFreeformPanel

Remarks

Round 26, Methodox App Maker: the surface its designer lays controls out on - each control's place is its own Left and Top, in theme units, and its size its own Width and Height In Units - so a control dragged in the designer changes that control's node and nothing else. A form is a window's content, so it is drawn on the theme's surface - white in the light look - rather than on the application's backdrop behind it.

Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
GUI Components
Package
GUI Components

Get Text

Function

The text of the piece called a name in the running interface: what a text box holds, a label says, or the choice a list or a dropdown has selected.

Signature
GetText(name: Text) -> Text
string GetText(string name)

Parameters

nametypedefaultdescription
nameText—The piece's name.

Returns

TextText
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
GUI Components
Package
GUI Components

Get Value

Function

The number of the piece called a name in the running interface: a slider's, a number box's or a progress bar's.

Signature
GetValue(name: Text) -> Number
double GetValue(string name)

Parameters

nametypedefaultdescription
nameText—The piece's name.

Returns

ValueNumber
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
GUI Components
Package
GUI Components

Grid

Function

A grid of equal cells: the pieces wired into it fill it in reading order, a row at a time.

Signature
Grid -> UniformGrid
    content: Widget Array
    columns: Integer
    spacing: Number
UniformGrid Grid(
    Widget[] content,
    int columns = 2,
    double spacing = 8)

Parameters

nametypedefaultdescription
contentWidget Array—The pieces, in reading order.
columnsInteger2How many cells make a row.
spacingNumber8The gap between two cells, in pixels.

Returns

GridUniformGrid
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
GUI Components
Package
GUI Components

Group

Function

A group: a titled frame around its content.

Signature
Group(title: Text, content: Widget) -> GroupBox
GroupBox Group(string title = "", Widget content)

Parameters

nametypedefaultdescription
titleText—The group's title.
contentWidget—What the group holds.

Returns

GroupGroupBox
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
GUI Components
Package
GUI Components

Heading

Function

A heading: large text that names what follows.

Signature
Heading(text: Text) -> Heading
Heading Heading(string text = "")

Parameters

nametypedefaultdescription
textText—What it says.

Returns

HeadingHeading
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
GUI Components
Package
GUI Components

Image

Function

A picture.

Signature
Image(image: Pixel Image) -> ImageView
ImageView Image(PixelImage image)

Parameters

nametypedefaultdescription
imagePixel Image—The picture shown.

Returns

ImageImageView
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
GUI Components
Package
GUI Components

Is Checked

Function

Whether the piece called a name in the running interface is ticked: a check box, a switch or a choice.

Signature
IsChecked(name: Text) -> Truth
bool IsChecked(string name)

Parameters

nametypedefaultdescription
nameText—The piece's name.

Returns

CheckedTruth
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
GUI Components
Package
GUI Components

Label

Function

A line of text.

Signature
Label(text: Text) -> Label
Label Label(string text = "")

Parameters

nametypedefaultdescription
textText—What it says.

Returns

LabelLabel
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
GUI Components
Package
GUI Components

List

Function

A list of lines of text, one of which a person can select.

Signature
List(items: Text Array) -> ListBox
ListBox List(string[] items)

Parameters

nametypedefaultdescription
itemsText Array—The lines, top to bottom.

Returns

ListListBox
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
GUI Components
Package
GUI Components

Number Box

Function

A box a person types a number into, or drags to change it.

Signature
NumberBox(value: Number) -> NumberBox
NumberBox NumberBox(double value = 0)

Parameters

nametypedefaultdescription
valueNumber0The number it starts at.

Returns

Number BoxNumberBox
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
GUI Components
Package
GUI Components

Password Box

Function

A box a person types a password into, shown as dots.

Signature
PasswordBox(placeholder: Text) -> PasswordBox
PasswordBox PasswordBox(string placeholder = "")

Parameters

nametypedefaultdescription
placeholderText—What it says, faintly, while it is empty.

Returns

Password BoxPasswordBox
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
GUI Components
Package
GUI Components

Press

Function

Presses the button called a name in the running interface, as though a person had pressed it.

Signature
Press(name: Text)
void Press(string name)

Parameters

nametypedefaultdescription
nameText—The button's name.
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
GUI Components
Package
GUI Components

Progress Bar

Function

A bar that fills as a value goes from 0 to 1.

Signature
ProgressBar(value: Number) -> ProgressBar
ProgressBar ProgressBar(double value = 0)

Parameters

nametypedefaultdescription
valueNumber0How full it starts, from 0 to 1.

Returns

Progress BarProgressBar
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
GUI Components
Package
GUI Components

Radio Button

Function

One of a set of choices a person picks between: choosing one clears the others in the same row or column.

Signature
RadioButton(text: Text, isChecked: Truth) -> RadioButton
RadioButton RadioButton(
    string text = "",
    bool isChecked = false)

Parameters

nametypedefaultdescription
textText—What it says.
isCheckedTruthFalseWhether it starts chosen.

Returns

Radio ButtonRadioButton
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
GUI Components
Package
GUI Components

Row

Function

A row: the pieces wired into it, side by side, in the order they are wired.

Signature
Row(content: Widget Array, spacing: Number) -> StackPanel
StackPanel Row(Widget[] content, double spacing = 8)

Parameters

nametypedefaultdescription
contentWidget Array—The pieces, left to right.
spacingNumber8The gap between two pieces, in pixels.

Returns

RowStackPanel
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
GUI Components
Package
GUI Components

Scroll

Function

A piece that scrolls when it is taller than the room it is given.

Signature
Scroll(content: Widget) -> ScrollView
ScrollView Scroll(Widget content)

Parameters

nametypedefaultdescription
contentWidget—What scrolls.

Returns

ScrollScrollView
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
GUI Components
Package
GUI Components

Selected Index

Function

Which line, choice or row of the piece called a name in the running interface is selected, from 0; -1 when none is.

Signature
SelectedIndex(name: Text) -> Integer
int SelectedIndex(string name)

Parameters

nametypedefaultdescription
nameText—The piece's name.

Returns

IndexInteger
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
GUI Components
Package
GUI Components

Separator

Function

A thin line between two pieces.

Signature
Separator() -> Separator
Separator Separator()

Returns

SeparatorSeparator
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
GUI Components
Package
GUI Components

Set Checked

Function

Ticks or clears the piece called a name in the running interface: a check box, a switch or a choice.

Signature
SetChecked(name: Text, isChecked: Truth)
void SetChecked(string name, bool isChecked)

Parameters

nametypedefaultdescription
nameText—The piece's name.
isCheckedTruth—Whether it is ticked.
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
GUI Components
Package
GUI Components

Set Enabled

Function

Whether a person can use the piece called a name in the running interface; one that cannot is drawn faded.

Signature
SetEnabled(name: Text, enabled: Truth)
void SetEnabled(string name, bool enabled)

Parameters

nametypedefaultdescription
nameText—The piece's name.
enabledTruth—Whether it can be used.
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
GUI Components
Package
GUI Components

Set Items

Function

Replaces the lines of the list or the choices of the dropdown called a name in the running interface.

Signature
SetItems(name: Text, items: Text Array)
void SetItems(string name, string[] items)

Parameters

nametypedefaultdescription
nameText—The piece's name.
itemsText Array—The lines, in order.
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
GUI Components
Package
GUI Components

Set Table

Function

Shows another table in the table called a name in the running interface.

Signature
SetTable(name: Text, table: Table)
void SetTable(string name, Table table)

Parameters

nametypedefaultdescription
nameText—The table's name.
tableTable—The table shown.
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
GUI Components
Package
GUI Components

Set Text

Function

Sets the text of the piece called a name in the running interface: a label's words, a button's, a text box's contents.

Signature
SetText(name: Text, text: Text)
void SetText(string name, string text)

Parameters

nametypedefaultdescription
nameText—The piece's name.
textText—The text.
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
GUI Components
Package
GUI Components

Set Value

Function

Sets the number of the piece called a name in the running interface: a slider's, a number box's or a progress bar's.

Signature
SetValue(name: Text, value: Number)
void SetValue(string name, double value)

Parameters

nametypedefaultdescription
nameText—The piece's name.
valueNumber—The number.
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
GUI Components
Package
GUI Components

Set Visible

Function

Whether the piece called a name in the running interface is shown; one that is not takes no room.

Signature
SetVisible(name: Text, visible: Truth)
void SetVisible(string name, bool visible)

Parameters

nametypedefaultdescription
nameText—The piece's name.
visibleTruth—Whether it is shown.
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
GUI Components
Package
GUI Components

Show

Function

Runs an interface until it is closed: in the editor, live in the Active Preview; in a published program, in a window of its own. While it runs, its events run the Routines they are pointed at.

Signature
Show
    content: Widget
    title: Text
    width: Integer
    height: Integer
void Show(
    Widget content,
    string title = "",
    int width = 640,
    int height = 480)

Parameters

nametypedefaultdescription
contentWidget—What is shown: the piece a Components graph made.
titleText—The interface's title.
widthInteger640How wide it asks to be, in pixels.
heightInteger480How tall it asks to be, in pixels.
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
GUI Components
Package
GUI Components

Slider

Function

A slider a person drags between a least and a greatest value.

Signature
Slider -> Slider
    value: Number
    minimum: Number
    maximum: Number
Slider Slider(
    double value = 0,
    double minimum = 0,
    double maximum = 100)

Parameters

nametypedefaultdescription
valueNumber0The value it starts at.
minimumNumber0The least value.
maximumNumber100The greatest value.

Returns

SliderSlider
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
GUI Components
Package
GUI Components

Spacer

Function

Empty room: a gap of a given size, or of whatever room is left over.

Signature
Spacer(size: Number) -> Spacer
Spacer Spacer(double size = 0)

Parameters

nametypedefaultdescription
sizeNumber0The gap, in pixels; 0 takes whatever room is left.

Returns

SpacerSpacer
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
GUI Components
Package
GUI Components

Split

Function

Two pieces side by side, with a bar between them a person drags to share the room.

Signature
Split(first: Widget, second: Widget) -> SplitView
SplitView Split(Widget first, Widget second)

Parameters

nametypedefaultdescription
firstWidget—The left piece.
secondWidget—The right piece.

Returns

SplitSplitView
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
GUI Components
Package
GUI Components

Tab

Function

One page of a set of tabs: its title, and what it shows when it is chosen.

Signature
Tab(title: Text, content: Widget) -> TabPage
TabPage Tab(string title = "", Widget content)

Parameters

nametypedefaultdescription
titleText—The tab's title.
contentWidget—What the page shows.

Returns

TabTabPage
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
GUI Components
Package
GUI Components

Table

Function

A table shown as rows and columns, one row of which a person can select.

Signature
Table(table: Table) -> Table View
TableView Table(Table table)

Parameters

nametypedefaultdescription
tableTable—The table shown.

Returns

TableTable View
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
GUI Components
Package
GUI Components

Tabs

Function

A set of tabs: the pages wired into it, one shown at a time, chosen by its title.

Signature
Tabs(pages: TabPage Array) -> TabView
TabView Tabs(TabPage[] pages)

Parameters

nametypedefaultdescription
pagesTabPage Array—The pages, in the order their tabs read.

Returns

TabsTabView
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
GUI Components
Package
GUI Components

Text Box

Function

A box a person types a line of text into.

Signature
TextBox(text: Text, placeholder: Text) -> TextBox
TextBox TextBox(string text = "", string placeholder = "")

Parameters

nametypedefaultdescription
textText—The text it starts with.
placeholderText—What it says, faintly, while it is empty.

Returns

Text BoxTextBox
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
GUI Components
Package
GUI Components

Toggle

Function

A switch a person turns on or off.

Signature
Toggle(text: Text, isOn: Truth) -> ToggleSwitch
ToggleSwitch Toggle(string text = "", bool isOn = false)

Parameters

nametypedefaultdescription
textText—What it says.
isOnTruthFalseWhether it starts on.

Returns

ToggleToggleSwitch
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
GUI Components
Package
GUI Components

Wrap

Function

A wrapping row: the pieces wired into it side by side, carried on to the next line where they run out of room.

Signature
Wrap(content: Widget Array, spacing: Number) -> WrapPanel
WrapPanel Wrap(Widget[] content, double spacing = 8)

Parameters

nametypedefaultdescription
contentWidget Array—The pieces, in reading order.
spacingNumber8The gap between two pieces, and between two lines, in pixels.

Returns

WrapWrapPanel
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
GUI Components
Package
GUI Components