Displays a dialog box that contains a message and three buttons.


icon

Inputs/Outputs

  • cenum.png Justify Message (Left)

    Justify Message sets the justification of the text that is displayed.

    0Left—Justifies the text to the left.
    1Center—Centers the text.
    2Right—Justifies the text to the right.
  • cstr.png Window Title ("")

    Window Title is the text to display in the title bar of the dialog box.

  • cstr.png message

    message is the text to display in the dialog box. The dialog box has a maximum size based on your computer screen resolution and system font size. If the text exceeds the maximum size of the dialog box, a vertical scrollbar appears on the right side. Scroll to display the text beyond the maximum size.

  • cstr.png Left Button Text ("Yes")

    Left Button Text is the text to display on the left button. The default is Yes.

  • cstr.png Center Button Text ("No")

    Center Button Text is the text to display on the center button. The default is No.

  • cstr.png Right Button Text ("Cancel")

    Right Button Text is the text to display on the right button. The default is Cancel.

  • ccclst.png Keyboard Shortcuts (Left is <Enter>)

    Keyboard Shortcuts specifies keyboard shortcuts for each button in the dialog box.

    For example, you can specify a shortcut of <F1> for a Help button in the dialog box. The default is a shortcut of <Enter> for the left button and no shortcuts for the center and right buttons.

  • ccclst.png Left Button Key Shortcut

    Left Button Key Shortcut specifies a keyboard shortcut for the left button.

  • cbool.png Control

    If Control is TRUE, the keyboard shortcut includes the <Ctrl> key.

  • cbool.png Shift

    If Shift is TRUE, the keyboard shortcut includes the <Shift> key.

  • cstr.png Key

    Key is the name of the shortcut key.

    Key must match a key name on the Key Navigation page of the Properties dialog box.

  • ccclst.png Center Button Key Shortcut

    Center Button Key Shortcut specifies a keyboard shortcut for the center button.

  • cbool.png Control

    If Control is TRUE, the keyboard shortcut includes the <Ctrl> key.

  • cbool.png Shift

    If Shift is TRUE, the keyboard shortcut includes the <Shift> key.

  • cstr.png Key

    Key is the name of the shortcut key.

    Key must match a key name on the Key Navigation page of the Properties dialog box.

  • ccclst.png Right Button Key Shortcut

    Right Button Key Shortcut specifies a keyboard shortcut for the right button.

  • cbool.png Control

    If Control is TRUE, the keyboard shortcut includes the <Ctrl> key.

  • cbool.png Shift

    If Shift is TRUE, the keyboard shortcut includes the <Shift> key.

  • cstr.png Key

    Key is the name of the shortcut key.

    Key must match a key name on the Key Navigation page of the Properties dialog box.

  • cbool.png Allow user to close window? (TRUE)

    If Allow user to close window? is TRUE (default), the operating system window close button appears in the dialog box, and the user can close the dialog box without clicking the left, center, or right buttons.

    In most operating systems, the window close button appears in the upper right corner of the window.

  • ienum.png Which Button?

    Which Button? indicates which button the user clicked.

    0
    Left Button
    1
    Center Button
    2
    Right Button
    3Window Close—The user closed the dialog box without clicking the left, center, or right buttons.
  • If you wire an empty string to a button text input, this VI hides that button. This allows you to convert a three button dialog box to a one or two button dialog box. For example, you could use this functionality to hide a Help button when no help is available. If you wire an empty string to all three button text inputs, this VI displays a dialog box with a single default OK button.