Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » Tree with Columns
Tree with Columns [message #461387] Wed, 21 September 2005 17:50 Go to next message
Eclipse UserFriend
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 Go to previous message
Eclipse UserFriend
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
Previous Topic:How to add Dynamic GUI components
Next Topic:ScrolledComposite problem.
Goto Forum:
  


Current Time: Sat Oct 19 17:55:02 GMT 2019

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

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

Back to the top