toggle buttons

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

toggle buttons

Gary Overgard
Is there a simple way to have a push button that acts as a toggle (has a
persistent down state)?

--Thanks in advance
  Gary


Reply | Threaded
Open this post in threaded view
|

Re: toggle buttons

Ian Bartholomew-6
Gary,

> Is there a simple way to have a push button that acts as a toggle (has a
> persistent down state)?

The resource "BooleanPresenter.Push to toggle" looks like a PushButton but
behaves as a BooleanPresenter with a visual "down" and "up" state.  You have
to register for it's #valueChanged event and interface to it with
#value/value:, rather than giving it a #command attribute like a PushButton,
but it is quite usable.

Regards
    Ian