Tree with Columns [message #461387] |
Wed, 21 September 2005 17:50 |
Eclipse User |
|
|
|
Originally posted by: cajmilfo.martinus.sk
Hello, i'm a newbie to SWT so my question might be easy...
have a Tree with columns, the problem is, when i'm fetching mouseDown event
on it, i cannot get the item i'm clicking on ;
Rectangle clientArea = t.getClientArea ();
Point pt = new Point (event.x, event.y);
TreeItem item = t.getItem (pt);
always returns null even that i'm clicking on a row (i need to know which
column in the row was the button pressed on)
unless i switch on a style SWT.FULL_SELECTION (then everything works normal)
which then removes the nice tree graphics which i need...
Thanks for any help
PS: if there are any examples of how to make editable the cell in the row of
the Tree with multiple columns, plz let me know...
Jan Palencar aka cajmilfo
|
|
|
Re: Tree with Columns [message #461391 is a reply to message #461387] |
Wed, 21 September 2005 17:54 |
Eclipse User |
|
|
|
Originally posted by: richkulp.us.NO_SPAM.ibm.com
Why not just add a selection handler and listen for which item was selected.
--
Thanks,
Rich Kulp
|
|
|
Powered by
FUDForum. Page generated in 0.03504 seconds