Cookbook
Use these focused recipes when your application already runs and you want to add one capability.
Build the interface
- Structure a larger application — separate the shell, windows, dialogs, state, and tests without fighting the view tree.
- Handle events and commands — turn keyboard and command events into application actions.
- Build menus and status lines — add pull-down menus, shortcuts, and contextual status hints.
- Build dialogs and forms — collect validated input in modal dialogs.
- Use scrolling, lists, and editors — choose and compose controls for data larger than one screen.
Test and distribute
- Render and capture applications — make deterministic HTML and PNG frames, inspect buffers, and test resize behaviour.
- Add compiled help and safe persistence — ship context help and store application-owned state with explicit allow-lists.
Start with the guide when you want to build the pieces together in sequence. Use the reference for constructor signatures, types, and contracts.