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

Class summary
Methods inherited from lang::Object
clone(seen) equals(other, seen) get_class() get_class_name() get_id() hash_code(depth, seen) is_instance(name) to_string(depth, seen)
Methods defined in this class
add(c) initially()
Variables defined in this class
buttons

Method detail

add(c)

Add the given Button to the ButtonGroup.
Parameters :
c - The Button to add
Source

initially()


Variable detail

buttons