# TXButtonBar Control

> Button bar control for a TX Text Control ActiveX editor with combo boxes and buttons: Appearance, DisplayColor, the Posxxx button positions and mouse events.

- **Product:** TX Text Control ActiveX
- **Section:** Documentation
- **Kind:** Class
- **Path:** TX Text Control ActiveX > API Reference > TXButtonBar Control
- **1673 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-activex/reference/txbuttonbar/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-activex/reference/txbuttonbar/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-activex/reference/txbuttonbar/llms-full.txt

---

A TXButtonBar control represents a button bar for a Text Control. It offers several combo boxes and buttons and can be designed by the programmer.

### Syntax

```vbscript
TXButtonBar
```

### Members

#### Properties

| Property | Description |
|---|---|
| [Appearance](https://docs.textcontrol.com/tx-text-control-activex/reference/txbuttonbar/appearance-property/llms-full.txt) | Returns or sets the paint style of a button bar. |
| [BorderStyle](https://docs.textcontrol.com/tx-text-control-activex/reference/txbuttonbar/borderstyle-property/llms-full.txt) | Returns or sets the border style for a button bar. |
| [DisplayColor](https://docs.textcontrol.com/tx-text-control-activex/reference/txbuttonbar/displaycolor-property/llms-full.txt) | This property gets or sets the display colors of a button bar. |
| [Enabled](https://docs.textcontrol.com/tx-text-control-activex/reference/txbuttonbar/enabled-property/llms-full.txt) | Returns or sets a value that determines whether a button bar can respond to user-generated events. |
| [hWnd](https://docs.textcontrol.com/tx-text-control-activex/reference/txbuttonbar/hwnd-property/llms-full.txt) | Returns a handle to a button bar. |
| [Language](https://docs.textcontrol.com/tx-text-control-activex/reference/txbuttonbar/language-property/llms-full.txt) | Determines the language in which button bar displays resources. |
| [PosControlChars](https://docs.textcontrol.com/tx-text-control-activex/reference/txbuttonbar/poscontrolchars-property/llms-full.txt) | Returns or sets the position of the control char button. |
| [PosDecreaseIndent](https://docs.textcontrol.com/tx-text-control-activex/reference/txbuttonbar/posdecreaseindent-property/llms-full.txt) | Returns or sets the position of a button which decreases the left indent of all selected paragraphs. |
| [PosFontBold](https://docs.textcontrol.com/tx-text-control-activex/reference/txbuttonbar/posfontbold-property/llms-full.txt) | Returns or sets the position of the bold button. |
| [PosFontItalic](https://docs.textcontrol.com/tx-text-control-activex/reference/txbuttonbar/posfontitalic-property/llms-full.txt) | Returns or sets the position of the italic button. |
| [PosFontName](https://docs.textcontrol.com/tx-text-control-activex/reference/txbuttonbar/posfontname-property/llms-full.txt) | Returns or sets the position of the font name combo-box. |
| [PosFontSize](https://docs.textcontrol.com/tx-text-control-activex/reference/txbuttonbar/posfontsize-property/llms-full.txt) | Returns or sets the position of the font size combo-box. |
| [PosFontUnderline](https://docs.textcontrol.com/tx-text-control-activex/reference/txbuttonbar/posfontunderline-property/llms-full.txt) | Returns or sets the position of the underline button. |
| [PosGrowFont](https://docs.textcontrol.com/tx-text-control-activex/reference/txbuttonbar/posgrowfont-property/llms-full.txt) | Returns or sets the position of a button which grows the font sizes of all selected fonts. |
| [PosIncreaseIndent](https://docs.textcontrol.com/tx-text-control-activex/reference/txbuttonbar/posincreaseindent-property/llms-full.txt) | Returns or sets the position of a button which increases the left indent of all selected paragraphs. |
| [PosLeftToRight](https://docs.textcontrol.com/tx-text-control-activex/reference/txbuttonbar/poslefttoright-property/llms-full.txt) | Returns or sets the position of a button for setting the left to right writing direction. |
| [PosListBulleted](https://docs.textcontrol.com/tx-text-control-activex/reference/txbuttonbar/poslistbulleted-property/llms-full.txt) | Returns or sets the position of the button for bulleted lists. |
| [PosListNumbered](https://docs.textcontrol.com/tx-text-control-activex/reference/txbuttonbar/poslistnumbered-property/llms-full.txt) | Returns or sets the position of the button for numbered lists. |
| [PosListStructured](https://docs.textcontrol.com/tx-text-control-activex/reference/txbuttonbar/posliststructured-property/llms-full.txt) | Returns or sets the position of the button for structured numbered lists. |
| [PosParaCentered](https://docs.textcontrol.com/tx-text-control-activex/reference/txbuttonbar/posparacentered-property/llms-full.txt) | Returns or sets the position of the button for centering paragraphs. |
| [PosParaJustified](https://docs.textcontrol.com/tx-text-control-activex/reference/txbuttonbar/posparajustified-property/llms-full.txt) | Returns or sets the position of the button for justifying paragraphs. |
| [PosParaLeft](https://docs.textcontrol.com/tx-text-control-activex/reference/txbuttonbar/posparaleft-property/llms-full.txt) | Returns or sets the position of the button for left aligning paragraphs. |
| [PosParaRight](https://docs.textcontrol.com/tx-text-control-activex/reference/txbuttonbar/pospararight-property/llms-full.txt) | Returns or sets the position of the button for right aligning paragraphs. |
| [PosRightToLeft](https://docs.textcontrol.com/tx-text-control-activex/reference/txbuttonbar/posrighttoleft-property/llms-full.txt) | Returns or sets the position of a button for setting the right to left writing direction. |
| [PosShrinkFont](https://docs.textcontrol.com/tx-text-control-activex/reference/txbuttonbar/posshrinkfont-property/llms-full.txt) | Returns or sets the position of a button which shrinks the font sizes of all selected fonts. |
| [PosStrikethru](https://docs.textcontrol.com/tx-text-control-activex/reference/txbuttonbar/posstrikethru-property/llms-full.txt) | Returns or sets the position of a button for setting the strike through attribute. |
| [PosStyle](https://docs.textcontrol.com/tx-text-control-activex/reference/txbuttonbar/posstyle-property/llms-full.txt) | Returns or sets the position of the formatting styles combobox. |
| [PosSubscript](https://docs.textcontrol.com/tx-text-control-activex/reference/txbuttonbar/possubscript-property/llms-full.txt) | Returns or sets the position of a button for setting text to subscript. |
| [PosSuperscript](https://docs.textcontrol.com/tx-text-control-activex/reference/txbuttonbar/possuperscript-property/llms-full.txt) | Returns or sets the position of a button for setting text to superscript. |
| [PosTabCentered](https://docs.textcontrol.com/tx-text-control-activex/reference/txbuttonbar/postabcentered-property/llms-full.txt) | Returns or sets the position of the button for setting centered tabs. |
| [PosTabDecimal](https://docs.textcontrol.com/tx-text-control-activex/reference/txbuttonbar/postabdecimal-property/llms-full.txt) | Returns or sets the position of the button for setting decimal tabs. |
| [PosTabLeft](https://docs.textcontrol.com/tx-text-control-activex/reference/txbuttonbar/postableft-property/llms-full.txt) | Returns or sets the position of the button for setting left aligned tabs. |
| [PosTabRight](https://docs.textcontrol.com/tx-text-control-activex/reference/txbuttonbar/postabright-property/llms-full.txt) | Returns or sets the position of the button for setting right aligned tabs. |
| [PosTabSelect](https://docs.textcontrol.com/tx-text-control-activex/reference/txbuttonbar/postabselect-property/llms-full.txt) | Returns or sets the position of the button for selecting the tab type. |
| [PosXMLAdd](https://docs.textcontrol.com/tx-text-control-activex/reference/txbuttonbar/posxmladd-property/llms-full.txt) | Returns or sets the position of a combobox showing all insertable XML elements. |
| [PosXMLRemove](https://docs.textcontrol.com/tx-text-control-activex/reference/txbuttonbar/posxmlremove-property/llms-full.txt) | Returns or sets the position of a combobox showing all removable XML elements. |
| [PosZoom](https://docs.textcontrol.com/tx-text-control-activex/reference/txbuttonbar/poszoom-property/llms-full.txt) | Returns or sets the position of the zoom combobox. |
| [ReadOnly](https://docs.textcontrol.com/tx-text-control-activex/reference/txbuttonbar/readonly-property/llms-full.txt) | Returns or sets a value determining the button bar's read only mode. |
| [ResourceFile](https://docs.textcontrol.com/tx-text-control-activex/reference/txbuttonbar/resourcefile-property/llms-full.txt) | Returns or sets the file name of a resource library which button bar loads to display resources like buttons. |
| [RightToLeft](https://docs.textcontrol.com/tx-text-control-activex/reference/txbuttonbar/righttoleft-property/llms-full.txt) | Returns or sets a value specifying whether the button bar's buttons are shown from right to left or from left to right. |
| [Style](https://docs.textcontrol.com/tx-text-control-activex/reference/txbuttonbar/style-property/llms-full.txt) | Returns or sets the paint style of a button bar's buttons. |

#### Events

| Event | Description |
|---|---|
| [MouseDown](https://docs.textcontrol.com/tx-text-control-activex/reference/txbuttonbar/mousedown-event/llms-full.txt) | Occurs when the user presses a mouse button. |
| [MouseMove](https://docs.textcontrol.com/tx-text-control-activex/reference/txbuttonbar/mousemove-event/llms-full.txt) | Occurs when the user moves the mouse. |
| [MouseUp](https://docs.textcontrol.com/tx-text-control-activex/reference/txbuttonbar/mouseup-event/llms-full.txt) | Occurs when the user releases a mouse button. |

### See Also

- [Programming Category: Tool Bars](https://docs.textcontrol.com/tx-text-control-activex/reference/categories/toolbars/llms-full.txt)

---

## In This Section

- [Appearance Property](https://docs.textcontrol.com/tx-text-control-activex/reference/txbuttonbar/appearance-property/llms-full.txt): Returns or sets the paint style of a TXButtonBar: txFlat, tx3D (default), txXP for the Windows XP look or txColorScheme with a light to dark background.
- [BorderStyle Property](https://docs.textcontrol.com/tx-text-control-activex/reference/txbuttonbar/borderstyle-property/llms-full.txt): Returns or sets the border style of a TXButtonBar as an Integer: 0 for no border or 1 for a fixed single border around the button bar window.
- [DisplayColor Property](https://docs.textcontrol.com/tx-text-control-activex/reference/txbuttonbar/displaycolor-property/llms-full.txt): Gets or sets the display colors of a TXButtonBar by ButtonBarColor index, bbForeColor to bbButtonFrameColor, used when Appearance and Style are txColorScheme.
- [Enabled Property](https://docs.textcontrol.com/tx-text-control-activex/reference/txbuttonbar/enabled-property/llms-full.txt): Returns or sets whether a TXButtonBar responds to user-generated events: True (default) lets the button bar respond, False prevents it from responding.
- [hWnd Property](https://docs.textcontrol.com/tx-text-control-activex/reference/txbuttonbar/hwnd-property/llms-full.txt): Returns the window handle of a TXButtonBar for Windows API calls that expect an hWnd argument; the property is read only and available at run time only.
- [Language Property](https://docs.textcontrol.com/tx-text-control-activex/reference/txbuttonbar/language-property/llms-full.txt): Sets the language of the TXButtonBar resources: 41, 43 and 49 select German variants, other values English; ResourceFile adds further languages.
- [MouseDown Event](https://docs.textcontrol.com/tx-text-control-activex/reference/txbuttonbar/mousedown-event/llms-full.txt): Occurs when the user presses a mouse button over a TXButtonBar, passing the button, the SHIFT, CTRL and ALT state and the X and Y position in the control.
- [MouseMove Event](https://docs.textcontrol.com/tx-text-control-activex/reference/txbuttonbar/mousemove-event/llms-full.txt): Occurs when the user moves the mouse over a TXButtonBar, passing the state of the mouse buttons, the SHIFT, CTRL and ALT keys and the X and Y position.
- [MouseUp Event](https://docs.textcontrol.com/tx-text-control-activex/reference/txbuttonbar/mouseup-event/llms-full.txt): Occurs when the user releases a mouse button over a TXButtonBar, passing the button, the SHIFT, CTRL and ALT state and the X and Y position in the control.
- [PosControlChars Property](https://docs.textcontrol.com/tx-text-control-activex/reference/txbuttonbar/poscontrolchars-property/llms-full.txt): Sets the position of the control char button on a TXButtonBar and explains all Posxxx properties: position numbers, 0 to hide, gaps with 1000 and 2000.
- [PosDecreaseIndent Property](https://docs.textcontrol.com/tx-text-control-activex/reference/txbuttonbar/posdecreaseindent-property/llms-full.txt): Returns or sets the position number of the TXButtonBar button that decreases the left indent of all selected paragraphs, like DecreaseIndent; hidden by default.
- [PosFontBold Property](https://docs.textcontrol.com/tx-text-control-activex/reference/txbuttonbar/posfontbold-property/llms-full.txt): Returns or sets the position number of the bold button on a TXButtonBar, which sets the order of the buttons; a position number of 0 hides the button.
- [PosFontItalic Property](https://docs.textcontrol.com/tx-text-control-activex/reference/txbuttonbar/posfontitalic-property/llms-full.txt): Returns or sets the position number of the italic button on a TXButtonBar, which sets the order of the buttons; a position number of 0 hides the button.
- [PosFontName Property](https://docs.textcontrol.com/tx-text-control-activex/reference/txbuttonbar/posfontname-property/llms-full.txt): Returns or sets the position number of the font name combo box on a TXButtonBar, which sets the order of its elements; a position of 0 hides the box.
- [PosFontSize Property](https://docs.textcontrol.com/tx-text-control-activex/reference/txbuttonbar/posfontsize-property/llms-full.txt): Returns or sets the position number of the font size combo box on a TXButtonBar, which sets the order of its elements; a position of 0 hides the box.
- [PosFontUnderline Property](https://docs.textcontrol.com/tx-text-control-activex/reference/txbuttonbar/posfontunderline-property/llms-full.txt): Returns or sets the position number of the underline button on a TXButtonBar, which sets the order of the buttons; a position number of 0 hides it.
- [PosGrowFont Property](https://docs.textcontrol.com/tx-text-control-activex/reference/txbuttonbar/posgrowfont-property/llms-full.txt): Returns or sets the position number of the TXButtonBar button that grows the font sizes of all selected fonts, like GrowFont; hidden by default.
- [PosIncreaseIndent Property](https://docs.textcontrol.com/tx-text-control-activex/reference/txbuttonbar/posincreaseindent-property/llms-full.txt): Returns or sets the position number of the TXButtonBar button that increases the left indent of all selected paragraphs, like IncreaseIndent; hidden by default.
- [PosLeftToRight Property](https://docs.textcontrol.com/tx-text-control-activex/reference/txbuttonbar/poslefttoright-property/llms-full.txt): Returns or sets the position number of the TXButtonBar button that sets the left to right writing direction (TextDirection); hidden by default with position 0.
- [PosListBulleted Property](https://docs.textcontrol.com/tx-text-control-activex/reference/txbuttonbar/poslistbulleted-property/llms-full.txt): Returns or sets the position number of the bulleted list button on a TXButtonBar, which sets the order of the buttons; a position of 0 hides the button.
- [PosListNumbered Property](https://docs.textcontrol.com/tx-text-control-activex/reference/txbuttonbar/poslistnumbered-property/llms-full.txt): Returns or sets the position number of the numbered list button on a TXButtonBar, which sets the order of the buttons; a position of 0 hides the button.
- [PosListStructured Property](https://docs.textcontrol.com/tx-text-control-activex/reference/txbuttonbar/posliststructured-property/llms-full.txt): Returns or sets the position number of the button for structured numbered lists on a TXButtonBar; position numbers start at 1 and 0 hides the button.
- [PosParaCentered Property](https://docs.textcontrol.com/tx-text-control-activex/reference/txbuttonbar/posparacentered-property/llms-full.txt): Returns or sets the position number of the button for centering paragraphs on a TXButtonBar; position numbers start at 1 and 0 hides the button.
- [PosParaJustified Property](https://docs.textcontrol.com/tx-text-control-activex/reference/txbuttonbar/posparajustified-property/llms-full.txt): Returns or sets the position number of the button for justifying paragraphs on a TXButtonBar; position numbers start at 1 and 0 hides the button.
- [PosParaLeft Property](https://docs.textcontrol.com/tx-text-control-activex/reference/txbuttonbar/posparaleft-property/llms-full.txt): Returns or sets the position number of the button for left aligning paragraphs on a TXButtonBar; position numbers start at 1 and 0 hides the button.
- [PosParaRight Property](https://docs.textcontrol.com/tx-text-control-activex/reference/txbuttonbar/pospararight-property/llms-full.txt): Returns or sets the position number of the button for right aligning paragraphs on a TXButtonBar; position numbers start at 1 and 0 hides the button.
- [PosRightToLeft Property](https://docs.textcontrol.com/tx-text-control-activex/reference/txbuttonbar/posrighttoleft-property/llms-full.txt): Returns or sets the position number of the TXButtonBar button that sets the right to left writing direction (TextDirection); hidden by default with position 0.
- [PosShrinkFont Property](https://docs.textcontrol.com/tx-text-control-activex/reference/txbuttonbar/posshrinkfont-property/llms-full.txt): Returns or sets the position number of the TXButtonBar button that shrinks the font sizes of all selected fonts, like ShrinkFont; hidden by default.
- [PosStrikethru Property](https://docs.textcontrol.com/tx-text-control-activex/reference/txbuttonbar/posstrikethru-property/llms-full.txt): Returns or sets the position number of the TXButtonBar button that sets the strikethrough attribute (FontStrikethru); hidden by default with position number 0.
- [PosStyle Property](https://docs.textcontrol.com/tx-text-control-activex/reference/txbuttonbar/posstyle-property/llms-full.txt): Returns or sets the position number of the formatting styles combo box on a TXButtonBar, the first element by default; a position of 0 hides the box.
- [PosSubscript Property](https://docs.textcontrol.com/tx-text-control-activex/reference/txbuttonbar/possubscript-property/llms-full.txt): Returns or sets the position number of the TXButtonBar button that formats text as subscript; hidden by default with position 0, shown from position 1.
- [PosSuperscript Property](https://docs.textcontrol.com/tx-text-control-activex/reference/txbuttonbar/possuperscript-property/llms-full.txt): Returns or sets the position number of the TXButtonBar button that formats text as superscript; hidden by default with position 0, shown from position 1.
- [PosTabCentered Property](https://docs.textcontrol.com/tx-text-control-activex/reference/txbuttonbar/postabcentered-property/llms-full.txt): Returns or sets the position number of the button for setting centered tabs on a TXButtonBar; hidden by default with position number 0 like other tabs.
- [PosTabDecimal Property](https://docs.textcontrol.com/tx-text-control-activex/reference/txbuttonbar/postabdecimal-property/llms-full.txt): Returns or sets the position number of the button for setting decimal tabs on a TXButtonBar; hidden by default with position number 0 like other tabs.
- [PosTabLeft Property](https://docs.textcontrol.com/tx-text-control-activex/reference/txbuttonbar/postableft-property/llms-full.txt): Returns or sets the position number of the button for setting left aligned tabs on a TXButtonBar; hidden by default with position number 0 like other tabs.
- [PosTabRight Property](https://docs.textcontrol.com/tx-text-control-activex/reference/txbuttonbar/postabright-property/llms-full.txt): Returns or sets the position number of the button for setting right aligned tabs on a TXButtonBar; hidden by default with position number 0 like other tabs.
- [PosTabSelect Property](https://docs.textcontrol.com/tx-text-control-activex/reference/txbuttonbar/postabselect-property/llms-full.txt): Returns or sets the position number of the TXButtonBar button for selecting the tab type, shown by default; position numbers start at 1 and 0 hides the button.
- [PosXMLAdd Property](https://docs.textcontrol.com/tx-text-control-activex/reference/txbuttonbar/posxmladd-property/llms-full.txt): Returns or sets the position number of the TXButtonBar combo box listing all insertable XML elements; it works only with XML documents and is hidden by default.
- [PosXMLRemove Property](https://docs.textcontrol.com/tx-text-control-activex/reference/txbuttonbar/posxmlremove-property/llms-full.txt): Returns or sets the position number of the TXButtonBar combo box listing all removable XML elements; it works only with XML documents and is hidden by default.
- [PosZoom Property](https://docs.textcontrol.com/tx-text-control-activex/reference/txbuttonbar/poszoom-property/llms-full.txt): Returns or sets the position number of the zoom combo box on a TXButtonBar; hidden by default with position number 0, shown with a position of 1 or higher.
- [ReadOnly Property](https://docs.textcontrol.com/tx-text-control-activex/reference/txbuttonbar/readonly-property/llms-full.txt): Returns or sets the read only mode of a TXButtonBar: when True it shows the formatting of the connected TextControl but can't change it; False by default.
- [ResourceFile Property](https://docs.textcontrol.com/tx-text-control-activex/reference/txbuttonbar/resourcefile-property/llms-full.txt): Returns or sets the full path of a resource library the TXButtonBar loads for its buttons and texts; when set, Language is ignored. Run time only.
- [RightToLeft Property](https://docs.textcontrol.com/tx-text-control-activex/reference/txbuttonbar/righttoleft-property/llms-full.txt): Returns or sets whether a TXButtonBar shows its buttons from right to left; set at run time, the window is recreated and must be reassigned to ButtonBarHandle.
- [Style Property](https://docs.textcontrol.com/tx-text-control-activex/reference/txbuttonbar/style-property/llms-full.txt): Returns or sets the paint style of TXButtonBar buttons: txFlat, tx3D (default), txXP for the Windows XP look or txColorScheme with a light to dark background.

---

## Nearby

- **Previous:** [ZoomFactor Property](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/zoomfactor-property/llms-full.txt)
- **Next:** [Appearance Property](https://docs.textcontrol.com/tx-text-control-activex/reference/txbuttonbar/appearance-property/llms-full.txt)
