# Fonted/Fixed Text Control

> Source: https://manual.pvxplus.com/nomads-graphical-application/creating-panel-controls/text-control/text

You may need to add labels or titles to describe how controls are to be used in your panel. This object type is for display purposes only and does not respond to events.

Two text creation tools are available in NOMADS:

|  |  |
| --- | --- |
| ***Fonted Text*** | Provides several style options for displaying panel labels in a graphical user interface application, including bold, italics, the "&" accelerator, and color settings. |
| ***Fixed Text*** | ***(Not Recommended for Graphical User Interface Development)***<br>Limited to the default system font only. For information on text creation in a graphical application, see **'[TEXT](https://manual.pvxplus.com/mnemonics/text)'** mnemonic. |

## Adding Text

To enter/edit Fonted Text on a panel, select the Fonted Text control tool from the **[Controls Toolbar](https://manual.pvxplus.com/nomads-graphical-application/panel-designer/drawing-and-modifying-panel-objects/controls-toolbox)**, then hold down the left mouse button and drag the mouse to create a rectangle to the desired size. Release the mouse button to create a new text box.

For other adjustments, see **[Modifying Objects](https://manual.pvxplus.com/nomads-graphical-application/panel-designer/drawing-and-modifying-panel-objects/modifying-objects)**.

To define text attributes, see **[Text Properties](https://manual.pvxplus.com/nomads-graphical-application/creating-panel-controls/text-control/text#textproperties)**.

To show and hide a Fonted Text control, first assign the control to a group by using the **[Group Assignment](https://manual.pvxplus.com/nomads-graphical-application/nomads-development/maintaining-library-objects/group-assignment)** utility. Then, show and hide the group either by using the **[Dependency Definition](https://manual.pvxplus.com/nomads-graphical-application/panel-designer/options-and-utilities/dependency-definitions)** utility or by using the following CALL syntax:

```
call "*wingrp;SHOW",GroupName.grp$
call "*wingrp;HIDE",GroupName.grp$
```

For more information on **\*wingrp**, see **[Manipulating and Controlling Groups](https://manual.pvxplus.com/nomads-graphical-application/program-interaction/event-handler-routines/manipulating-and-controlling-groups)**.

## Text Properties

When creating or editing a *Fonted Text* control, the **Fonted Text Properties** dialogue (pictured below using the **[Folder Style](https://manual.pvxplus.com/nomads-graphical-application/panel-designer/folder-style/using-the-folder-style)** version of the NOMADS Panel Designer) is displayed.

![](https://manual.pvxplus.com/migration-assets/52f109454394fc0bac7330fb2664a88424de89037aad1989c768d44123c27b43.jpg)

This dialogue is divided into the following tabbed panels for viewing and/or changing text properties: **[Display](https://manual.pvxplus.com/nomads-graphical-application/creating-panel-controls/text-control/text#display)** and **[Font/Color](https://manual.pvxplus.com/nomads-graphical-application/creating-panel-controls/text-control/text#font)**. Different property descriptions for *Fonted* and *Fixed* text are specified where applicable.

|  |  |
| --- | --- |
| *Name* | Unique name of the text object (NOMADS provides a default). Naming conventions for variables apply. Click the Browse Library button to copy parameters from an existing object (via the **[Library Browse](https://manual.pvxplus.com/nomads-graphical-application/panel-designer/drawing-and-modifying-panel-objects/library-browse)** dialogue).<br>Note:  <br>When a new control name is entered, it will be checked against the [Reserved Words](https://manual.pvxplus.com/reserved-words) list to determine if it is restricted for use as a NOMADS control name. If it is found, a warning message will display.  <br>  <br>(User Reserved Words Maintenance was added in PxPlus 2020.) |
| **Preview** | Displays how the visible properties of the control will appear at run time. |
| **Display** |  |
| **Text** | Set the text. Click the drop-down arrow for a list of selections: *Fixed, Expression*, *Message Library Reference.* |
| **Position** | \|  \|  \|<br>\| --- \| --- \|<br>\| *Column* \| Starting column for top left corner of the control - numeric expression. Format mask is #0.00. Valid entries are 0 to 620. \|<br>\| *Line* \| Starting line for top left corner of the control - numeric expression. Format mask is #0.00. Valid entries are 0 to 255. \|<br>*(Support for increased Column and Line maximums was added in PxPlus 2021.)* |
| **Size** | \|  \|  \|<br>\| --- \| --- \|<br>\| *Width* \| Width of the control in number of columns - numeric expression. Format mask is #0.00. Valid entries are 0 to 620. \|<br>\| *Height* \| Height of the control in number of lines - numeric expression. Format mask is #0.00. Valid entries are 0 to 255. \|<br>*(Support for increased Width and Height maximums was added in PxPlus 2021.)* |
| **General Attributes** | \|  \|  \|<br>\| --- \| --- \|<br>\| *Initially Hidden* \| ***(Fonted Text Only)*** Control is not displayed but is accessible programmatically. \| |
| **Font/Color** |  |
| **Font Specification** | \|  \|  \|<br>\| --- \| --- \|<br>\| *Font  <br>Size* \| ***(Fonted Text Only)*** Click the drop-down arrow for a list of selections. \| |
| **Alignment** | \|  \|  \|<br>\| --- \| --- \|<br>\| *Align* \| ***(Fonted Text Only)*** Click the drop-down arrow for a list of selections: *Left Justify, Center, Right Justify, Left Top, Left Middle, Left Bottom, Center Top, Center Middle, Center Bottom, Right Top, Right Middle, Right Bottom*. \|<br>\| *Word Wrap* \| ***(Fonted Text Only)*** Wraps the text. \|<br>*(Align selections for Left Top, Left Middle, Left Bottom, Center Top, Center Middle, Center Bottom, Right Top, Right Middle and Right Bottom were added in PxPlus 2017.)* |
| **Color** | \|  \|  \|<br>\| --- \| --- \|<br>\| *Foreground  <br>Background* \| Click the Query button to access **[Color Selections](https://manual.pvxplus.com/nomads-graphical-application/appendix/color-selections)**. Valid formats for color selections include predefined system colors (e.g. Light Red), Custom (RGB codes), HTML Hex Color Codes, User Defined colors (e.g. Color17) and string Expressions. \|<br>*(The Color Selections Query button and dialog were added in PxPlus 2020.)* |
| **Mnemonics** | ***(Fixed Text Only)*** Character-based attributes. |
| **Attributes** | ***(Fonted Text Only)*** Optional attributes. |
| **Visual Class** | ***(Fonted Text Only)*** Assign a visual class to the control.<br>Click the Visual Class Maintenance button to launch the **[Visual Classes Maintenance](https://manual.pvxplus.com/nomads-graphical-application/system-maintenance-tools/system-options/visual-classes#vcutility)** utility for creating or editing visual classes.<br>To assign visual classes to controls at the ***library*** level, see **[Visual Class Assignment](https://manual.pvxplus.com/nomads-graphical-application/nomads-development/maintaining-library-objects/visual-class-assignment)**.<br>Note:  <br>Visual class names that begin with an "\*" (asterisk) are pre-defined visual classes used by PVX Plus and may be subject to change without notice.<br>*(The Visual Class Maintenance button was added in PxPlus 2019.)* |
| **iNomads Class** | ***(Fonted and Fixed Text)*** Assign an iNomads class to the control. The iNomads class contains class attribute references used when defining the control in the HTML code generated in iNomads. An iNomads class reference must start with an alpha character (A-Z or a-z), followed by any combination of A-Z, a-z, 0-9, underscore or dash. Multiple references may be entered, separated by a space.<br>For a list of pre-defined classes, see **[iNomads Classes](https://manual.pvxplus.com/inomads/inomads-classes)**.<br>*(The iNomads Class property was added to Fixed Text in PxPlus 2019.)* |
|  |  |
| *Security* | Security restrictions. See **[Restricting Access](https://manual.pvxplus.com/nomads-graphical-application/system-maintenance-tools/security-manager/restricting-access)** for information on **Object Security Definition**. |
| *Groups* | ***(Fonted Text Only)*** Assign the control to a group. See **[Group Assignment](https://manual.pvxplus.com/nomads-graphical-application/nomads-development/maintaining-library-objects/group-assignment)**. |
| *Notes* | Add notes/comments for the control. Maximum 1024 characters.<br>*(The Notes button was added in PxPlus 2023.)* |
