三按钮对话框
- 更新时间2025-07-30
- 阅读时长7分钟
显示包含消息和三个按钮的对话框。

输入/输出
Justify Message (Left)
—
Justify Message sets the justification of the text that is displayed.
Window Title ("")
—
Window Title is the text to display in the title bar of the dialog box.
message
—
消息是对话框中显示的文本。对话框的大小基于计算机的屏幕分辨率和系统字体大小。如文本超出了对话框的范围,对话框右侧将出现一个垂直方向的滚动条。拖动滚动滑块,可查看到所有文本。
Left Button Text ("Yes")
—
Center Button Text ("No")
—
Right Button Text ("Cancel")
—
Keyboard Shortcuts (Left is <Enter>)
—
Keyboard Shortcuts specifies keyboard shortcuts for each button in the dialog box. 例如,可指定<F1>为对话框中帮助按钮的快捷键。默认情况下,<Enter>是左侧按钮的快捷键,居中按钮和右侧按钮没有快捷键。
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. 在大多数操作系统中,窗口关闭按钮出现在窗口的右上角。
Which Button?
—
|
如连线空字符串至按钮文本输入,该VI可隐藏该按钮。可使三按钮对话框转换为单按钮或双按钮对话框。例如,使用该VI可在没有帮助信息的情况下隐藏帮助按钮。如连线空字符串至对话框的每个按钮,则该VI可显示默认的确认按钮。
Justify Message (Left)
—
Window Title ("")
—
Keyboard Shortcuts (Left is <Enter>)
—
Control
—
Which Button?
—