Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » Flush SWT thread
Flush SWT thread [message #460471] Mon, 29 August 2005 16:16 Go to next message
DC is currently offline DCFriend
Messages: 9
Registered: July 2009
Junior Member
Is there a way that I can clear/flush all the pending events in a SWT
thread ?
Re: Flush SWT thread [message #460510 is a reply to message #460471] Tue, 30 August 2005 13:45 Go to previous messageGo to next message
Yves Harms is currently offline Yves HarmsFriend
Messages: 80
Registered: July 2009
Member
Display.getCurrent().update();
If you only need to flush paint requests for a certain widget (e.g. a
composite) use the update method of the widget.


> Is there a way that I can clear/flush all the pending events in a SWT
> thread ?
>
Re: Flush SWT thread [message #460710 is a reply to message #460510] Mon, 05 September 2005 02:45 Go to previous message
Jack Unrue is currently offline Jack UnrueFriend
Messages: 1
Registered: July 2009
Junior Member
On Tue, 30 Aug 2005 15:45:03 +0200, Yves Harms <user@domain.invalid> wrote:

>Display.getCurrent().update();
>If you only need to flush paint requests for a certain widget (e.g. a
>composite) use the update method of the widget.
>
>
>> Is there a way that I can clear/flush all the pending events in a SWT
>> thread ?
>>

I think that a more complete solution is to have a loop
repeatedly calling readAndDispatch() until it returns
false.

--
Jack
Previous Topic:SWT Design Patterns available in open source.
Next Topic:TableViewer
Goto Forum:
  


Current Time: Sun Sep 15 18:04:07 GMT 2019

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

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

Back to the top