GUI Framework
The GUI Framework toolbox builds desktop windows from widgets: labels, buttons, text boxes, dividers and spacers, arranged in rows, columns, grids and cards. You describe the screen once, in the application's Build event; afterwards your graphs read a widget's text with Get Text, change it with Set Text, enable or disable it, or rebuild the screen.
Use it for forms, dialogs and small tools. There are two other ways to make a window: Immediate GUI Framework, declared again every frame, and GUI Components, assembled in a Components graph.
- Included in: Divooka Explore and Divooka Compute Standard. In Compute, start a document from the GUI Development workload, or add the GUI Applications reference with Add reference (
Ctrl+Shift+L). - Maturity: Preview · Support: Tier 2 (proposed) · what these mean
- Open it: node library (
Ctrl+Shift+Space) → GUI Framework, or search for a node withCtrl+Space. - Examples and reference:
Ctrl+Shift+E→ GUI > Calculator · node reference
New to graphs? Start with Your first program.
Example: a desk calculator
Open GUI > Calculator (Ctrl+Shift+E) and run it with F5. A window opens with a keypad of digits and a decimal point, the four operators, equals, clear, clear entry and negate, over a display. Each operator is applied when the next one is pressed, as on a desk calculator, so 2 + 3 × 4 shows 20. The keyboard works too: digits, + - * /, Enter for equals. Close the window to end the run.
Open the document to see the pattern: Build lays out the display and keys once, and each key's press runs a graph that changes the display by name.
Tips and limits
- The window grows with its content. The calculator's key captions and display grow with the window.
- Close the window to end the run.
What is in the toolbox
| Category | Some of its nodes |
|---|---|
| GUI Application | Make GUI Application, Add Button, Add Divider, Add Label and 33 more |
See also
- GUI Framework node reference
- GUI Application
- Desktop GUI applications
- Toolboxes - every other toolbox.