# Themes and Visual Classes: Button Properties

> Source: https://manual.pvxplus.com/nomads-graphical-application/system-maintenance-tools/system-options/themes-vc-btn

For the ***Button*** control type, the button's default appearance can be controlled by setting the standard properties for *Background, Foreground*, *Border Color* and *Border Color 2*. Additional button properties can be set that control the button's appearance when the button's ***state*** is changed, thus providing a further visual cue. Possible button states are ***Active***, ***Disable***, ***Focus*** and ***Hover***:

|  |  |  |
| --- | --- | --- |
|  | *Active* | Button is pressed down. |
|  | *Disable* | Button is disabled. |
|  | *Focus* | Button has focus. |
|  | *Hover* | Mouse is over the button. |

To set the properties that control the button's appearance when the button's ***state*** is changed, see the **[Colors (States)](https://manual.pvxplus.com/nomads-graphical-application/system-maintenance-tools/system-options/themes-vc-btn#states)** category.

***Example:***

You can set a "Dark Green" *Background Color* (for the button's default state), a "Light Green" *Active Background Color* (when clicking and holding down the mouse on the button), and a "Light Red" *Hover Background Color* (when hovering the mouse over the button).

This table lists all the ***Button*** properties:

| **Property** | **Description** |
| --- | --- |
| **Attributes** |  |
| *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. |
| *Border Style* | Style of button border. Options are *None, Solid, Double, Groove, Ridge, Inset* and *Outset*:<br>![](https://manual.pvxplus.com/migration-assets/a93dd553662383298edf3d640fe1f0afbd8272fa853d6999b5a08b2aeacc553c.png)<br>If not set, the default Windows style is used.<br>This must be set to a non-blank value to use the *Border Width* and various *Border Color* settings. |
| *Border Width* | Width of the button border (in pixels). Options are *None, 1, 2, 3, 4* and *5*. Only takes effect if the button is not flat and a *Border Style* is specified. |
| *Corner Radius* | Sets the radius for the button corners. Works only in **4D** mode.<br>Possible values are *Null (blank)*, *Round*, *Square* or a value from 0 to 255 inclusive. See **[CornerRadius$](https://manual.pvxplus.com/control-object-properties/button-properties#cornerradius)** property.<br>***Example:***<br>Corner Radius set to **Round**:![](https://manual.pvxplus.com/migration-assets/4653097410171fe4b64e7c6d3f7c1abc3414dd708b13a3212af5191db47e44c8.png)<br>Corner Radius set to **Square**:![](https://manual.pvxplus.com/migration-assets/802d31419de4bac79a0a9144952bb08d18b9aeace3724621f42cfa5cb27756fb.png)<br>Corner Radius set to a value of 10:![](https://manual.pvxplus.com/migration-assets/f7103a9192dee10051a7c82d38d39dd479b402681d7f66638b487be60dcdd429.png)<br>Note:  <br>Corner rounding is limited based on the control type and/or the control size.<br>*(Corner Radius property was added in PxPlus 2026.)* |
| *Drop-List Button* | An 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. |
| *Flat Button* | Button shows no raised outline unless the mouse is over the button or the button is pressed down. |
| *Flat - No Border* | Button has no border and shows no raised outline unless the button is pressed down. |
| *Focus Rectangle* | Controls whether a dotted focus rectangle displays around the Button text.<br>Possible values are:<br>\|  \|  \|  \|<br>\| --- \| --- \| --- \|<br>\|  \| *Default* \| Uses the default setting. \|<br>\|  \| *Display* \| Focus rectangle is shown (On). \|<br>\|  \| *Suppress* \| Focus rectangle is not shown (Off). \|<br>***Example:***<br>Button focus is ***Off***:<br>![](https://manual.pvxplus.com/migration-assets/f369532442cac225ae43124ab5856c0edb3b51b48faff75dcf13e783f1146b74.png)<br>Button focus is ***On***:<br>![](https://manual.pvxplus.com/migration-assets/f343e64129b96e54627d2459fc0d5815f4cedd2c907de4ae3d3be5d445ea835d.png)<br>*(Focus Rectangle property was added in PxPlus 2026.)* |
| *Hover Color* | Text on the button is highlighted when the mouse is over the button. The default color is controlled by the **['CH'](https://manual.pvxplus.com/parameters/ch)** system parameter that defaults to 'Light Blue'. |
| *Hover Cursor* | Controls the type of cursor to display whenever the mouse moves over the control.<br>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*. |
| *Moveable* | Button can be moved by dragging it with the mouse. This movement will ***not*** be saved.<br>*(Moveable property was added in PxPlus 2019.)* |
| *Transparent* | Button is transparent; i.e. the window contents behind the button show through. This style can be used to place buttons onto bitmaps. |
| *Underscore* | Text on the button is underscored. |
| **Colors** |  |
| *Click the dotted Query button or double click inside the cell 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>*After a color property is set, a tick in the selected color displays in the top left corner. A floating tip with a sample of the selected color displays when hovering the mouse over the color setting.*<br>*(The color tick and color tip were added in PxPlus 2018.)  <br>(The Color Selections Query button and dialog were added in PxPlus 2020.)* |  |
| *Background Color* | Button background color. See *Background Color 2* below. |
| *Background Color 2* | Used in conjunction with *Background Color* to generate a two-color gradient fill for the button background. The gradient fill starts with *Background Color* at the top and flows to *Background Color 2* at the bottom.<br>*Background Color **must** be specified*; otherwise, *Background Color 2* will be ignored. |
| *Border Color* | Button border color. See *Border Color 2* below.<br>Border colors are applied only if a **[Border Style](https://manual.pvxplus.com/nomads-graphical-application/system-maintenance-tools/system-options/themes-vc-btn#border_style)** (other than the system default) is specified for the button. |
| *Border Color 2* | Used in conjunction with *Border Color* to generate a two-color button border. *Border Color* is applied to the top and left borders, *Border Color 2* to the bottom and right borders.<br>When **[Corner Radius](https://manual.pvxplus.com/nomads-graphical-application/system-maintenance-tools/system-options/themes-vc-btn#cornerradius)** is set to *Round* or a value, *Border Color 2* is applied to all the button borders when the button is pressed down.<br>*Border Color **must** be specified*; otherwise, *Border Color 2* will be ignored. |
| *Foreground* | Foreground text color of the control in its default state. |
| **Colors (States)** |  |
| *Active Background Color* | Background color when the button is pressed down. See *Active Background Color 2* below. |
| *Active Background Color 2* | Used in conjunction with *Active Background Color* to generate a two-color gradient fill when the button is pressed down. The gradient fill starts with *Active Background Color* at the top and flows to *Active Background Color 2* at the bottom.<br>*Active Background Color **must** be specified*; otherwise, *Active Background Color 2* will be ignored. |
| *Active Border Color* | Button border color when the button is pressed down. See *Active Border Color 2* below.<br>Border colors are applied only if a **[Border Style](https://manual.pvxplus.com/nomads-graphical-application/system-maintenance-tools/system-options/themes-vc-btn#border_style)** (other than the system default) is specified for the button. |
| *Active Border Color 2* | When used in conjunction with *Active Border Color*, these two colors represent the border colors: *Active Border Color 2* (top and left borders) and *Active Border Color* (bottom and right borders).<br>When **[Corner Radius](https://manual.pvxplus.com/nomads-graphical-application/system-maintenance-tools/system-options/themes-vc-btn#cornerradius)** is set to *Round* or a value, *Active Border Color 2* is applied to all the button borders when the button is pressed down.<br>*Active Border Color **must** be specified*; otherwise, *Active Border Color 2* will be ignored. |
| *Active Text Color* | Foreground text color when the button is pressed down. |
| *Disable Background Color* | Background color when the button is disabled. See *Disable Background Color 2* below. |
| *Disable Background Color 2* | Used in conjunction with *Disable Background Color* to generate a two-color gradient fill for the button background when the button is disabled. The gradient fill starts with *Disable Background Color* at the top and flows to *Disable Background Color 2* at the bottom.<br>*Disable Background Color **must*** be specified; otherwise, *Disable Background Color 2* will be ignored. |
| *Disable Border Color* | Button border color when the button is disabled. See *Disable Border Color 2* below.<br>Border colors are applied only if a **[Border Style](https://manual.pvxplus.com/nomads-graphical-application/system-maintenance-tools/system-options/themes-vc-btn#border_style)** (other than the system default) is specified for the button. |
| *Disable Border Color 2* | Used in conjunction with *Disable Border Color* to generate a two-color button border when the button is disabled. *Disable Border Color* is applied to the top and left borders, *Disable Border Color 2* to the bottom and right borders.<br>*Disable Border Color **must*** be specified; otherwise, *Disable Border Color 2* will be ignored.<br>When **[Corner Radius](https://manual.pvxplus.com/nomads-graphical-application/system-maintenance-tools/system-options/themes-vc-btn#cornerradius)** is set to *Round* or a value, *Disable Border Color 2* has no effect. |
| *Disable Text Color* | Foreground text color when the button is disabled. |
| *Focus Background Color* | Background color when the button has focus. See *Focus Background Color 2* below. |
| *Focus Background Color 2* | Used in conjunction with *Focus Background Color* to generate a two-color gradient fill for the button background when the button has focus. The gradient fill starts with *Focus Background Color* at the top and flows to *Focus Background Color 2* at the bottom.<br>*Focus Background Color **must** be specified*; otherwise, *Focus Background Color 2* will be ignored. |
| *Focus Border Color* | Button border color when the button has focus. See *Focus Border Color 2* below.<br>Border colors are applied only if a **[Border Style](https://manual.pvxplus.com/nomads-graphical-application/system-maintenance-tools/system-options/themes-vc-btn#border_style)** (other than the system default) is specified for the button. |
| *Focus Border Color 2* | Used in conjunction with *Focus Border Color* to generate a two-color button border when the button has focus. *Focus Border Color* is applied to the top and left borders, *Focus Border Color 2* to the bottom and right borders.<br>*Focus Border Color **must** be specified*; otherwise, *Focus Border Color 2* will be ignored.<br>When **[Corner Radius](https://manual.pvxplus.com/nomads-graphical-application/system-maintenance-tools/system-options/themes-vc-btn#cornerradius)** is set to *Round* or a value, *Focus Border Color 2* has no effect. |
| *Focus Text Color* | Foreground text color when the button has focus. |
| *Gray Disabled Bitmap* | Controls how the image on the button will display when the button is disabled. Applicable only when there is a bitmap on the button.<br>Click the drop-down arrow for available selections:<br>*Default gray disabled setting **(Default)***  <br> *Images display as shadows*  <br> *Images converted to gray scale*<br>*(Gray Disabled Bitmap property was added in PxPlus 2024.)* |
| *Hover Background Color* | Background color when the mouse is over the button. See *Hover Background Color 2* below. |
| *Hover Background Color 2* | Used in conjunction with *Hover Background Color* to generate a two-color gradient fill for the button background when the mouse is over the button. The gradient fill starts with *Hover Background Color* at the top and flows to *Hover Background Color 2* at the bottom.<br>*Hover Background Color **must** be specified*; otherwise, *Hover Background Color 2* will be ignored. |
| *Hover Border Color* | Button border color when the mouse is over the button. See *Hover Border Color 2* below.<br>Border colors are applied only if a **[Border Style](https://manual.pvxplus.com/nomads-graphical-application/system-maintenance-tools/system-options/themes-vc-btn#border_style)** (other than the system default) is specified for the button. |
| *Hover Border Color 2* | Used in conjunction with *Hover Border Color* to generate a two-color button border when the mouse is over the button. *Hover Border Color* is applied to the top and left borders, *Hover Border Color 2* to the bottom and right borders.<br>*Hover Border Color **must** be specified*; otherwise, *Hover Border Color 2* will be ignored.<br>When **[Corner Radius](https://manual.pvxplus.com/nomads-graphical-application/system-maintenance-tools/system-options/themes-vc-btn#cornerradius)** is set to *Round* or a value, *Hover Border Color 2* has no effect. |
| *Hover Text Color* | Foreground text color when the mouse is over the control. |
| **Font** |  |
| *Font* | Click the dotted Query button or double click inside the cell to specify font properties and attributes, such as *Bold*, *Italics*, etc. In addition, *Alignment* (default: *Center*) and *Word Wrap* can be specified.<br>See **[Font Properties](https://manual.pvxplus.com/nomads-graphical-application/system-maintenance-tools/system-options/font-properties)**.<br>*(Alignment and Word Wrap options were added in PxPlus 2022.)  <br>(The Use 'Font Name' only check box option was added in PxPlus 2025.)* |
| **Other** |  |
| *iNomads Class* | 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>*(iNomads Class property was added in PxPlus 2020.)* |

## See Also

**[Themes](https://manual.pvxplus.com/nomads-graphical-application/system-maintenance-tools/system-options/themes)**  
**[Visual Classes](https://manual.pvxplus.com/nomads-graphical-application/system-maintenance-tools/system-options/visual-classes)**
