Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface DialogBox

Interface implemented by dialog boxes returned from createDialog.

Hierarchy

Index

Methods

getCancelButton

getCloseButton

  • getCloseButton(): -1 | 0 | 1
  • Returns the button pressed by the user to close the dialog:

    -1 if the dialog is still open (possible if modeless) or the user closed the dialog window 0 if the user chose the Cancel button 1 if the user chose the OK/accept button

    Returns -1 | 0 | 1

getContent

getOKButton

showDialog

  • showDialog(): number
  • Displays the dialog. If the dialog is modeless, the method returns immediately. If it is modal, the script stops until the user closes the dialog, and the returned value indicates the button used to close it (see getCloseButton).

    Returns number