Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » How to get Y-Location of a TreeItem
How to get Y-Location of a TreeItem [message #444454] Wed, 13 October 2004 09:37 Go to next message
lee is currently offline leeFriend
Messages: 11
Registered: July 2009
Junior Member
Hi all,
I want to get a TreeItem's Y-location relative to the top of the tree when
I select it. How could I get that?

And I want to disable expand/collapse operation and expand all the tree,
Is that possible?

Thanks.

Best regards,
lee
Re: How to get Y-Location of a TreeItem [message #444478 is a reply to message #444454] Wed, 13 October 2004 16:43 Go to previous messageGo to next message
Steve Northover is currently offline Steve NorthoverFriend
Messages: 1636
Registered: July 2009
Senior Member
1) See TreeItem.getBounds().
2) Nope.

"lee" <lin_tower@hotmail.com> wrote in message
news:ckit0h$6ts$1@eclipse.org...
> Hi all,
> I want to get a TreeItem's Y-location relative to the top of the tree when
> I select it. How could I get that?
>
> And I want to disable expand/collapse operation and expand all the tree,
> Is that possible?
>
> Thanks.
>
> Best regards,
> lee
>
Re: How to get Y-Location of a TreeItem [message #444499 is a reply to message #444478] Thu, 14 October 2004 06:42 Go to previous message
lee is currently offline leeFriend
Messages: 11
Registered: July 2009
Junior Member
It's done!
Thank you very much.

Regard,
lee

Steve Northover wrote:

> 1) See TreeItem.getBounds().
> 2) Nope.

> "lee" <lin_tower@hotmail.com> wrote in message
> news:ckit0h$6ts$1@eclipse.org...
> > Hi all,
> > I want to get a TreeItem's Y-location relative to the top of the tree when
> > I select it. How could I get that?
> >
> > And I want to disable expand/collapse operation and expand all the tree,
> > Is that possible?
> >
> > Thanks.
> >
> > Best regards,
> > lee
> >
Previous Topic:Watermark effect
Next Topic:swt-win32-3062.dll not found
Goto Forum:
  


Current Time: Tue Apr 23 14:25:31 GMT 2024

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

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

Back to the top