Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » Disable expand all tree nodes on asterisk (*) in windows
Disable expand all tree nodes on asterisk (*) in windows [message #626133] Wed, 22 September 2010 11:52 Go to next message
Eclipse UserFriend
Originally posted by: swanbrook66.gmail.com

Hi,
I have a Tree in my application which has potentially thousands upon
thousands of node. I have structured in such a way as to limit the
number of objects created depending on which nodes the user expands
which is all fine. The user would have to expand alot of nodes to cause
performance problems.
However, if the user opens the tree and hits the asterisk (*) key in
windows, this automatically expands the whole tree. I want to block this
from happening if possible. Would anyone know of a way of doing it or
if it is possible at all?

Thanks.
Re: Disable expand all tree nodes on asterisk (*) in windows [message #629512 is a reply to message #626133] Tue, 28 September 2010 14:15 Go to previous message
Grant Gayed is currently offline Grant GayedFriend
Messages: 2151
Registered: July 2009
Senior Member
Hi,

There isn't a way to do this. The earliest opportunity an app has to
receive keystroke notifications is with a KeyDown listener, but I've
confirmed on Windows that this comes in after the Tree SetData and/or Expand
events which could have restricted the tree expansion if they knew that '*'
had been pressed. Sorry.

Grant


"Tom Jones" <swanbrook66@gmail.com> wrote in message
news:i7cqh0$jms$1@news.eclipse.org...
> Hi,
> I have a Tree in my application which has potentially thousands upon
> thousands of node. I have structured in such a way as to limit the number
> of objects created depending on which nodes the user expands which is all
> fine. The user would have to expand alot of nodes to cause performance
> problems.
> However, if the user opens the tree and hits the asterisk (*) key in
> windows, this automatically expands the whole tree. I want to block this
> from happening if possible. Would anyone know of a way of doing it or if
> it is possible at all?
>
> Thanks.
Previous Topic:Problems with PrinterData
Next Topic:Wizard page - when to use pack()?
Goto Forum:
  


Current Time: Thu Dec 18 21:17:58 GMT 2014

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

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