Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[platform-swt-dev] Tri-state Checkbox

Hi,

It looks like a checkbox can work in 2 different modes, either toggling between selected and unselected, and toggling between tri-state and unselected. So my understanding it that to set it programmatically to the tri-state mode, I have to invoke

  checkbox.setGrayed(true);
  checkbox.setSelection(true);

How can I make it switch between selected - unselected - tri-state using the mouse? Or should I simulate it myself using mouse-click-listeners?

--
Best regards,
Thomas Singer
=============
syntevo GmbH
http://www.syntevo.com
http://www.syntevo.com/blog


Back to the top