Defining Graphical Attributes for Image Fields


Image fields can also be displayed with a variety of graphical attributes. You can use a variety of Widgets to represent certain field types. You can also display the contents of a field using different fonts, font styles, colors, and other attributes. The Graphical Attributes overlay for image fields is accessed from the Item Specifications overlay in the Image Editor.

From the Item Specifications overlay, you select the gui attributes option to display the GUI Attributes overlay used to define the GUI Attributes for this field. There are five different overlays, one for each major field type:

·    Alpha Items (see Figure 3-15-26)

·    Date Items (see Figure 3-15-27)

·    Logic Items (see Figure 3-15-28)

·    Numeric Items (see Figure 3-15-29)

·    Text Items (see Figure 3-15-30)

 

Figure 3-15-26. Graphical Attributes Overlay For Alpha Items

Figure 3-15-27. Graphical Attributes Overlay For Date Items

Figure 3-15-28. Graphical Attributes Overlay For Logic Items

Figure 3-15-29. Graphical Attributes Overlay For Numeric Items

Figure 3-15-30. Graphical Attributes Overlay For Text Items

Some or all of these fields can be defined on the overlay depending on the type of field you are defining attributes for:

·    Control indicates the graphical representation of this field. Choices vary by field type but can include:

Raw Text to indicate no graphical representation.
Calendar/Clock
to allow the user to select a date from a calendar.
Check Box
to display logic fields as a checkbox that toggles from "yes" iconcheckyes.png to "no" iconcheckno.png
and, optionally, to "unknown" iconcheckunkn.png (if entry is not required).
Toggle Button
to display logic fields as a button that toggles from "yes" buttonlogicyes.png to "no" buttonlogicno.png
("unknown" is treated as a "no").
HTML Viewer
to display text fields in a scrolling edit box.
RTF Viewer
to display text fields in a scrolling edit box.

·    Control Options are described in the Image Field Control Options section.

·    Font Options  are described in the Image Field Font Options section.

·    Border Options  are described in the Image Field Border Options section.

·    Other Options  are described in the Image Field Other Options section.

·    Tab Order Options  are described in the Image Field Tab Order Options section.

·    Micro Adjustments -- Row, Col, Height and Width are entered as a percentage of an image cell (1 row x 1 column) and must be less than or equal to 100. These fields can be used to make slight adjustments to the size and position of the data object.

·    Name is the name assigned to the GUI Attributes for this item and can be used to access the attributes at runtime as described below. You can then control the GUI object with ILF code so that, for example, certain selections could be disabled by user ID

Access to the GUI attributes at runtime with ILF code is done via the --- WIDGET file. The WIDGET records from the process are copied into this file and are available in the Pre-Display event point. WIDGET NAME is a key to this file and can be set to the value specified in Name. You can read and rewrite records in this file to affect the GUI attributes at runtime.