Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » Can't expand tree item by using right arrow key on Linux. Working as expected?
Can't expand tree item by using right arrow key on Linux. Working as expected? [message #443039] Thu, 16 September 2004 23:00 Go to next message
Eclipse User is currently offline Eclipse UserFriend
Messages: 25
Registered: July 2009
Junior Member
Hello,

We have a TreeViewer with a tree in it. On Windows XP operation system,
using right arrow key can expand the tree item if it has children, and
left arrow key can collapse it. But on Linux OS, it doesn't work. Is this
working as expected, or it is a defect?

Thanks,

J.L
Re: Can't expand tree item by using right arrow key on Linux. Working as expected? [message #443044 is a reply to message #443039] Fri, 17 September 2004 11:50 Go to previous messageGo to next message
Grant Gayed is currently offline Grant GayedFriend
Messages: 2150
Registered: July 2009
Senior Member
In gtk trees you use + and - to expand and collapse tree nodes with
children.

Grant

"J.L" <jli1@us.ibm.com> wrote in message news:cid5th$tpt$1@eclipse.org...
> Hello,
>
> We have a TreeViewer with a tree in it. On Windows XP operation system,
> using right arrow key can expand the tree item if it has children, and
> left arrow key can collapse it. But on Linux OS, it doesn't work. Is this
> working as expected, or it is a defect?
>
> Thanks,
>
> J.L
>
Re: Can't expand tree item by using right arrow key on Linux. Working as expected? [message #443049 is a reply to message #443044] Fri, 17 September 2004 17:11 Go to previous messageGo to next message
Eclipse User is currently offline Eclipse UserFriend
Messages: 25
Registered: July 2009
Junior Member
Grant,

Thanks for your reply! But I found that on Windows, both '+' and right
arrow key can expand tree node. So you mean on Linux, it was limited to
'+' only?

Thanks again!


Grant Gayed wrote:

> In gtk trees you use + and - to expand and collapse tree nodes with
> children.

> Grant

> "J.L" <jli1@us.ibm.com> wrote in message news:cid5th$tpt$1@eclipse.org...
> > Hello,
> >
> > We have a TreeViewer with a tree in it. On Windows XP operation system,
> > using right arrow key can expand the tree item if it has children, and
> > left arrow key can collapse it. But on Linux OS, it doesn't work. Is this
> > working as expected, or it is a defect?
> >
> > Thanks,
> >
> > J.L
> >
Re: Can't expand tree item by using right arrow key on Linux. Working as expected? [message #443050 is a reply to message #443049] Fri, 17 September 2004 17:19 Go to previous message
Grant Gayed is currently offline Grant GayedFriend
Messages: 2150
Registered: July 2009
Senior Member
Yes. We just wrap the native widgets, so if the native win32 tree has
multiple expand/collapse keys, then this will be reflected in the swt tree
on win32 for free. Similarly, if you run gtk-demo on linux you'll see that
only +/- are used for expanding/collapsing items in native gtk trees, so the
swt tree on gtk has (by inheritance) this same behaviour.

Grant

"J.L" <jli1@us.ibm.com> wrote in message news:cif5rd$t71$1@eclipse.org...
> Grant,
>
> Thanks for your reply! But I found that on Windows, both '+' and right
> arrow key can expand tree node. So you mean on Linux, it was limited to
> '+' only?
>
> Thanks again!
>
>
> Grant Gayed wrote:
>
> > In gtk trees you use + and - to expand and collapse tree nodes with
> > children.
>
> > Grant
>
> > "J.L" <jli1@us.ibm.com> wrote in message
news:cid5th$tpt$1@eclipse.org...
> > > Hello,
> > >
> > > We have a TreeViewer with a tree in it. On Windows XP operation
system,
> > > using right arrow key can expand the tree item if it has children, and
> > > left arrow key can collapse it. But on Linux OS, it doesn't work. Is
this
> > > working as expected, or it is a defect?
> > >
> > > Thanks,
> > >
> > > J.L
> > >
>
>
Previous Topic:where is Document class?
Next Topic:jxelink for PocketPC
Goto Forum:
  


Current Time: Thu Apr 25 06:03:51 GMT 2024

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

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

Back to the top