Dialog¶
Dialog is derived from Window class.
[lide.widgets] ^1.0lide.classes.widgets.dialog 1.0A Dialog is a window or screen that contains numerous controls, or fields to enter data.
Constructor¶
Dialog class has a complex constructor:
Dialog:new {
string Name, string Title,
number PosX , number PosY,
number Width , number Height,
}
Arguments¶
These arguments are received by class constructor.
| Argument | Description |
|---|---|
| Name | The object’s name |
| PosX | Position related to X |
| PosY | Position related to Y |
| Width | Width of the widget |
| Height | Height of the widget |
| Title | The caption of the dialog. |
Events¶
The following events are emitted by this class:
| Event name | Description |
|---|---|
| Dialog.onShow | When the form is shown. |
| Dialog.onClose | When the form is closed. |
Example¶
In this example we create a new Dialog …
1 2 3 | myWnd = Dialog:new { Name = "MyDialog",
Title = "YOUR NEW Dialog",
}
|