|Tree with Columns [message #461387]
||Wed, 21 September 2005 17:50
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
Powered by FUDForum
. Page generated in 0.02541 seconds