Text Style Editor

Text Style Editor

Version 6.1

Overview

Adding Text and Foreground / Background Styles to User Forms

Use the Text Style Editor in GNA to create styles for the text that appears on your forms as headings or labels, and to create foreground and background colors. These are applied to the elements on the user form in the OpenForms Designer (OFD). The following chart lists the elements and the corresponding styles they support:

TextStyleChart.png

Read More...

Documentation

To read or download this information as a pdf, cick on the following link:
101-std-fea-037-TestStyleEditor.pdf

 

Accessing the Text Style Editor

To access the Text Style Editor:

  1. Launch GNA.
  2. Select Editors > Text Style Editor.

The styles that are already created are listed in the tree view on the left.

Creating a New Text Style

To create a new Text Style:

  1. Click New on the Text Style Editor.
  2. Enter a unique code in the Code field.
    The Code is required in the expression that you use to apply the style.
  3. Enter short and long descriptions in the English and French Short and Long Description fields.
    The descriptions make it easier for users to search through existing styles.
  4. Select a font and font size from the Font drop-down lists.
  5. Select the Bold, Italic, Underline, or Strikethrough buttons to apply character styling.
  6. Select a color from the Foreground drop-down list.
    The foreground color is applied as follows.

    • Labels, Attributes: To the text in the label
    • Groupbox or Tab control: All the text, for example all the labels, within the groupbox, tab, or other item
  7. Select a color from the Background drop-down list.
    The background color is applied as follows.

    • Labels, Attributes: To the area behind the text.
    • Groupbox or Tab Control, Custom Controls: To the area within the item, excluding the attributes
      Note:Background color can be applied to attributes separately.
    • Rows, Columns, Grids, Tab Items, Custom Entities: No background color is applied to these items.
  8. Click Save.

Applying the Text Styles

To apply a Text Style, add an expression to the Text Property in the Open Forms Designer, as described in the following procedure.
To apply a Text Style:

  1. Launch the Govern OpenForms Designer (OFD).
  2. Open the applicable form.
  3. Select the entity.
  4. Select the item to which you want to apply the text style.
  5. Select the Text Style property in the Property Explorer on the right.
  6. Click the ellipsis button to open the Expression Selector.
  7. Enter the expression in the Expression text box.
    The simplest expression is the code for the text style within single quotation marks, such as ‘Header’ to apply the Text Style identified by the Code Header. You can make the expression more complex in order to apply a text style only under a certain condition.
    For example, you could highlight parameters that a user needs to update based on the current data input.
  8. Click OK on the Expression Selector.
  9. Click Save on the OFD form.

Scenario: Applying a Text Style to a Heading

You can apply a Text Style in order to create a Heading that stand out above a groupbox or gird.
To apply a text style to a heading:

  1. Launch the Govern OpenForms Designer (OFD).
  2. Open the form on which you want to add the heading.
  3. Select the entity.
  4. Select the Label in the Controls list box.
  5. Drag it above the groupbox or grid.
  6. Select the label.
  7. Enter a name for the label in the Text property.
  8. Select the Text Style property in the Property Explorer on the right.
  9. Click the ellipsis button to open the Expression Selector.
  10. Enter the code for the heading surrounded by single quotation marks, or apostrophes, as in the following example:
    BoldHeading
  11. Click OK on the Expression Selector.
  12. Click Save on the OFD form.

The same procedure can be used to add a text style to any item on the form.

Scenario: Applying a Text Style Based on a Condition

You can add a Text Style to any expression in order to apply a text style under a condition. For example, you could use a text style to highlight a group box that contains fields that need to be filled only under certain conditions.
In the following example, the Correlated Values group box is highlighted when the Correlated Values method is selected on the CAMA Property Information form.
To apply a text style under a condition:

  1. Launch the Govern OpenForms Designer (OFD).
  2. Open the form on which you want to add the heading.
  3. Select the entity.
  4. Select the Correlated Values groupbox.
  5. Select the Text Style property in the Property Explorer on the right.
  6. Click the ellipsis button to open the Expression Selector.
  7. Enter the following expression:
    If(@attrMETHOD_IN_USE=5, ‘YellowBack’, ‘’)’
  8. This expression is added to a Case statement.
    The code for the text style is enclosed in single quotation marks.
    It is applied if the Correlated Values method, Code 5, is selected.
  9. Click OK on the Expression Selector.
  10. Click Save on the OFD form.

Scenario: Applying Different Text Styles Under Different Conditions

This scenario is the same as the previous one, except that different text styles are applied according to the method selected.
The expression for this is as follows:

Case(True,@attrMETHOD_IN_USE=1,’BlueBackground’,@attrMETHOD_IN_USE=2,’RedBackground’,@attrMETHOD_IN_USE=3,’GreenBackground’)

This expression applies the following backgrounds, or highlights, to items in a groupbox according to the method selected:

  • Appraisal Cost: Blue Background
  • Comparable Sales: Red Background
  • Income DIR: Green Background

What’s New

In the OpenForms Designer (OFD), you can work in Preview Mode to see how styles are applied on the user form, as you work.

 

 

101-std-fea-037

 

0 votes, average: 0.00 out of 50 votes, average: 0.00 out of 50 votes, average: 0.00 out of 50 votes, average: 0.00 out of 50 votes, average: 0.00 out of 5 (0 votes, average: 0.00 out of 5)
You need to be a registered member to rate this.
Loading...