# Customizing Radio Buttons and Check Boxes

> Source: https://manual.pvxplus.com/appendix/customizing-rb-and-cb

You can customize the ***default*** Radio Button and Check Box display when using the **['4D'](https://manual.pvxplus.com/mnemonics/4d)** GUI display mnemonic. This can be done by using the following pairs of device options with either the **['OPTION'](https://manual.pvxplus.com/mnemonics/option)** mnemonic or **[SETDEV](https://manual.pvxplus.com/directives/setdev-set)** directive ***(for Windows Only)***:

|  |  |  |
| --- | --- | --- |
|  | ***For Check Boxes:*** | **[CbxImage](https://manual.pvxplus.com/mnemonics/option#cbximage)** and **[CbxMarkSize](https://manual.pvxplus.com/mnemonics/option#cbxmarksize)** |
|  | ***For Radio Buttons:*** | **[RbtImage](https://manual.pvxplus.com/mnemonics/option#rbtimage)** and **[RbtMarkSize](https://manual.pvxplus.com/mnemonics/option#rbtmarksize)** |

*(New options for customizing Radio Buttons and Check Boxes were added in PxPlus 2017.)*

The '*xxx***Image**' setting for each of these defines an image file (BMP, JPG or PNG) that contains various images to be displayed to represent the control status.

For ***Check Boxes***, the image file must contain 9 sections (3 rows of three). For ***Radio Buttons***, the image file must contain 6 sections (2 rows of three).

Refer to the sample illustrations below.

|  |  |
| --- | --- |
| **Check Box (3x3)**<br>![Three-by-three check box image strip showing Normal, Mouse Over and Disabled states.](https://manual.pvxplus.com/migration-assets/a5f5e62eaf10da64870892a210720f9a8043bb67e4bf527760c3d254835bfa63.jpg) | **Radio Button (2x3)**<br>![Two-by-three radio button image strip showing Normal, Mouse Over and Disabled states.](https://manual.pvxplus.com/migration-assets/35f51d0ecd5672c8f712bca77b20273398d5979ecc1789a12bad93034bc722d5.jpg) |
| **Sample Image Files**  <br>*(The patterned background indicates that Transparency is turned On.)* |  |

Each row within the image file contains the image you want to display based on the ***state*** of the control: *Normal*, *Mouse Over* and *Disabled*.

The ***first*** row of images is used for the ***Off*** state of the control.

The ***second*** row of images is used for the ***On*** state of the control.

The ***third*** row of images *(for Check Boxes only)* is used for the optional ***third state*** for Tristate_Box controls.

The images contained within each section will be scaled and centered to fit in front of the text for their respective controls. To improve the quality of the output, it is strongly suggested that you use PNG images with alpha blending.

The '*xxx***MarkSize**' settings control the width of the space in front of the text that will be reserved for the images.

Note:  
The images will always be scaled to fit within the space allotted for the control. This means that if the image section is perfectly square and 'xxxMarkSize' is set to 30 pixels but the height of the control is only 20 pixels, the image will be scaled down to 20x20.
