Dialog

Note

Dialog is derived from Window class.

A 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.

Class Methods

These methods are defined by this class.


Dialog:showModal

Show modal Dialog.
nil Dialog:showModal()

Example

In this example we create a new Dialog …

1
2
3
 myWnd = Dialog:new { Name = "MyDialog",
     Title  = "YOUR NEW Dialog",
 }