[Gambas-user] Release of gambas 1.0.12
Benoit Minisini
gambas at ...1...
Tue Nov 8 18:00:00 CET 2005
On Tuesday 08 November 2005 10:22, Eilert wrote:
> Hi Benoit,
>
> what do you mean
>
> > QT COMPONENT
> >
> > * WARNING: The DblClick event is now posted, and not raised immediately
> > as before.
>
> "posted"? What does that mean in practice?
>
> Rolf
>
>
When writing a component, there is two possibilities when you want to raise an
event:
1) Raise it immediately, for example in the signal handlers executed by QT.
2) Raise the event in a "posted" routine, i.e. a routine that the interpreter
executes at the next occurence of the event loop (so later).
Why that? Sometimes, it is dangerous to raise an event immediately, because
you are going to execute some Gambas code (i.e. everything can happen) inside
a QT (or GTK+ if you are using gb.gtk) event handler.
By raising the DblClick event later, I prevent many QT controls to be mixed up
by the execution of Gambas Code inside their event handler.
It seems that it is impossible to make a GUI library with events that cannot
crash or behave badly in any way inside its event handlers, as you can
execute any code there.
Regards,
--
Benoit Minisini
More information about the User
mailing list