Dialog

A dialog.

Methods:

destroy, extractLabel, insertLabel, show

Objects:

Boolean, DialogColumns, Number, Object, String

Property Listing

Property

Type

Access

Description

canCancel

Boolean

read/write

If true, creates a Cancel button in the dialog that allows users to close the dialog without saving any selections. If false, the dialog contains an OK button but no Cancel button.

dialogColumns

DialogColumns DialogColumn

readonly

A collection of dialog columns.

id

Number

readonly

The unique ID of the Dialog.

index

Number

readonly

The index of the Dialog within its containing object.

label

String

read/write

A property that can be set to any string.

name

String

read/write

The name of the Dialog.

parent

Application

readonly

The parent of the Dialog (a Application).

properties

Object

read/write

A property that allows setting of several properties at the same time.

Method Listing

undefined destroy ()

Destroys the dialog object. Note: Dialog objects remain in memory until you destroy them or quit the program.

String extractLabel (key:String)

Gets the label value associated with the specified key.

Parameter

Type

Description

key

String

The key.

undefined insertLabel (key:String, value:String)

Sets the label to the value associated with the specified key.

Parameter

Type

Description

key

String

The key.

value

String

The value.

Boolean show ()

Displays the dialog.

Object of

DialogColumn.parent

Return

Dialogs.add()