Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » Tooltip on Text
Tooltip on Text [message #754238] Tue, 01 November 2011 15:14 Go to next message
Sunny          is currently offline Sunny
Messages: 31
Registered: September 2011
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 15:14]

Report message to a moderator

Re: Tooltip on Text [message #754245 is a reply to message #754238] Tue, 01 November 2011 15:49 Go to previous message
Sunny          is currently offline Sunny
Messages: 31
Registered: September 2011
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!
Previous Topic:Accessing Properties of Custom Dialog
Next Topic:Make widget transient for tooltip mouseover
Goto Forum:
  


Current Time: Wed Oct 22 23:16:07 GMT 2014

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

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