* Hooks up the button to work as part of an existing combobox, * toggling its state when it's pressed. * @param comboBox Pointer to ComboBox. */
| 316 | * @param comboBox Pointer to ComboBox. |
| 317 | */ |
| 318 | void TextButton::setComboBox(ComboBox *comboBox) |
| 319 | { |
| 320 | _comboBox = comboBox; |
| 321 | if (_comboBox) |
| 322 | { |
| 323 | _text->setX(-6); |
| 324 | } |
| 325 | else |
| 326 | { |
| 327 | _text->setX(0); |
| 328 | } |
| 329 | } |
| 330 | |
| 331 | } |