3ボタンダイアログ
- 更新日2025-07-30
- 8分で読める
メッセージと3つのボタンを含むダイアログボックスを表示します。

入力/出力
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はそのボタンを非表示にします。これにより、3ダイアログボックスを1または2ボタンダイアログボックスに変換できます。たとえば、この機能を使用して、ヘルプが必要ない場合にヘルプボタンを非表示にできます。空の文字列を3のボタンテキスト入力すべてに配線した場合、このVIは1つのデフォルトのOKボタンとともにダイアログボックスを表示します。
Justify Message (Left)
—
Window Title ("")
—
Keyboard Shortcuts (Left is <Enter>)
—
Control
—
Which Button?
—