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:

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:

Why not just add a selection handler and listen for which item was selected.

Rich Kulp
Previous Topic:How to add Dynamic GUI components
Next Topic:ScrolledComposite problem.
Goto Forum:

Current Time: Sun Nov 17 06:02:08 GMT 2019

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

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

Back to the top