Form API: disabled Text widgets display w/o border [message #436345] |
Tue, 06 September 2005 16:25 |
Eclipse User |
|
|
|
Originally posted by: subcriber.pikesoft.com
I'm having a problem because text widgets created via FormToolkit.createText
render as if they were labels when you setEnable(false). In other words,
instead of just being "grayed out," they display without a border and with a
background identical to the parent background. It essentially becomes a
label. This seems like very non-standard rendering for a disabled text
field--even a flat-look one--and it is confusing to our users, who need a
standard visual cue that a disabled text field is potentially something that
can be enabled: slightly grayed background and gray text with a grayed
border, for example.
I'm attempting to override this behavior by subclassing FormToolkit with a
CustomFormToolkit that generates a CustomText widget when its createText()
factory method is called. The problem here is that I quickly find that
FormToolkit makes use of parts of the org.eclipse.ui.forms library_3.1.0.jar
that are inaccessible from code outside that library (such as FormUtils).
I'm looking into whether I can do without these classes somehow, but if it
turns out that I can't I would seem to be at an impasse.
The "label-like" rendering strikes me personally as a bug, but if it's a
feature it ought to be a feature that the developer has some control over.
Barring a new option being baked into the Form API to address this, is there
anything else that can be done to enable developers to render disabled
controls in a more usual way?
David Beers
Pikesoft Mobile Computing
www.pikesoft.com
|
|
|
Powered by
FUDForum. Page generated in 0.02787 seconds