Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » How to disable text in a multi-line text box(Using SWT.MULTI and setEnabled(false) still shows "black" text)
How to disable text in a multi-line text box [message #966140] Wed, 31 October 2012 19:52
Herb Miller is currently offline Herb MillerFriend
Messages: 22
Registered: September 2011
Junior Member
I am using the FormToolKit. I have a Text box created with the tool kit's createText method and the style is set to SWT.MULTI | SWT.WRAP.

When I display data in the Text field after setEnabled(false) has been called, the displayed text is very black - it is not grayed out like other Text fields that are not SWT.MULTI.

The multi-lined text box is certainly disabled. I cannot enter text into it.

But, why is the text still black instead of grayed out?

Also, I am running with Helios and SUSE Linux Version 10 patch level 1 (x86_64).

Herb Miller

Previous Topic:SWT GC Bug
Next Topic:Embedding SWT Browser in Equinox launched Swing App on MacOS
Goto Forum:

Current Time: Thu Apr 19 12:16:06 GMT 2018

Powered by FUDForum. Page generated in 0.01896 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software