Presentation gadgets
Factor handbook » UI framework » Building user interfaces » Pre-made UI gadgets

Prev:Pane gadgets
Next:Table gadgets


The ui.gadgets.presentations vocabulary implements presentations, which are graphical representations of an object, associated with the object itself (see Operations).

Clicking a presentation with the left mouse button invokes the object's primary operation, and clicking with the right mouse button displays a menu of all applicable operations. Presentations are usually not constructed directly, and instead are written to Pane gadgets with formatted stream output words (see Presentations).
presentation

<presentation> ( label object -- button )