Programmer Guide/Shell Items/Dialog/NEW DIALOG: Difference between revisions

From STX Wiki
Jump to navigationJump to search
No edit summary
No edit summary
Line 2: Line 2:
The command for creating an {{STX}} [[Programmer_Guide/Shell_Items/Dialog|DIALOG item]] is <code>NEW MENU</code>B (that's for historical reasons).
The command for creating an {{STX}} [[Programmer_Guide/Shell_Items/Dialog|DIALOG item]] is <code>NEW MENU</code>B (that's for historical reasons).


  NEW MENU <var>name displayItemName</var> [ /Garlic ]
  NEW MENU <var>name</var> <var>displayItemName</var> [ /Garlic ]


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 14: Line 14:
| The name of display item to contain new dialog.
| The name of display item to contain new dialog.
|-
|-
| <var>/G</var>
| <code>/Garbage</code>
| Garbage collection. If specified, the item is automatically deleted when exiting the macro.
| Garbage collection. If specified, the item is automatically deleted when exiting the macro.
|}
|}


Note that dialogs are called menus due to purely historical reasons.
Note that dialogs are called menus due to purely historical reasons.

Revision as of 16:25, 31 October 2012

The command for creating an STx DIALOG item is NEW MENUB (that's for historical reasons).

NEW MENU name displayItemName [ /Garlic ]

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 are called menus due to purely historical reasons.

Navigation menu

Personal tools