question about events and GUI
Posted: Mon Jun 18, 2007 10:55 am
Hi
i would like to know how the events work with the built in GUI, as each iguielement has a method onEvent.... => are all events re-sent to the whole GUI "tree" ? or are the GUI events the only one who are re-sent ?? (ie, if there is a keyboard event, i hope it isn't sent everywhere in the GUI unless it was made on a GUI element)
I need to know this to decide whether i use this onEvent method in each GUI element to define their behavior, or if i should better concentrate them all in one big method (which might be better for performances, but if the events go down the GUI elements tree anyway there isn't much point anymore )
thanks
i would like to know how the events work with the built in GUI, as each iguielement has a method onEvent.... => are all events re-sent to the whole GUI "tree" ? or are the GUI events the only one who are re-sent ?? (ie, if there is a keyboard event, i hope it isn't sent everywhere in the GUI unless it was made on a GUI element)
I need to know this to decide whether i use this onEvent method in each GUI element to define their behavior, or if i should better concentrate them all in one big method (which might be better for performances, but if the events go down the GUI elements tree anyway there isn't much point anymore )
thanks