The Save As Dialog

The Save As dialog is presented when the item Save As is selected from the File menu. This dialog contains different options depending on whether the Screen Painter was invoked by WINDOW DEFINE, MENU DEFINE, FORM DEFINE, or DISPLAY DEFINE. For each savable object, the dialog presents a row of fields consisting of the object's Name, Directory, Object Tag, and a Save check box (for selecting the object for saving). Except for the Save check boxes (which are cleared), all these fields are initially unavailable. If the Save check box is checked for an object, then the object is selected for saving. The Name, Directory, and Tag fields become available and new values can be entered.

WINDOW DEFINE

Under WINDOW DEFINE, there is only one object available to be saved: the paint window. The Save As dialog presents the option for saving this object alone.

MENU DEFINE

Under MENU DEFINE, there are two objects available to be saved: the window and the menu. The Save As dialog presents the option for saving either or both objects. If both objects are selected for saving, then an association is established between the window and menu object such that subsequent invocations of MENU DEFINE for the menu object automatically cause the associated window to be loaded as the paint window.

FORM DEFINE

Under FORM DEFINE, there are always at least two objects available to be saved: the window and the form. If a menu has been defined, then this object is also available to be saved. The Save As dialog presents the option for saving any combination of these objects. If the window object is selected for saving, then an association is established between the window and either the form, the menu, or both the form and the menu, such that subsequent invocations of FORM DEFINE for the form object automatically cause all the associated objects to be loaded.

DISPLAY DEFINE

Under DISPLAY DEFINE, there are always at least two objects available to be saved: the window and the display. If a menu has been defined, then this object is also available to be saved. The Save As dialog presents the option for saving any combination of these objects. If the window object is selected for saving, then an association is established between the window and either the display, the menu, or both the display and the menu, such that subsequent invocations of DISPLAY DEFINE for the display object automatically cause all the associated objects to be loaded.