[prev in list] [next in list] [prev in thread] [next in thread] 

List:       gambas-devel
Subject:    Re: [Gambas-devel] A question about events
From:       Benoit Minisini <gambas () users ! sourceforge ! net>
Date:       2004-05-09 21:38:58
Message-ID: 200405092338.58706.gambas () users ! sourceforge ! net
[Download RAW message or body]

On Thursday 06 May 2004 13:50, danielcampos@netcourrier.com wrote:
> Hello Benoit:
>
>  Imagine that I would like to write a GTK component. What are exactly
> the events that I should not process when I'm in the WAIT hook? It seems to
> be all events sent by the user, but I really don't know what are they...

QT has a fonction that just process pending events except the interactive one.

>
>  Another question : at gambas component documentation, you say that 'WAIT'
> hook must call the event loop... what do you really mean with this?

It means that the wait hook must process event, or wait until a given duration 
elapses.

> Actually, if I were working on GTK component I'd call to the gtk
> _main_iteration() to process events, and then sleep the 'long duration'
> time, but gambas would call my wait hook lots of times, as If I were not
> sleeping the 'duration' time...

Look in gbx_subr_misc.c at line 71: the wait hook is called repeatedly until 
duration really elapses. Maybe, liek the QT function, the GTK function exists 
immediately if it processes at least one event.

>
> Regards,
>
> Daniel Campos
>

Regards,

-- 
Benoit Minisini
mailto:gambas@users.sourceforge.net


-------------------------------------------------------
This SF.Net email is sponsored by Sleepycat Software
Learn developer strategies Cisco, Motorola, Ericsson & Lucent use to deliver
higher performing products faster, at low TCO.
http://www.sleepycat.com/telcomwpreg.php?From=osdnemail3
_______________________________________________
Gambas-devel mailing list
Gambas-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-devel
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic