• Post Reply Bookmark Topic Watch Topic
  • New Topic

i need a TriStateCheckBox

 
Michael Seele
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi,
somebody knows if exists a class of type CheckBox with three states? in need a TriStateCheckBox!!!
Thanks in advance.
(Search index)
TriStateCheckBox, TriState, Tri-state, CheckBox, TriStateButton, Button
 
Chantal Ackermann
Ranch Hand
Posts: 508
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I haven't stumbled over it yet, but I might face the implementation of such a checkbox, shortly. these are my ideas:
1. implement my own subclass of AbstractButton that uses three instead of two icons to display the state. for example "-", "0", and "+". clicking on the currently displayed icon would rotate to the next icon.
2. another solution, maybe more clear to the user, and certainly easier to implement: use a little combobox. the user can see all possible states and switch directly between them. if you happen to need more states there is no problem in adding more entries to the combo.
I'd recommend solution 2, even if it seems less elegant.
Chantal
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!