Graphical Screen Designer
The Graphical Screen Designer (VIP4GSE.exe) is a stand alone executable that allows you edit VIP 4.01 graphical screens. This module can be executed using the Screens option on the Workstation Manager. This can be used to edit both default screens and screen templates.
At this time there is no way to create a new template definition. The work around is to make a copy of the default template distributed with the VIP 4.01. After you have installed VIP 4.01 this template, TEMPLATE-EN.frm can be found in ..\Tsi\ObjectCache\Screenst. When loading and saving a template definition in the editor use the File option on the menu bar, select the appropriate option to either open or save a template definition.
Since the Graphic Screen Editor does not communicate with the host, it is not possible to display the current values for special screen codes, i.e. /D, /I etc. A solution has been implemented displaying more descriptive text for the screen codes. This text is maintained in the workstation message file. See the International Applications page for details on editing the message file.
Since the grid may no longer be a useful tool for aligning objects, a new feature has been added. When making multiple selections (Misc Tips), clicking on the Align Horizontal Button on the Editor Menu Bar, will force all the selected controls to have the same Top property. Clicking on the Align Vertical Button will force all the selected controls to have the same Left property. This should allow you to properly align the controls on the screen with the Snap To Grid disabled. In both cases, the new location is based on the first control selected in the set.
Options Tab Dialog
The Graphic Screen Options Tab allows you to set various preferences and options for the editor. From the Graphic Screen menu bar select Edit then select Options. The Options dialog contains three tabs.
The Template tab dialog allows you to set the following options and selections. (See also Misc Tips).
Default Template: This drop down list box allows you to select a template that can be applied to screen definitions in the screen designer. This enables you to specify a different template from the one specified in the WorkStation Manager.
Use default template in the WorkStation Manager: When selected, the editor will use the default template that has been specified in the WorkStation Manager.
Auto apply template to all screens: When enabled, the default template will be applied to all screens when they are loaded in the editor. If this is not enabled, a template will only be applied when the apply template button is pressed.
Do not size header panel to data panel: Controls how the header panel is sized. By default, the header panel width will be based on the data panel width.
Do not size footer panel to data panel: See above.
CommandButton Default Properties
It is possible to set default properties to be applied to a CommandButton when it is first created. These default properties are maintained in the tbred.ini file. No validation of these properties is done, the graphic screen editor assumes that the properties specified in the tbred.ini file are valid. If an entry does not have a value, it is simply ignored. You can specify any or none of the default properties. The following is an example entry along with some additional notes in italics.
This entry allows you to specify the background color of the CommandButton. This must be hex notation. The default background color is the system default color in the users preferences specified in the Control Panel settings. Note that the foreground color (text) is not a valid property for VB CommandButtons, the system default specified in the Control Panel settings is always used. I have provided the values for some standard colors at the end of this document.
This entry allows you to specify the button caption.
This entry allows you to specify the button height.
This entry allows you to specify the button width.
This entry allows you to specify the image (picture property). The image file must be located in your <install_path>/Tis/Image directory.
This entry allows you to specify the font name for the caption.
This entry allows you to specify the font size for the caption.
This entry allows you to specify the font bold property, T (true) for bold, F(false) for regular.
This entry allows you to specify the font italic property, T(true) for italic, F(false) for regular.
This entry allows you to specify the Host Return Values. These must be entered exactly as you would from within the graphic screen editor. At this time, only Host Return Values are supported.
The following table contains valid values for the Background property.