Re: [GEN] event handling

new topic     » topic index » view thread      » older message » newer message

Hello Chris Bensler,

>Hi all,
>
>   I'm currently working on my guiX lib for ExoticaX, and I'm wondering, 
>what's the best way to handle events?
>
>   I do have it working quite well right now, but I can see some future 
>complications with my system. (Not that I don't expect any with such an 
>involving task)

I have your latest ExoticaX lib but I haven't really studied
your GUIX lib yet. However I'm rewriting my LAGUI lib for
ExoticaX. The way I do it is I have a GUIupdate() procedure
that I expect the user to call in a loop if they want gui
interaction. In this procedure I check for events both default
and user-defined. Right now I only have one of each kind.
The draw event is defined as an actual LOOP lib method.
The "onClick" event is just a property named "onClick" whose
value holds a routine_id that the user supplies for each
control. The value of this property is defaulted to -1 and I
check for that before I actually try running the procedure.
This may not be as sofisticated as what you have already, in
fact I am pretty sure it isn't but I hope this helps you some.
If you find a better way, please clue me in.

later,
Lewis Townsend

new topic     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu