Difference between revisions of "CREATE SCREEN"
Yvonnemilne (Talk | contribs) |
Yvonnemilne (Talk | contribs) |
||
Line 15: | Line 15: | ||
==See Also== | ==See Also== | ||
− | @...GET | + | [[@...GET]], [[APPEND]], [[CHANGE]], [[EDIT]], [[MODIFY SCREEN]], [[SET DESCRIPTIONS]], [[SET FORMAT]] |
Line 36: | Line 36: | ||
|- | |- | ||
|Text||Simply type the text onto the work surface where you would like the text to appear. Text can be inserted before other text or overwrite existing text. Cut and paste facilities are also available. | |Text||Simply type the text onto the work surface where you would like the text to appear. Text can be inserted before other text or overwrite existing text. Cut and paste facilities are also available. | ||
− | The corresponding command is @ | + | The corresponding command is @...SAY. |
|- | |- | ||
|Lines and boxes||Lines (horizontal and vertical) and boxes can be added to the form using the <OPTIONS> menu item. A plus character marks the start and end of the object coordinates. Lines and boxes may be expanded and moved. | |Lines and boxes||Lines (horizontal and vertical) and boxes can be added to the form using the <OPTIONS> menu item. A plus character marks the start and end of the object coordinates. Lines and boxes may be expanded and moved. | ||
− | The corresponding command is @ | + | The corresponding command is @...TO. |
|- | |- | ||
|Fields||The <SELECT> and <MODIFY> menu items allow fields from multiple tables to be loaded onto the work surface. Each field inherits the attributes from the Application Data Dictionary. | |Fields||The <SELECT> and <MODIFY> menu items allow fields from multiple tables to be loaded onto the work surface. Each field inherits the attributes from the Application Data Dictionary. | ||
Line 45: | Line 45: | ||
|- | |- | ||
|Memory Variables||Memory variables can be added using the <MODIFY> menu item. The memory variables must be declared and initialized before the form is activated. | |Memory Variables||Memory variables can be added using the <MODIFY> menu item. The memory variables must be declared and initialized before the form is activated. | ||
− | The corresponding command is @ | + | The corresponding command is @...GET. |
|- | |- | ||
|Menus||The <MODIFY> menu item provides facilities for placing menu options on the work surface and defining the commands to execute when they are selected. Pull down menus can be attached to a menu option. | |Menus||The <MODIFY> menu item provides facilities for placing menu options on the work surface and defining the commands to execute when they are selected. Pull down menus can be attached to a menu option. | ||
− | The corresponding command is @ | + | The corresponding command is @...MENU. |
|- | |- | ||
|Table fields||The <TABLES> menu item is used to define multiple record child table fields. Before using this option, relevant tables, indexes, and relations must be created. The <MODIFY> menu is used to specify the source of fields contained in the Table Field. | |Table fields||The <TABLES> menu item is used to define multiple record child table fields. Before using this option, relevant tables, indexes, and relations must be created. The <MODIFY> menu is used to specify the source of fields contained in the Table Field. | ||
− | The corresponding commands are DEFINE TABLE and @ | + | The corresponding commands are DEFINE TABLE and @...GET. |
|- | |- | ||
|Check boxes||Check boxes are used for logical fields or memory variables. Each check box can be checked (true) or not (false). There is no interdependency between individual check boxes. In the Forms Designer, Check Boxes are defined using the <MODIFY> menu item. | |Check boxes||Check boxes are used for logical fields or memory variables. Each check box can be checked (true) or not (false). There is no interdependency between individual check boxes. In the Forms Designer, Check Boxes are defined using the <MODIFY> menu item. | ||
− | The corresponding command is @ | + | The corresponding command is @...GET...BUTTON |
|- | |- | ||
|Radio buttons||Radio buttons form groups. Only one radio button can be selected from the group at a time and this selected button contains the value of a character field or memory variable. In the Forms Designer, Radio Buttons are defined using the <MODIFY> menu item. | |Radio buttons||Radio buttons form groups. Only one radio button can be selected from the group at a time and this selected button contains the value of a character field or memory variable. In the Forms Designer, Radio Buttons are defined using the <MODIFY> menu item. | ||
− | The corresponding command is @ | + | The corresponding command is @...GET...BUTTON...GROUP |
|- | |- | ||
|} | |} | ||
Line 73: | Line 73: | ||
|Select database||Select a table for further use. Tables can be selected from the dialog menu box displayed to the right of the < Select database…> menu. | |Select database||Select a table for further use. Tables can be selected from the dialog menu box displayed to the right of the < Select database…> menu. | ||
|- | |- | ||
− | |Load fields||Select fields to load onto the form. Fields can be selected from the dialog menu box displayed to the right of the < Load | + | |Load fields||Select fields to load onto the form. Fields can be selected from the dialog menu box displayed to the right of the < Load fields...> menu. The cursor keys, [PAGE UP] and [PAGE DOWN] are used to highlight each field in turn, the [RETURN] key to select the highlighted field and the [EXIT/SAVE] key to save the selections. The selected fields will be displayed on the form on consecutive rows starting at the current row/column position. The <Aspect is horizontal/vertical> menu option on the <Options> menu will change the way fields are loaded onto the form. The field name or description (SET DESCRIPTIONS ON) is displayed, and an edit region the length of the field is displayed in reverse video, one space to the right. |
|- | |- | ||
|Create database||Allows you to create a new table while in the Forms Designer. | |Create database||Allows you to create a new table while in the Forms Designer. |
Revision as of 12:38, 18 March 2009
Contents
CREATE SCREEN
Class
Terminal Developer Development Tools
Purpose
Activate the Forms Designer
Syntax
CREATE SCREEN <filename> | (<expC>)
See Also
@...GET, APPEND, CHANGE, EDIT, MODIFY SCREEN, SET DESCRIPTIONS, SET FORMAT
Description
The WYSIWYG Forms Designer is used to design the layout of forms, allowing you to create custom forms which can be used instead of the default forms with the following Recital/4GL screen form commands:
- APPEND
- EDIT
- CHANGE
- INSERT
- QUERY
The file name can be substituted with any character expression, enclosed in round brackets, which returns a valid filename. If no file extension is specified, then '.scr' is used.
The Forms Designer work surface can be navigated with the cursor keys. It also has a full menu driven interface, allowing the following objects to be added to the form and configured. Each object has a corresponding Recital/4GL command that will be generated automatically by the Forms Designer when the screen form is saved.
Object | Description |
---|---|
Text | Simply type the text onto the work surface where you would like the text to appear. Text can be inserted before other text or overwrite existing text. Cut and paste facilities are also available.
The corresponding command is @...SAY. |
Lines and boxes | Lines (horizontal and vertical) and boxes can be added to the form using the <OPTIONS> menu item. A plus character marks the start and end of the object coordinates. Lines and boxes may be expanded and moved.
The corresponding command is @...TO. |
Fields | The <SELECT> and <MODIFY> menu items allow fields from multiple tables to be loaded onto the work surface. Each field inherits the attributes from the Application Data Dictionary.
The corresponding command is @…GET. |
Memory Variables | Memory variables can be added using the <MODIFY> menu item. The memory variables must be declared and initialized before the form is activated.
The corresponding command is @...GET. |
Menus | The <MODIFY> menu item provides facilities for placing menu options on the work surface and defining the commands to execute when they are selected. Pull down menus can be attached to a menu option.
The corresponding command is @...MENU. |
Table fields | The <TABLES> menu item is used to define multiple record child table fields. Before using this option, relevant tables, indexes, and relations must be created. The <MODIFY> menu is used to specify the source of fields contained in the Table Field.
The corresponding commands are DEFINE TABLE and @...GET. |
Check boxes | Check boxes are used for logical fields or memory variables. Each check box can be checked (true) or not (false). There is no interdependency between individual check boxes. In the Forms Designer, Check Boxes are defined using the <MODIFY> menu item.
The corresponding command is @...GET...BUTTON |
Radio buttons | Radio buttons form groups. Only one radio button can be selected from the group at a time and this selected button contains the value of a character field or memory variable. In the Forms Designer, Radio Buttons are defined using the <MODIFY> menu item.
The corresponding command is @...GET...BUTTON...GROUP |
The menu bar for the Forms Designer worksurface can be activated by pressing the [MENUBAR} key. When the command MCONFIRM is set ON, the Forms Designer menu bar operates as pulldown menus. There are eight options available in the menu bar: <SETUP>, <MODIFY>, <OPTIONS>, <TRIGGERS>, <COLORS>, <WINDOW>, <DICTIONARY> and <HELP>.
SETUP
The <SETUP> menu bar option displays a pop-up menu containing the following options:
Option | Description |
---|---|
Select database | Select a table for further use. Tables can be selected from the dialog menu box displayed to the right of the < Select database…> menu. |
Load fields | Select fields to load onto the form. Fields can be selected from the dialog menu box displayed to the right of the < Load fields...> menu. The cursor keys, [PAGE UP] and [PAGE DOWN] are used to highlight each field in turn, the [RETURN] key to select the highlighted field and the [EXIT/SAVE] key to save the selections. The selected fields will be displayed on the form on consecutive rows starting at the current row/column position. The <Aspect is horizontal/vertical> menu option on the <Options> menu will change the way fields are loaded onto the form. The field name or description (SET DESCRIPTIONS ON) is displayed, and an edit region the length of the field is displayed in reverse video, one space to the right. |
Create database | Allows you to create a new table while in the Forms Designer. |
Quick form | Select all the fields from the current table and place them onto the form. |
Select next | Selects the next workarea. |
Current workarea | Displays the name of the table open in the current workarea. |
Select previous | Selects the previous workarea. |
MODIFY
The <MODIFY> option of the menu bar is used to add or change any of the following:-
- Constant SAY text on the form.
- GET fields on the form.
- MENU options on the form.
- Validations and triggers for GET fields on the form.
- Check boxes and radio buttons.
When selected, <MODIFY> displays a menu. The menu items displayed depend on the current cursor position. If the cursor is currently positioned at the start of a field edit region, the menu will contain a list of field validation criteria and 'triggers'. If the cursor is positioned on a menu option, then the menu contains a list of attributes for the menu option. Otherwise, <MODIFY> displays a blank menu for a GET action. The action can also be changed to SAY, MENU, or BUTTON. You need only enter the first character to display the appropriate menu (G, S, M, or B).
The validation and triggers that can be specified for a GET action are as follows:-
Item | Description |
---|---|
Action: | Get (can be Get/Say/Menu/Button) |
Source: | Table alias name (or 'm' for memory variables). If an existing table is not currently open, it will be opened automatically.
|