# Control Object Properties

> Source: https://manual.pvxplus.com/control-object-properties

Various properties of graphical control objects in PxPlus (i.e. Button, Drop Box, Scrollbar, etc.) can be referenced and modified ***dynamically*** using a control's assigned CTL value (*ctl_id*) followed by the apostrophe operator and one of the associated ***property names***.

For each graphical control object, a list of properties and their descriptions is included with the Help for the associated control directive. For example, a list of *Button Properties* is available by expanding the Help node for the **BUTTON** directive. For a list of *Chart Properties*, expand the Help node for the **CHART** directive, and so on. See **[Graphical Control Objects](https://manual.pvxplus.com/control-object-properties/graphical-control-objects)**.

For quick access to the properties for a ***specific*** control type, use the links below:

|  |  |  |  |  |
| --- | --- | --- | --- | --- |
|  | [Button](https://manual.pvxplus.com/control-object-properties/button-properties) | [Grid](https://manual.pvxplus.com/control-object-properties/grid-properties) | [Radio_Button](https://manual.pvxplus.com/control-object-properties/radiobutton-properties) | [Tree_View](https://manual.pvxplus.com/control-object-properties/treeview-properties) |
|  | [Chart](https://manual.pvxplus.com/control-object-properties/chart-properties) | [List_Box](https://manual.pvxplus.com/control-object-properties/listbox-properties) | **[Report_View](https://manual.pvxplus.com/control-object-properties/reportview-properties)** | [Tristate_Box](https://manual.pvxplus.com/control-object-properties/tristate-box-properties) |
|  | [Check_Box](https://manual.pvxplus.com/control-object-properties/checkbox-properties) | [List_View](https://manual.pvxplus.com/control-object-properties/listview-properties) | [Scrollbar (Horizontal)](https://manual.pvxplus.com/control-object-properties/hscrollbar-properties) | [Vardrop_Box](https://manual.pvxplus.com/control-object-properties/vardropbox-properties) |
|  | [Drop_Box](https://manual.pvxplus.com/control-object-properties/dropbox-properties) | [Multi_Line](https://manual.pvxplus.com/control-object-properties/multiline-properties) | [Scrollbar (Vertical)](https://manual.pvxplus.com/control-object-properties/vscrollbar-properties) | [Varlist_Box](https://manual.pvxplus.com/control-object-properties/varlistbox-properties) |

For a list of ***all*** the properties on one page (in alphabetical order), see [Properties List](https://manual.pvxplus.com/control-object-properties/properties-list).

Note:  
Different types of controls can also be created using NOMADS [Panel Designer](https://manual.pvxplus.com/nomads-graphical-application/panel-designer/introduction). For details on how to define a specific control type, see [Creating Panel Controls](https://manual.pvxplus.com/nomads-graphical-application/creating-panel-controls/introduction).

## See Also

**[Compound Properties](https://manual.pvxplus.com/control-object-properties/compound-properties)**  
**[Color Properties](https://manual.pvxplus.com/control-object-properties/colour-properties)**

## Using Property Names

Access to control object properties is provided via the [Apostrophe Operator](https://manual.pvxplus.com/appendix/apostrophe-operator). An apostrophe operator *(tick)* allows ***dynamic*** access to the properties and methods available for a given COM, OOP or graphical object. Some properties are denoted with dollar signs to indicate that they represent string values; e.g. 'Msg$ or 'Tip$.

***Example:***

A button's location, size, text and color would be represented by properties named **[Height](https://manual.pvxplus.com/properties/height)**, **[Font$](https://manual.pvxplus.com/properties/font)**, **[Text$](https://manual.pvxplus.com/properties/text)**, **[TextColor$](https://manual.pvxplus.com/properties/textcolor)**, etc. If the variable *MyButton* contained the CTL value associated with a button, you could change its text as follows:

```
MyButton'Text$="Hit me now"
```

Other common properties include:

|  |  |
| --- | --- |
| **Property** | **Description** |
| **['Col](https://manual.pvxplus.com/properties/col)** | Column |
| **['Line](https://manual.pvxplus.com/properties/line)** | Line |
| **['Cols](https://manual.pvxplus.com/properties/cols)** | Width of the control |
| **['Lines](https://manual.pvxplus.com/properties/lines)** | Height of the control |
| **['Tip$](https://manual.pvxplus.com/properties/tip)** | Tip for the control |
| **['Msg$](https://manual.pvxplus.com/properties/msg)** | Message line for the control |
| **['Fmt$](https://manual.pvxplus.com/properties/fmt)** | Format mask for the control |
| **['TextColor$](https://manual.pvxplus.com/properties/textcolor)** | Text Color |
| **['Value$](https://manual.pvxplus.com/properties/value)** | Current value/state of the control |

Note:  
While programs can access or update property values, properties cannot be specified as the target for any file I/O or CALL parameter lists.

Generally, numeric properties are type insensitive; i.e. a property such as **['Line](https://manual.pvxplus.com/properties/line)** returns (or receives) a number. If desired, you can access the same value using the property **'Line$**. This is also true for string properties, assuming that they only return numeric values.

Some properties return different values based on the type of reference you make. For example, most color properties return a text description of the RGB color when accessed as a string or a 24-bit color number when accessed as a numeric.

PxPlus also supports objects that are external to PxPlus (this section does not deal with the properties (and methods) that apply to them). See [Apostrophe Operator](https://manual.pvxplus.com/appendix/apostrophe-operator).
