Re: [Pgui-devel] pgserver behaviour

2003-02-20 Thread Tom?? Stan?k
> > pgEventLoop() blocks your program and processes all events until pgExitEventLoop() >is called. pgEventPoll() processes any available events and returns as soon as >possible. You shouldn't use "while (1) pgEventPoll()" since that will make your >program use 100% of the CPU checking for new ev

Re: [Pgui-devel] pgserver behaviour

2003-02-20 Thread Tom?? Stan?k
On Thu, Feb 20, 2003 at 09:04:38AM -0700, Micah Dowty wrote: > On Tue, Feb 18, 2003 at 12:00:50AM +0100, Tomas wrote: > > hi > > > > what is the difference between > > pgEventLoop() > > and > > while (1) pgEventPoll() > > ? > > pgEventLoop() blocks your program and processes all events until pg

Re: [Pgui-devel] pgserver behaviour

2003-02-20 Thread Micah Dowty
On Tue, Feb 18, 2003 at 12:00:50AM +0100, Tomas wrote: > hi > > what is the difference between > pgEventLoop() > and > while (1) pgEventPoll() > ? pgEventLoop() blocks your program and processes all events until pgExitEventLoop() is called. pgEventPoll() processes any available events and retu

[Pgui-devel] pgserver behaviour

2003-02-17 Thread Tomas
hi what is the difference between pgEventLoop() and while (1) pgEventPoll() ? on the first case, when i add some widgets, widgets are shown one by one (i don't call pgUpdate) and other widgets are resized on the second case, widgets are not shown until i click any button (even, if that button