# How to Apply Rounded Corners to Controls (Themes and Visual Classes)

> Source: https://manual.pvxplus.com/how-to/how-to-apply-rounded-corners-themes-vc

PxPlus 2026 introduced the ***Corner Radius*** property, which lets you round the corners of panel controls instead of leaving them square, for a more modern look.

Note:  
Corner rounding works only in 4D mode.

This tutorial shows how Themes and Visual Classes can be used together to apply rounded corners and other visual attributes to controls, giving your application a fresh, modern look. They provide an efficient way to apply a consistent appearance to controls without having to modify each control individually.

The Client Master File Maintenance panel will be used as a working example. It contains buttons, drop boxes, multi-lines, and a check box. This tutorial does not include the creation of the panel itself. Instead, it starts with the existing panel, applies a Theme, and then applies Visual Classes to selected controls. The panel is then compared before and after these changes.

Corner rounding is controlled by the *Corner Radius* property for most controls, with two exceptions: check boxes and radio buttons.

A standard check box (with no bitmap) uses a dedicated *Check Box Corner Radius* property instead. Once a bitmap is added, the check box takes on the appearance and behavior of a button, and its rounding is then controlled by its own *Button Corner Radius* property.

A standard radio button (with no bitmap) is always round and has no *Corner Radius* property. Once a bitmap is added, the radio button takes on the appearance and behavior of a button, and its rounding is then controlled by its own *Button Corner Radius* property. Radio buttons are not covered in this tutorial.

Most list box types, except Report View and Variable List Box, also support rounded corners via the *Corner Radius* property. List boxes are not covered in this tutorial.

***Before:***

This screenshot shows the panel ***before*** *Corner Radius* is applied:

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

***After (Theme applied only)***

This screenshot shows the panel ***after*** applying the **Round** Theme only. This Theme applies rounded corners to the buttons, drop boxes, multi-lines and check box on this panel.

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

***After (Theme + Visual Classes applied)***

This screenshot shows the completed panel ***after*** applying individual Visual Classes to selected controls, in addition to the **Round** Theme.

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

## Create the Theme

For this example, a Theme called **Round** will be created to establish rounded corners for the buttons, drop boxes, multi-lines and check box on this panel.

