shell visible event [message #465674] |
Sun, 18 December 2005 14:46 |
Eclipse User |
|
|
|
Originally posted by: swtMan.trash-mail.de
hello,
I have a problem to make a screenshot, who my shell isn't visible.
This screenshot I can only make with a sleep statemant. But this isn't a
good solution. Doesn't give a better solution? I search for a ShellEvent
who signalized that the shell is really visible. SWT.Hide doesn't do this.
I hope you understand me, because I'm german and my english isn't very
well.
Here my code:
shell.setVisible(false); // This shell doesnt show in screenshot
Image buffer = new Image();
try {
Thread.sleep(50);
} catch (InterruptedException e1) {
}
gc.copyArea (buffer,0,0); // makes screenshot
shell.setVisible(true);
Thanks
Peter
|
|
|
|
Powered by
FUDForum. Page generated in 0.03494 seconds