Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » Frame being painted several times during resize
Frame being painted several times during resize [message #467202] Thu, 26 January 2006 11:02
Eclipse UserFriend
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
Previous Topic:SWT+Swing hang application
Next Topic:Table : image not refresh
Goto Forum:
  


Current Time: Fri Nov 24 11:25:38 GMT 2017

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

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