Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » tooltips
tooltips [message #465171] Wed, 07 December 2005 16:14 Go to next message
steve lane is currently offline steve laneFriend
Messages: 24
Registered: July 2009
Junior Member
Ive seen a few examples of creating fake tooltips for a table on a cell by
cell basis. In the SWT.MouseHover event, there is code like this:


TableItem item = table.getItem(new Point(event.x, event.y));

My tooltip however will need to be different depending on which column the
selected cell belongs to. Is there anyway i can find out which column
number a tableItem belongs to ?

thanks,

steve.
Re: tooltips [message #465173 is a reply to message #465171] Wed, 07 December 2005 19:10 Go to previous message
Eclipse UserFriend
Originally posted by: l.stelmach.pwpw.pl

steve lane napisał(a):
>
> Ive seen a few examples of creating fake tooltips for a table on a cell
> by cell basis. In the SWT.MouseHover event, there is code like this:
>
>
> TableItem item = table.getItem(new Point(event.x, event.y));
>
> My tooltip however will need to be different depending on which column
> the selected cell belongs to. Is there anyway i can find out which
> column number a tableItem belongs to ?
>

Maybe one of this can help you:


http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.swt.sni ppets/src/org/eclipse/swt/snippets/Snippet3.java?rev=HEAD&am p;content-type=text/vnd.viewcvs-markup
http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.swt.sni ppets/src/org/eclipse/swt/snippets/Snippet110.java?rev=HEAD& amp;content-type=text/vnd.viewcvs-markup

--
Lukasz
Previous Topic:Table Cell Editor Frustration !!
Next Topic:Problem with plugin swt opengl 3.1 on linux
Goto Forum:
  


Current Time: Sun Dec 08 16:58:42 GMT 2024

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

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

Back to the top