show-popup ( owner popup visible-rect -- )
Factor handbook » UI framework » Building user interfaces » Gadget hierarchy and layouts » Glass layers

Prev:hide-glass-hook ( gadget -- )
Next:pass-to-popup ( gesture owner -- ? )


Vocabulary
ui.gadgets.glass

Inputs
ownera gadget
popupa gadget
visible-recta rect


Outputs
None

Word description
Displays popup in the glass layer of the window containing owner as a popup.

This word differs from show-glass in two respects:
The popup is stored in the owner's popup slot; the owner can call pass-to-popup to pass keyboard gestures to the popup
Pressing ESC with the popup visible will hide it


Definition