how to get fewer handles [message #454171] |
Mon, 18 April 2005 14:26  |
Eclipse User |
|
|
|
Originally posted by: groovynfunky.gmx.net
Hi!
I have a standalone SWT app, which creates a huge number of Controls in
certain scenarios. Since they are mostly Labels or tiny Canvas this even
makes sense for the user. Unfortunately I run out of handles on my Windows
machine.
Is there some way to minimize the number of handles used? Some sort of
SWT.VIRTUAL maybe? Most of the Controls are not on screen, so they don't
need a handle at that time.
Thank you, bye,
Michael
|
|
|
|
|
|
Re: how to get fewer handles [message #454291 is a reply to message #454227] |
Tue, 19 April 2005 14:32   |
Eclipse User |
|
|
|
Originally posted by: groovynfunky.gmx.net
Well, actually it's some sort of a Table. Only nicer, with mostly Labels,
generated graphics, ColumnLayout and stuff.
You are completely right about the user not seeing them at a time. It's a
big scrollable window. My question was about how to create the Controls on
demand, i.e. when they are scrolled into view. Or any other solution of
course :)
I also tried the while thing with a native Table, using TableEditors for
the graphics. This made it fairly ugly and hard to code, but it seemed
that I run into the same problem, only later: Each TableEditor needs a
handle. I guess I failed to correctly set up the SWT.VIRTUAL mode for that
Table.
So back to the problem. Can you give me a hint about how to create my
Controls "onScroll"?
Thank you, bye,
Michael
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.06271 seconds