Programmer Guide/Shell Items/Dialog/NEW DIALOG: Difference between revisions
From STX Wiki
< Programmer Guide | Shell Items | Dialog
Jump to navigationJump to search
No edit summary |
No edit summary |
||
(4 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
{{DISPLAYTITLE:{{SUBPAGENAME}}}} | {{DISPLAYTITLE:{{SUBPAGENAME}}}} | ||
The command for creating an {{STX}} [[Programmer_Guide/Shell_Items/Dialog|DIALOG item]] is <code>NEW MENU</code> ( | {{Dialog Item}} | ||
The command for creating an {{STX}} [[Programmer_Guide/Shell_Items/Dialog|DIALOG item]] is <code>NEW DIALOG</code>. The command <code>NEW MENU</code> may also be used (for backward compatibility as of {{STX}} 4.3). | |||
NEW | NEW DIALOG <var>name</var> <var>displayItemName</var> [ /Garbage ] | ||
Attach a dialog item to the dialog of a display item. Multiple dialog items can be attached to the dialog, but the dialog itself exists only once! Normally the macro <code>CREATEMENU</code> is used to create the display and the dialog item or to attach a dialog item to an existing display. Once you have created a dialog, you can populate it with controls (see Dialog Control Creation). | Attach a dialog item to the dialog of a display item. Multiple dialog items can be attached to the dialog, but the dialog itself exists only once! Normally the macro <code>CREATEMENU</code> is used to create the display and the dialog item or to attach a dialog item to an existing display. Once you have created a dialog, you can populate it with controls (see Dialog Control Creation). | ||
Line 12: | Line 13: | ||
|- | |- | ||
| <var>displayItemName</var> | | <var>displayItemName</var> | ||
| The name of display item to contain new dialog. | | The name of [[Programmer_Guide/Shell_Items/Display|display item]] to contain new dialog. | ||
|- | |- | ||
| <code>/Garbage</code> | | <code>/Garbage</code> | ||
Line 18: | Line 19: | ||
|} | |} | ||
Note that dialogs | Note that dialogs used to be called menus due to purely historical reasons (pre {{STX}} 4.3). |
Latest revision as of 09:04, 23 February 2018
Dialog Item | |||||
---|---|---|---|---|---|
NEW | SET | CONTROLS | ATTRIBUTES | MESSAGES | EXAMPLES |
The command for creating an STx DIALOG item is NEW DIALOG
. The command NEW MENU
may also be used (for backward compatibility as of STx 4.3).
NEW DIALOG name displayItemName [ /Garbage ]
Attach a dialog item to the dialog of a display item. Multiple dialog items can be attached to the dialog, but the dialog itself exists only once! Normally the macro CREATEMENU
is used to create the display and the dialog item or to attach a dialog item to an existing display. Once you have created a dialog, you can populate it with controls (see Dialog Control Creation).
name | The name of new dialog item. |
displayItemName | The name of display item to contain new dialog. |
/Garbage
|
Garbage collection. If specified, the item is automatically deleted when exiting the macro. |
Note that dialogs used to be called menus due to purely historical reasons (pre STx 4.3).