taoujouti / macwidgets

Automatically exported from code.google.com/p/macwidgets
0 stars 0 forks source link

ToggleButton support in SourceListControlBar #136

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
It would be great if there were a "toggle" type button that could maintain a 
selected state in the 
SourceListControlBar. Several iApps and 3rd party apps have something like 
this, most notably Mail, 
and Coda.

In Mail, the "Mail Activity" pane is revealed/hidden based on the state of one 
of these buttons. 
Similarly, in Coda (and other Panic apps), the "Code Navigator" and "Shared 
Documents" panes are 
revealed/hidden based on these states.

As it is, it's difficult to add my own instance of ToggleButtonModel to the 
EButton created in 
MacBUttonFactory.createGradientButton(). Actually, it's difficult to access the 
button reference at all, 
given that createAndAddButton doesn't return it. Perhaps that could be done?

Thanks so much for an outstanding framework!

Original issue reported on code.google.com by dave.whi...@gmail.com on 10 Nov 2009 at 2:12

GoogleCodeExporter commented 9 years ago

Original comment by kenneth....@gmail.com on 16 Nov 2009 at 7:06