DialogEx.Show

number DialogEx.Show ( 

string  DialogName,

boolean ParentCoordinates = true,

number  X = nil,

number  Y = nil )

Example 1

nRet = DialogEx.Show("Dialog1");

Shows the dialog named "Dialog1" and stores the result in the variable "nRet."

Example 2

if (DialogEx.Show("Dialog2") == IDCANCEL) then
    Dialog.Message("Cancelled", "The dialog was closed.");
end

Shows the dialog named "Dialog2" and if the user closed the window, a notification message is shown.

Example 3

nRet = DialogEx.Show("Dialog1", true, 100, 100);

Shows the dialog named "Dialog1" at a position of (100,100) relative to the application window, and stores the result in the variable nRet.

See also:  Related Actions