|  |  |
| --- | --- |
| 1\. | Launch the PxPlus IDE. Expand the **Graphical Application Builder (NOMADS)** category. Expand the **Setup** category and double click on **Themes**. |
| 2\. | The **Themes** window opens. For the *Theme* name, enter **Round**. For *Control Type*, select **Button**. |
| 3\. | Under the **Attributes** category, locate the *Corner Radius* property. Enter **5**.<br>![](https://manual.pvxplus.com/migration-assets/0c6a0bf2979990c2e3336524f839cfa892c965d04da6879b2bf1208185b5ff53.png) |
| 4\. | Click the *Write* button to save. A confirmation message displays. Click *OK*. |
| 5\. | Leave the *Theme* name as *Round*. For *Control Type*, select **Check_Box**. |
| 6\. | Under the **Attributes** category, locate the *CB Corner Radius* property. Enter **2**.<br>![](https://manual.pvxplus.com/migration-assets/b729de9f18464cc9c9b8f5883a08e87f40f9f7a10c0f032eb8ae109ff1504e02.png) |
| 7\. | Click the *Write* button. |
| 8\. | Leave the *Theme* name as *Round*. For *Control Type*, select **Drop_Box**. |
| 9\. | Under the **Attributes** category, locate the *Corner Radius* property. Enter **3**.<br>![](https://manual.pvxplus.com/migration-assets/69c98b2552372b54da3c1852e5ecb0fac35e5e45d0afec0a977a9fe73611808c.png) |
| 10\. | Click the *Write* button. |
| 11\. | Leave the *Theme* name as *Round*. For *Control Type*, select **Multi_Line**. |
| 12\. | Under the **Attributes** category, locate the *Corner Radius* property. Enter **5**.<br>![](https://manual.pvxplus.com/migration-assets/65bd8fa153c3c6b19ce88750793627facb8153678d3be57066d25d95839a9486.png) |
| 13\. | Click the *Write* button. |
| 14\. | Click the *Exit* button to close the **Themes** window. |

In the next section, the **Round** Theme will be applied to the panel to see its effect on the controls.

## Apply the Theme

A Theme can be assigned at different levels within a NOMADS application, such as in your START_UP program or in **[Library Defaults](https://manual.pvxplus.com/nomads-graphical-application/nomads-development/maintaining-library-objects/library-defaults)** (**Font/Color** tab). See **[Applying a Theme to Your Application](https://manual.pvxplus.com/nomads-graphical-application/system-maintenance-tools/system-options/themes#applyingtheme)**.

For this example, the **Round** Theme will be applied directly to the Client Master File Maintenance panel at the Panel Header level.

|  |  |
| --- | --- |
| 1\. | Launch the NOMADS Panel Designer for the panel to which the defined Theme will be applied. (This tutorial is using the NOMADS+ version of the designer.) |
| 2\. | Click the *Header Panel* button in the toolbar or select *Panel* > *Header* from the menu bar.<br>![](https://manual.pvxplus.com/migration-assets/9898c3248f7a289a1dcb4c5514b0fe630e31a85baf63ffab112b8d08a88ffee4.png) |
| 3\. | The **Panel Definition** window opens. Click the **Font/Color** tab. |
| 4\. | Locate the **Theme** section. Click the drop-down and select **Round**. Click *OK*.<br>![](https://manual.pvxplus.com/migration-assets/96494324dcbbeb715a22ba50d8dfa6b2bd89457a193fd8f6daa882090471964e.png) |
| 5\. | In the toolbar, click *Save* and then click *Test* to review the panel.<br>![](https://manual.pvxplus.com/migration-assets/3a74d0caa3498b7447df37855ea41602159d031d302ebcf5827e7c5baac07453.png) |
| 6\. | The test panel looks like this:<br>![](https://manual.pvxplus.com/migration-assets/3807ffcdbf17efbc70593367550815694035930c52441be507a81b57aa008724.jpg) |
| 7\. | The buttons, check box, drop boxes and multi-lines now have rounded instead of square corners. |
| 8\. | Close the test panel but do not exit the NOMADS Panel Designer. |

In this example, the **Round** Theme establishes the general appearance of the controls on the panel. Visual Classes can then be used to override that appearance for selected controls, as demonstrated in the next sections.

## Create the Visual Classes

For this example, create Visual Classes for the following control types: button, check box, drop box and multi-line.

Each Visual Class will specify different attributes. In the next section, these Visual Classes will be applied to selected controls, demonstrating how a Visual Class can supplement or override the appearance established by the **Round** Theme.

***Create Button Visual Classes***

|  |  |
| --- | --- |
| 1\. | From the PxPlus IDE, expand the **Graphical Application Builder (NOMADS)** category and then expand the **Setup** category. Double click on **Visual Classes**. |
| 2\. | The **Visual Classes** window opens. Create a ***Button*** Visual Class called **Action Button**. Enter the following details:<br>*Class Name:* Action Button (Name for the Visual Class)  <br>*Class Theme:* Round (Name of the Theme that the Visual Class belongs to)  <br>*Control Type:* Button  <br>*Description:* Light Cyan, Round, Custom Border Width (A brief description that identifies the Visual Class)<br>![](https://manual.pvxplus.com/migration-assets/006ad4781a1fca7ebf5a00aff58104e9a48e9b7232a34ce1a5261c6b561036be.png) |
| 3\. | Under the **Attributes** category, set the following properties:<br>**Border Width**: Click the drop-down and select **1**.  <br> **Corner Radius**: Enter **255**.<br>![](https://manual.pvxplus.com/migration-assets/3e523720f3c577938701ed5c998b3fe79ee884b3bac938242c092e70873c2598.png) |
| 4\. | Under the **Colors** category, set the following property:<br>**Background Color**: Click the dotted button to open the **Color Selections** window. Under **Standard**, select **Light Cyan**. Click *OK*.<br>![](https://manual.pvxplus.com/migration-assets/51d8ff430b8c2311fcdf2a0a043466a68beb99adda65250f72bca8273fe37fe4.png) |
| 5\. | Click the *Write* button to save. A confirmation message displays. Click *OK*. |
| 6\. | Create a second ***Button*** Visual Class. Click the *Clear* button to clear the fields. The **Visual Classes** window stays open. |
| 7\. | Enter the following details:<br>![](https://manual.pvxplus.com/migration-assets/640a332d28ab4cb541a0be25bcd8323776f35284b62a0f5e6bb1033aa779f2e1.png) |
| 8\. | Under the **Colors** category, set the following property:<br>**Background Color**: Click the dotted button to open the **Color Selections** window.<br>The desired color is a Hex Color Code. Under **HTML Hex Color Code**, select **Pale Turquoise** **(#AFEEEE)**. Click *OK*.<br>![](https://manual.pvxplus.com/migration-assets/c4d73b2eaec3093a6173de4371a76794b79a7846dc9b01a14d86ec8e946d9ce0.png) |
| 9\. | Click the *Write* button. |
| 10\. | Click the *Clear* button. The fields are cleared, and the **Visual Classes** window stays open. |

***Create a Check Box Visual Class***

|  |  |
| --- | --- |
| 1\. | With the **Visual Classes** window open, create a ***Check Box*** Visual Class called **Check Box Square**. Enter the following details:<br>![](https://manual.pvxplus.com/migration-assets/ae00a7e37d9e8d260c997d1ff73ff9b593f734a72945384efa329eba18552736.png) |
| 2\. | Under the **Attributes** category, set the following property:<br>**CB Corner Radius**: Click the drop-down and select **Square**.<br>![](https://manual.pvxplus.com/migration-assets/48fc4532bb14276d7a889a2129e2375bf250e863f22fb62bcd8d80fa9771b1c7.png) |
| 3\. | Under the **Colors** category, set the following property:<br>**CB Mark Color**: Click the dotted button to open the **Color Selections** window. Under **Standard**, select **Light Red**. Click *OK*.<br>![](https://manual.pvxplus.com/migration-assets/775dadcc5423752149afef4a6a082c4087a082caf56d2d95fcfe178659bfbe35.png) |
| 4\. | Click the *Write* button. |
| 5\. | Click the *Clear* button. The fields are cleared, and the **Visual Classes** window stays open. |

***Create a Drop Box Visual Class***

|  |  |
| --- | --- |
| 1\. | With the **Visual Classes** window open, create a ***Drop Box*** Visual Class called **Drop Box Input**. Enter the following details:<br>![](https://manual.pvxplus.com/migration-assets/cacb1843f2f0acee272d4bbc4302fd239f8bd3d2d69e522458efc10bd9e95027.png) |
| 2\. | Under the **Attributes** category, set the following properties:<br>**Corner Radius**: Click the drop-down and select **Square**.   <br> **Field Height:** Enter **20**.<br>![](https://manual.pvxplus.com/migration-assets/532ecbad226142cdb5be1f5d2537e4c98a4f9fe94fd120544ae8f7b07d9d4944.png) |
| 3\. | Click the *Write* button. |
| 4\. | Click the *Clear* button. The fields are cleared, and the **Visual Classes** window stays open. |

***Create a Multi-Line Visual Class***

|  |  |
| --- | --- |
| 1\. | With the **Visual Classes** window open, create a ***Multi-Line*** Visual Class called **MultiLine Round Light Gray**. Enter the following details:<br>![](https://manual.pvxplus.com/migration-assets/1b6689e440159e90b1b1d605d4407417635445ac95e368163b578dd09e0b3ab1.png) |
| 2\. | Under the **Attributes** category, set the following property:<br>**Corner Radius**: Enter **3**.<br>![](https://manual.pvxplus.com/migration-assets/32bea0283136021c3dd061d51b2621333b283327b2f1d7a0462c32231a2576e7.png) |
| 3\. | Under the **Colors** category, set the following property:<br>**Background Color**: Click the dotted button to open the **Color Selections** window. Under **Standard**, select **Light Gray**. Click *OK*.<br>![](https://manual.pvxplus.com/migration-assets/d9c91639083752e45fcc7deb49c6df93a7e78fdda37589a257bd75c8f1e3efda.png) |
| 4\. | Click the *Write* button. |
| 5\. | No other Visual Classes need to be defined for this example. Click the *Exit* button to close the **Visual Classes** window. |

In the next section, these Visual Classes will be applied to specific controls.

## Apply the Visual Classes

***Apply the Button Visual Classes***

Apply the button Visual Class called **Action Button** to the **Save**, **Delete**, **Clear** and **Exit** buttons.

|  |  |
| --- | --- |
| 1\. | In the NOMADS Panel Designer, double click the **Save** button. |
| 2\. | The **Button Properties** window opens. Click the **Font/Color** tab. |
| 3\. | Locate the **Visual Class** section. Click the drop-down and select **Action Button**. Click *OK*.<br>![](https://manual.pvxplus.com/migration-assets/957d639c5e8fbaebb459a846519c33d3cb0b9a116ee092c2e3c6fe95464a38e1.png) |
| 4\. | Repeat steps 1 to 3 to apply this Visual Class to the **Delete**, **Clear** and **Exit** buttons. |
| 5\. | In the toolbar, click *Save* and then click *Test* to review the panel.<br>![](https://manual.pvxplus.com/migration-assets/09ed60e1503344485189d19dfa21b98a0cb89da0d100655f10ddbba5b5964bce.png) |
| 6\. | The test panel looks like this:<br>![](https://manual.pvxplus.com/migration-assets/b66a1553b5be6fca4da889ba48a244d4b3c9309295dc93b93ebe0e71d96a89d1.png)<br>Notice how the **Action Button** Visual Class changes the appearance of the four buttons. |
| 7\. | Close the test panel. |

Apply the button Visual Class called **Browse Button** to each of the four browse buttons beside the Client ID field.

|  |  |
| --- | --- |
| 1\. | In the NOMADS Panel Designer, double click the first browse button. |
| 2\. | The **Button Properties** window opens. Click the **Font/Color** tab. |
| 3\. | In the **Visual Class** section, click the drop-down and select **Browse Button**. Click *OK*. |
| 4\. | Repeat steps 1 to 3 to apply this Visual Class to the second, third and fourth browse buttons. |
| 5\. | Click the *Save* toolbar button and then click *Test* to review the panel. |
| 6\. | The test panel looks like this:<br>![](https://manual.pvxplus.com/migration-assets/826bb24f35eebebb709632669455f49caabc58716e50ab65a27877ebb8de3a64.png)<br>Notice how the **Browse Button** Visual Class changes the appearance of the four browse buttons. |
| 7\. | Close the test panel. |

***Apply the Check Box Visual Class***

Apply the check box Visual Class called **Check Box Square** to the **Loyalty Program** check box.

|  |  |
| --- | --- |
| 1\. | In the NOMADS Panel Designer, double click the **Loyalty Program** check box. |
| 2\. | The **Check Box Properties** window opens. Click the **Font/Color** tab. |
| 3\. | In the **Visual Class** section, click the drop-down and select **Check Box Square**. Click *OK*.<br>![](https://manual.pvxplus.com/migration-assets/9a77c3bc198a3dbfefb83d05d1ecbce153240c30e51614cbc2bf590e0439a966.png) |
| 4\. | Click the *Save* toolbar button and then click *Test* to review the panel. |
| 5\. | The test panel looks like this:<br>![](https://manual.pvxplus.com/migration-assets/b92b922e1cce70d9f72d8f5c41222e9cd357440b068ebc9408ede60b17a1dc4e.png)<br>Notice how the Loyalty Program check box now has square corners, overriding the rounded corners applied by the **Round** Theme. |
| 6\. | Close the test panel. |

***Apply the Drop Box Visual Class***

Apply the drop box Visual Class called **Drop Box Input** to the Shipment Method drop box only.

|  |  |
| --- | --- |
| 1\. | In the NOMADS Panel Designer, double click the Shipment Method drop box. |
| 2\. | The **Drop Box Properties** window opens. Click the **Font/Color** tab. |
| 3\. | In the **Visual Class** section, click the drop-down and select **Drop Box Input**. Click *OK*.<br>![](https://manual.pvxplus.com/migration-assets/a4f8e8bc1b9eea7ecf3163177e2720dc281b47999661220a65b0170037db7735.png) |
| 4\. | Click the *Save* toolbar button and then click *Test* to review the panel. |
| 5\. | The test panel looks like this:<br>![](https://manual.pvxplus.com/migration-assets/a37a57f7240d3385dfa7c6a5681ebe66be7a7e544db15f1d9e9899a7358fbb90.png)<br>Notice that the Shipment Method drop box now has square corners and a different field height. The square corners override the rounded corners applied by the **Round** Theme:<br>![](https://manual.pvxplus.com/migration-assets/591250866061bd615bc62a54ea195c4da80b4a7bda0e0f0c9afa7ca75fb57109.png) |
| 6\. | Close the test panel. |

***Apply the Multi-Line Visual Class***

Apply the multi-line Visual Class called **MultiLine Round Light Gray** to the Name multi-line.

|  |  |
| --- | --- |
| 1\. | In the NOMADS Panel Designer, double click the Name multi-line. |
| 2\. | The **Multi-Line Properties** window opens. Click the **Font/Color** tab. |
| 3\. | In the **Visual Class** section, click the drop-down and select **MultiLine Round Light Gray**. Click *OK*.<br>![](https://manual.pvxplus.com/migration-assets/744ac314f6af024bfddc85995e93ad6ab0e0cf26015d53e42e718152348965ab.png) |
| 4\. | Click the *Save* toolbar button and then click *Test* to review the panel. |
| 5\. | The test panel looks like this:<br>![](https://manual.pvxplus.com/migration-assets/31d6a1c08dc29466da70fbdb60d26c1a0a08d8e8b01d57625438a43f6f6b7852.png)<br>Notice how the Name multi-line differs from the Address and City multi-lines. The Visual Class applies a Light Gray background and changes the Corner Radius established by the **Round** Theme to make the corners less rounded. |
| 6\. | Close the test panel. |

This example shows how Themes and Visual Classes can be used together to give controls a consistent, modern appearance without having to modify each control individually.

The Theme establishes the common rounded appearance, while Visual Classes apply additional attributes or selectively override the Theme for particular controls. For example, some of the Visual Classes use square corners to override the rounded corners established by the Theme.

Once created, Themes can be copied to other directories using the **Copy Theme** utility, along with any related Visual Classes.

## See Also

**[Copy Theme Utility](https://manual.pvxplus.com/nomads-graphical-application/system-maintenance-tools/system-options/copy-theme)  
[How to Copy a Theme](https://manual.pvxplus.com/how-to/how-to-copy-theme)  
[How to Apply Rounded Corners to Controls (NOMADS)](https://manual.pvxplus.com/how-to/how-to-apply-rounded-corners-nom)**  
**[How to Apply Rounded Corners to Controls (Non-NOMADS)](https://manual.pvxplus.com/how-to/how-to-apply-rounded-corners-non-nom)**
