Class ButtonGroup
- Superclasses :
-
lang::Object
- Package :
- gui
This class groups several Buttons together. Then, when the
mouse is clicked down on one of the Buttons and then dragged
onto another before being released, the other Button will go
"down". This is the common behaviour for buttons in a bar
along the top of an application.
NB - A Button must be added to the ButtonGroup and the
Dialog too.
- Example :
bg := ButtonGroup()
b := TextButton()
b.set_label("Okay")
self.add(b)
bg.add(b)
- Source
Variables defined in this class |
buttons
|
add(c)
-
Add the given Button to the ButtonGroup.
- Parameters :
- c - The Button to add
- Source
initially()
-
buttons
-