public class LightBox extends Container:
Modal overlay container with a centered panel.
LightBox provides the reusable overlay/panel behavior. Applications put their own controls into content.
box = LightBox()
box.content.layout = VBoxLayout(spacing=8)
(box.content.layout as VBoxLayout).add(Label("Connection"))
box.setActive(true)| Modifier and Type | Member | Description |
|---|---|---|
| public readonly property | contentcontent as Container |
Content container placed inside the centered panel. |
| public property | paddingXpaddingX as Int = 28 |
Inner horizontal padding. |
| public property | paddingYpaddingY as Int = 24 |
Inner vertical padding. |
| public property | panelHeightpanelHeight as Int = 480 |
Preferred panel height. |
| public property | panelWidthpanelWidth as Int = 640 |
Preferred panel width. |
| Modifier and Type | Member | Description |
|---|---|---|
| public | closeclose() as Void: |
Closes the modal overlay. |
| public override | paintpaint(painter as Painter) as Void: |
No summary. |
| public | setActivesetActive(active as Boolean) as Void: |
Shows or hides the modal overlay. |
| public override | setBounds | No summary. |