[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.platform.swt] Re: tooltips

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.snippets/src/org/eclipse/swt/snippets/Snippet3.java?rev=HEAD&content-type=text/vnd.viewcvs-markup http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet110.java?rev=HEAD&content-type=text/vnd.viewcvs-markup

--
Lukasz