Table 32-9. Listbox attribute resource names.
| background | Background color (also bg). |
| borderWidth | Extra space around the edge of the text. |
| cursor | Cursor to display when mouse is over the widget. |
| exportSelection | If true, then the selected text is exported via the X selection mechanism. |
| font | Font for the text. |
| foreground | Foreground color (also fg). |
| height | Number of lines in the listbox. |
| highlightBackground | Focus highlight color when widget does not have focus. |
| highlightColor | Focus highlight color when widget has focus. |
| highlightThickness | Thickness of focus highlight rectangle. |
| relief | flat, sunken, raised, groove, solid, or ridge. |
| selectBackground | Background color of selection. |
| selectForeground | Foreground color of selection. |
| selectBorderWidth | Width of selection border. Nonzero for 3D effect. |
| selectMode | Mode: browse, single, extended, or multiple. |
| setGrid | Boolean. Set gridding attribute. |
| takeFocus | Controls focus changes from keyboard traversal. |
| width | Width, in average character sizes. |
| xScrollCommand | Connects listbox to a horizontal scrollbar. |
| yScrollCommand | Connects listbox to a vertical scrollbar. |