| Tooltip on Text [message #754238] |
Tue, 01 November 2011 11:14  |
Missing name Mising name Messages: 7 Registered: September 2011 |
Junior Member |
|
|
Hello Team,
I have a question on tooltip. I have a Text Widget. I am trying to set a tooltip text on the Text. But it's not showing up on my final UI.
the code is as follows:
final Text colorDisplayText = new Text( colorOptionsGrp, SWT.NONE );
colorDisplayText.setToolTipText( "swtColor" );
I appreciate it if anyone could throw some light on me!
Thanks a lot!
Suresh
[Updated on: Tue, 01 November 2011 11:14] Report message to a moderator
|
|
|
| Re: Tooltip on Text [message #754245 is a reply to message #754238] |
Tue, 01 November 2011 11:49  |
Missing name Mising name Messages: 7 Registered: September 2011 |
Junior Member |
|
|
Ok, I got the answer. you have to enable text to see the tooltip. You should not do colorDisplayText.setEnabled(false);
Well if you do that, you will see the cursor when hovered over the textbox, changed to that of a text-entry type which is awful!
So Text is not at all useful if you want a tooltip.
Use 'Label' instead it works fine!
|
|
|
Powered by
FUDForum. Page generated in 0.01869 seconds