PDA

View Full Version : Having a lot of child widgets, what can be best, filterevent or place 'detectors'



tonnot
5th August 2011, 12:32
I have a container widget where I place some children w.. My container has not empty borders (the children w. are placed from 0,0 to width, height, that is to say, can occupy the whole parent space).
I'like to control when the mouse is on the 4 borders of the parent widget.
What can be best, place 4 transparent frames or install a filter event for all the child widgets ?
Thanks

wysota
5th August 2011, 16:20
Just write appropriate event handlers. If that's not enough then install event filters.

tonnot
5th August 2011, 18:21
A last question, Is not possible to send mouse events automatically to the widgets placed behind the front widget ?
Something to 'sendtoback' or 'send to children of'. ?
Thanks.

wysota
5th August 2011, 21:14
Something to 'sendtoback' or 'send to children of'. ?
I think you should reconsider what is a child of what.