# Check Box Data Class

> Source: https://manual.pvxplus.com/data-dictionary/data-classes/checkbox

When creating or editing a data class for a *Check Box* control type, **Data Class Definitions** maintenance displays the following:

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

Note:  
Properties marked with an \* (asterisk) can be *dynamic*. Expressions that come from a data class *must* be global variables. See [Dynamic Control Properties](https://manual.pvxplus.com/data-dictionary/data-classes/dynamic).

The following tabbed panels are available: **[Display](https://manual.pvxplus.com/data-dictionary/data-classes/checkbox#display)**, **[Attributes](https://manual.pvxplus.com/data-dictionary/data-classes/checkbox#attributes)**, **[User Aids](https://manual.pvxplus.com/data-dictionary/data-classes/checkbox#useraids)** and **[Validation](https://manual.pvxplus.com/data-dictionary/data-classes/checkbox#validation)**.

|  |  |
| --- | --- |
| *Class Name* | Key to the data classes file *(providex.dcl)*. When entering a new data class name, spaces are ***not*** allowed. Maximum length is 30 characters.<br>Click the Query button *(binoculars)* for a list of defined data classes (if any). Click the Browse buttons to browse to existing data classes. Click the Copy Class button to copy an existing data class to a new data class. If unsaved changes are detected when selecting these buttons, a message will display to save the changes.<br>*(First/Last Class browse buttons were added in PxPlus 2019.)* |
| *(Add/Edit Notes)* | ***(Available when a new or existing data Class Name is entered or selected)***<br>Button used to add (or edit) notes for a new or existing data class. Maximum 1024 characters. The button's appearance and tooltip change to indicate that a note was added for the data class.<br>*(The Add/Edit Notes button was added in PxPlus 2022.)* |
| *(Copy Class)* | ***(Available when an existing data Class Name is selected)***<br>Button used to create a new data class by copying the settings from an existing data class. Once it is created, ***the new data class must be saved***, as the Copy process does not do this.<br>*(The Copy Class button was added in PxPlus 2019.)* |
| *Last Class Change* | This information is updated automatically whenever a change is made to the data class definition.<br>*(Last Class Change was added in PxPlus 2023.)* |
| *Control Type* | Default control type used to represent the data that belongs to your defined data class. Click the drop-down arrow for a list of selections: *Multi Line, Drop Box, List Box, Radio Buttons, Check Box*. (Default is *Multi Line*.)<br>The control type lets the NOMADS **[Panel Designer](https://manual.pvxplus.com/nomads-graphical-application/panel-designer/introduction)** and **[File Maintenance Generator](https://manual.pvxplus.com/nomads-graphical-application/dictionary-based-development/fmgen/fmgen-introduction)** know which type of control to use for representing the data element. |
| *Description* | Generic description of the data class (*Fixed* value, *Expression* or *Message Library Reference*). This will be copied to the data dictionary when the data class is applied to an element. See **[Element Description](https://manual.pvxplus.com/data-dictionary/data-dictionary-maintenance/element-description)**. |
| *\*Dynamic* | For new data classes created ***in PxPlus 2018***, this check box is selected by default.<br>For data classes created ***prior to PxPlus 2018***, this check box is ***not*** selected by default.<br>Select this check box to set dynamic control properties to *Dynamic* automatically when the data class is entered for a control in the Panel Designer. If *Dynamic* is ***not*** selected, dynamic control properties must be set to *Dynamic* manually after entering the data class for a control. See **[Dynamic Control Properties](https://manual.pvxplus.com/data-dictionary/data-classes/dynamic)**.<br>*(The Dynamic check box was added in PxPlus 2018.)* |
| *Internal Data Type* | Internal format of the data when manipulated by a program, either *String* or *Numeric*. (Default is *String*.) |
| *Internal Size* | Maximum size of the stored data element. When the *Control Type* is *Check Box*, the *Internal Size* is 1. |
| **Display *( \* indicates* a *Dynamic property)*** |  |
| **Properties** | \|  \|  \|<br>\| --- \| --- \|<br>\| *Check Box Width* \| Width of the control in number of columns - numeric expression. Format mask is ##0.00 and valid entries are 0 to 255. \| |
| **Bitmaps** | Sets the button bitmap. Click the Bitmap Library button to select a bitmap from the Bitmaps dialogue for the state, if applicable.<br>\|  \|  \|<br>\| --- \| --- \|<br>\| *\*Off State* \| Bitmap shown when button is in the "Off" (normal) state. \|<br>\| *\*On State* \| Bitmap shown when button is in the "On" state. \|<br>\| *\*3rd State* \| ***(Applicable when Tri-State Check Box (Attributes tab) is selected)*** Bitmap shown when button is in an optional third state. See **[Tri-state Check Box](https://manual.pvxplus.com/data-dictionary/data-classes/checkbox#tristate)** below. \|<br>\| *Alignment* \| Sets the bitmap alignment. Click the drop-down arrow for a list of selections: *Left, Right, Top, Bottom, Center/Scale*. Selecting *Center/Scale* alignment also forces the selection of the *Scale bitmap* option. \|<br>\| *Scale bitmap* \| Scales the bitmap to fit the button size. Any button text is forced to be aligned *Center/Scale*.<br>Note:  <br>Top, Bottom and Center/Scale alignments and the Scale bitmap option only work in 4D mode. \|<br>*(Bitmaps definitions for up to three states was added in PxPlus 2018.)  <br>(The Center/Scale alignment and Scale bitmap options were added in PxPlus 2019 Update 1.)* |
| **\*Image Options** | ***(Available when Bitmaps for Off/On/3rd States are selected)***<br>Sets advanced image options for the bitmap. Click the Additional Image Options button to the right of the **Image Options** multi-line to invoke the **Image Options** dialogue.<br>![](https://manual.pvxplus.com/migration-assets/bad67b7d896b3d25bed2c344a815ac315217325960ac5a59d4cab6d7302b52eb.jpg)<br>This dialogue consists of the following:<br>\|  \|  \|<br>\| --- \| --- \|<br>\| **Options** \| *Image Transparency*<br>Bitmap transparency option. Click the drop-down arrow for a list of selections: *None, Pixel sets transparency* or *'Light Gray' is transparent*.<br>*Flip Image*<br>Flips the image. Click the drop-down arrow for a list of selections: *None, Flip horizontally (left/right), Flip vertically (up/down)* or *Flip horizontally and vertically*.<br>*Rotation Angle*<br>Counter clockwise rotation angle at which to display the image. Valid entries are 0 to 359.<br>*Invert Image*<br>Displays the image with inverted colors.<br>*Gray Scale Image*<br>Converts the image to gray scale. \|<br>\| **Cropping (Pixels from  <br>Top/Left of Image (0,0))** \| Define the cropped image in terms of *Left, Right, Top* and *Bottom* where these values are the number of pixels from the top left corner (0,0) of the image. \|<br>Note:  <br>Image Transparency and Cropping are *not* supported in [iNomads](https://manual.pvxplus.com/inomads/inomads-introduction).<br>*(The Image Options dialogue was added in PxPlus 2019.)* |
| **\*Visual Class** | Assign visual class to the control. 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. |
| **\*iNomads Class** | 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. For a list of pre-defined iNomads classes, see **[iNomads Classes](https://manual.pvxplus.com/inomads/inomads-classes)**. |
| **Attributes *( \* indicates* a *Dynamic property)*** |  |
| **Attributes** | \|  \|  \|<br>\| --- \| --- \|<br>\| *Auto Tab Skip* \| Control is skipped when tabbing forward but is still accessible via **Shift - Tab** or the mouse. \|<br>\| *Initially Disabled* \| Control region is grayed out and is not accessible to the user for input. The control is accessible programmatically. \|<br>\| *Initially Hidden* \| Control is not displayed but is accessible programmatically. \|<br>\| *Button to the Right of Text* \| Bitmap will display after the text. This is only applicable if the Check Box does not contain a bitmap. *(added in PxPlus 2018)* \|<br>\| *Numeric* \| Returns a value for the control in a numeric variable. \|<br>\| *Signal Only (No Focus)* \| PxPlus generates a CTL value but does not shift focus to the button automatically *(default)* unless focus is explicitly passed. *(added in PxPlus 2018)* \|<br>\| *Hover Cursor* \| Controls the type of cursor to display whenever the mouse moves over the control. Options are: *Default, Arrow, Wait, Insert, Movement arrows, Sizing arrow, Hand, Crossed hand, Rabbit in hat, Happy face, Sad face, Up/Down arrow, Left/Right arrow and Not allowed*. *(added in PxPlus 2018)* \|<br>\| *Tri-State Check Box* \| Creates a Check Box that includes a third state. User will be able to toggle between three states: ***On***, ***Off*** and an optional ***Third State***. \|<br>\| *Enable Scrolling* \| Allows the control to scroll in a resizable/scrollable dialogue box. See **[Panel Resizing](https://manual.pvxplus.com/nomads-graphical-application/panel-designer/resizing-and-persistence/panel-resizing)**. \|<br>\| *Flat Button* \| Button shows no raised outline unless the mouse is over the button or the button is pressed. *(added in PxPlus 2018)* \|<br>\| *Bitmap Button* \| Button has a bitmap whose width is divided into four images. Use this to custom design buttons with any color, style or shape by controlling the image that appears. *(added in PxPlus 2018)* \|<br>\| *Sticky Button* \| 'Sticky' functionality, which means that the button remains in the "pressed" position until the next selection.*(added in PxPlus 2018)* \|<br>\| *Hover Color* \| Text on the button is highlighted whenever the mouse is over the button area. The default color is controlled by the **'[HC](https://manual.pvxplus.com/parameters/hc)'** system parameter that defaults to 'Light Blue'. *(added in PxPlus 2018)* \|<br>\| *Flat - No Border* \| Button has no border and shows no raised outline unless the button is pressed. *(added in PxPlus 2018)* \|<br>\| *Transparent* \| Button is transparent; i.e. the window contents behind the button show through. This style can be used to place buttons onto bitmaps. *(added in PxPlus 2018)* \|<br>\| *Drop-List Button* \| Extra button with an arrow bitmap is attached to the right of the main button. When the arrow bitmap button is clicked, the associated popup menu is displayed. *(added in PxPlus 2018)* \|<br>\| *Ignore Change Flag* \| Select this check box when you do ***not*** want the NOMADS **[CHANGE_FLG](https://manual.pvxplus.com/nomads-graphical-application/appendix/nomads-variables/overview#reserved)** variable to be updated when the control value is changed. *(added in PxPlus 2017)* \|<br>\| *Check Box Corner Radius* \| ***(Available for Standard Check Boxes - Without Bitmap)***<br>Sets the corner radius for a check box that looks like a check box (no bitmap defined), not for a check box that looks like a normal button. Works only in **4D** mode. See **[CbCornerRadius$](https://manual.pvxplus.com/control-object-properties/checkbox-properties#cbcornerradius)** property. When a bitmap is added, this option is replaced by the **[Button Corner Radius](https://manual.pvxplus.com/data-dictionary/data-classes/checkbox#btncorner)** option.<br>Possible values are *Null (blank), Round*, *Square* or a value from 0 to 255 inclusive.<br>***Example:***<br>![](https://manual.pvxplus.com/migration-assets/dc153d1373d7250381f96bcb9e0cab6bc7759768a5b0793ad86ade6ff25f2d59.png)![](https://manual.pvxplus.com/migration-assets/5d770bdb1fa1caac2857637484e59ec39275affcd9707ce87be83866695645d3.png)![](https://manual.pvxplus.com/migration-assets/246566ec7aca683c4d1ae322d8adf0a666510b8736c1dcd583fcec088f003b35.png)<br>*(Check Box Corner Radius was added in PxPlus 2026.)* \|<br>\| *Button Corner Radius* \| ***(Available for Check Box Buttons - With Bitmap)***<br>Sets the corner radius for a check box only when it is drawn as a button, which occurs when a bitmap is added. Works only in **4D** mode. See **[CornerRadius$](https://manual.pvxplus.com/control-object-properties/checkbox-properties#cornerradius)** property. When no bitmap is added, this option is replaced by the **[Check Box Corner Radius](https://manual.pvxplus.com/data-dictionary/data-classes/checkbox#cbcorner)** option.<br>Possible values are *Null (blank), Round*, *Square* or a value from 0 to 255 inclusive.<br>***Example:***<br>![](https://manual.pvxplus.com/migration-assets/883a8e3e8437a9e1240e2b70a0a90be1b4b887edcf11bf4f447e5ac5e63c530a.png)![](https://manual.pvxplus.com/migration-assets/2a44d4f058546c49b7cfdc336debc58dc2c9a2ac512773e3a5d0f52d7b1645d1.png)![](https://manual.pvxplus.com/migration-assets/372246b904ec2bc7731a7b37f41f0d7824ebe27a16bee7eff59451cf87ee50fb.png)<br>*(Button Corner Radius was added in PxPlus 2026.)* \| |
| **\*User Tag Field** | For controls, data/tag field which can be used to pass information on such things as formatting, error messages or validation rules. Field contents are placed in a variable using the control name with a .TAG$ extension. |
| **User Aids *( \* indicates* a *Dynamic property)*** |  |
| **\*Help Reference** | \|  \|  \|<br>\| --- \| --- \|<br>\| *Type* \| Click the drop-down arrow to select either *Internal* or *External* help reference:<br>*Internal*<br>Application supplied message text (*Fixed* value, string *Expression* or *Message Library Reference*).<br>*External*<br>Standard Windows help system consisting of a help file name and an optional keyword or reference number (*Fixed* or *Expression*). \| |
| **\*Floating Tip** | Mouse pointer message for the control (*Fixed* value, string *Expression* or *Message Library Reference*).<br>You can customize the floating tip by adding a tip title, descriptive tip text and a hyperlink. These features enhance the visual display and functionality of the tip by providing users with much needed information at their fingertips. You can define either a *Standard* tip or an *HTML* tip that provides a simplified HTML Editor for customizing the tip text. To do this, click the button to the right of the **Floating Tip** multi-Line input to invoke the **Define Info Tip** dialogue. See **[Defining an Info Tip](https://manual.pvxplus.com/nomads-graphical-application/creating-panel-controls/defining-an-info-tip)**.<br>Note:  <br>The Floating Tip drop box and multi-line input cannot be changed once an [HTML](https://manual.pvxplus.com/nomads-graphical-application/creating-panel-controls/defining-an-info-tip#tiptype) tip has been defined. |
| **\*Message Bar** | Text to be displayed in the panel's status bar when focus is on the control (*Fixed* value, string *Expression* or *Message Library Reference*). |
| **Validation *( \* indicates* a *Dynamic property)*** |  |
| **\*Default Setting** | Initial value to be applied when the Check Box is drawn. |
| **\*Values** | \|  \|  \|<br>\| --- \| --- \|<br>\| *Value in 'Off' State* \| Value to return when the Check Box is turned ***Off***. Can be a numeric value or a single character translation value. \|<br>\| *Value in 'On' State* \| Value to return when the Check Box is turned ***On***. Value can be a numeric value or a single character translation value. \|<br>\| *Tri-State Check Box* \| Creates a Check Box that includes a third state. User will be able to toggle between three states: ***On***, ***Off*** and an optional ***Third State***. See *Value in '3rd' State* below. \|<br>\| *Value in '3rd' State* \| Value to return for the ***3rd State***. Can be a numeric or a single character translation value. Requires *Tri-state Check Box* to be selected. See **[Attributes](https://manual.pvxplus.com/data-dictionary/data-classes/checkbox#attributes)** above. \| |
|  |  |
| *Popup Menu* | Button that is used to assign a popup menu to a data class (*Fixed* value or *Expression*, to be evaluated at run time when the popup signal occurs). A check mark displayed on the button indicates that a popup menu is currently assigned to the data class. This button invokes the **[Assign Popup Menu](https://manual.pvxplus.com/nomads-graphical-application/creating-panel-controls/popup-menu/applying-a-popup-menu)** window for assigning *Prior Popup* logic, a pre-defined popup object or user-defined program. If selected, *Prior Popup* logic will be executed before the popup menu is displayed. If *On Select* logic exists for the control with the popup menu, this will be triggered before the popup event.  <br>  <br>Select the *Panel* option in the **Assign Popup Menu** window to display a pre-set list of popup objects available for the highlighted library. The *Program* option is used to add a user-defined program. This can be either a *Fixed* value or *Expression* to be evaluated at run time when the popup signal occurs. |
| *Write* | Adds a new data class definition or updates an existing definition. |
| *Delete* | ***(Available when an existing data class is selected)***<br>Removes the selected data class definition. Before proceeding, a message asks to confirm the deletion, as deleting a data class in use may cause issues. |
| *Clear* | Clears the current data class definition to allow you to define a new data class or select an existing definition. |
| *Exit* | Closes **Data Class Definitions** maintenance without saving any changes. |

*(The Display and User Aids tabs were added in PxPlus 2018.)*
