Disable AND Grey out an eclipse widget
Posted
by Fredrik
on Stack Overflow
See other posts from Stack Overflow
or by Fredrik
Published on 2010-06-02T12:31:27Z
Indexed on
2010/06/02
12:33 UTC
Read the original article
Hit count: 242
I have a org.eclipse.swt.widgets.Composite that I want to be able to enable/disable programatically. The org.eclipse.swt.widgets.Control.setEnabled(boolean enabled)
method works fine, but it does not give any visual information that the widget(s) are disabled.
What I would like to do is to have the disabled state mean the widgets are greyed out. Right now they just enter a weird state where the user is unable to click or perform any action on them.
© Stack Overflow or respective owner