Frame being painted several times during resize [message #467202] |
Thu, 26 January 2006 11:02 |
Eclipse User |
|
|
|
Originally posted by: mail.bt.gmail.com
if i put an awt.frame in a shell, the frame will be painted several times during a resize event. This does not occur if I dont put the frame into the shell, i.e. just showing the frame alone.
code:
Display display=new Display();
Shell shell=new Shell(display, SWT.EMBEDDED | SWT.RESIZE);
Frame frame=SWT_AWT.new_Frame(shell);
frame.add(something);
shell.open();
the object which i add to the frame will be painted several times during the resize process. This is causing efficiency problems for my application. Is there anyway to restrict the paint events to a single one? I just need the last paint event, when the user releases the mouse button.
I tried capturing mouseup and mousedown events, but it doesnt work for the borders (which I need to click on to activate resize).
Thanks,
BT
|
|
|
Powered by
FUDForum. Page generated in 0.01813 seconds