Class ButtonGroup

Summary


  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)

Package:
(main)
File:
buttongroup.icn
Methods:
add

Fields:
buttons

Source code.

Details
Constructor

ButtonGroup(argv)

Methods:

add(c)

#
  Add the given {Button} to the {ButtonGroup}.
  @param c   The {Button} to add


Fields:
buttons


This page produced by UniDoc on 2021/04/15 @ 23:59:53.