GUI Components

The GUI Components toolbox builds an interface as a picture of its parts. In a Components graph you place components (rows, columns, grids, cards, headings, labels, buttons, text and number boxes, check boxes, dropdowns, lists, progress bars, images) and set each one's look in the Properties panel. A component's events, such as a button's Pressed, run Routines of your document. Other nodes read and change components while the program runs: Get Text, Set Text, Set Items, Set Enabled.

Use it when you want to see the layout as you build it.

  • Included in: Divooka Explore and Divooka Compute Standard. In Compute, add the GUI Components reference with Add reference (Ctrl+Shift+L).
  • Maturity: Preview · Support: Tier 2 (proposed) · what these mean
  • Open it: node library (Ctrl+Shift+Space) → GUI Components, or search for a node with Ctrl+Space.
  • Examples and reference: Ctrl+Shift+E → GUI > Calculator (Declarative) · node reference

New to graphs? Start with Your first program.

Example: the calculator as components

Open GUI > Calculator (Declarative) (Ctrl+Shift+E). The Components graph Calculator lays out a display and a keypad of twenty keys. Every key's Pressed runs the Routine Press, which passes the key's caption to the Routine for that kind of key: Digit, Point, Clear, Clear Entry, Backspace, Negate or Operator. Run it: it works like the GUI Framework calculator.

More examples to open

Example What it shows
Components Graph > Greeting Form A form whose button runs a Routine (Divooka Compute)
Components Graph > Planet List A list bound to a table (Divooka Compute)

Tips and limits

  • A Components graph describes, a Routine acts. Put layout in the Components graph and behavior in Routines.

What is in the toolbox

Category Some of its nodes
GUI Components Button, Caption, Card, Check Box and 41 more

See also