|Frame being painted several times during resize [message #467202]
||Thu, 26 January 2006 11:02
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.
Display display=new Display();
Shell shell=new Shell(display, SWT.EMBEDDED | SWT.RESIZE);
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).
Powered by FUDForum
. Page generated in 0.01452 seconds