> How can I handle FL_PUSH events when there are several > overlapped widgets? > Do I need to handle the event in the container (e.g. > Fl_Window) and traverse the child list, checking the > coordinates, or there is any better way to do it? > Is there any way to send a widget "background/foreground" so > one of the overlapped widgets can receive the FL_PUSH event?
You'll probably have to give us a clue as to what you are trying to achieve, as there may be other ways to do it. However, overlapping widgets is generally discouraged, and so the behaviour may not be quite what was hoped or expected... It may not even be consistent between platforms, I suspect! What type of widgets are you overlapping? Some cases are easier to handle than others... Generally, whichever widget is on top of the stack ought to get first dibs on the events, and it is possible to alter the widget order. But it is not pretty... And probably "fragile" to maintain. So, anyway, if you can indicate what you are hoping to achieve, maybe someone here will have a neat solution to try. SELEX Sensors and Airborne Systems Limited Registered Office: Sigma House, Christopher Martin Road, Basildon, Essex SS14 3EL A company registered in England & Wales. Company no. 02426132 ******************************************************************** This email and any attachments are confidential to the intended recipient and may also be privileged. If you are not the intended recipient please delete it from your system and notify the sender. You should not copy it or use it for any purpose nor disclose or distribute its contents to any other person. ******************************************************************** _______________________________________________ fltk mailing list [email protected] http://lists.easysw.com/mailman/listinfo/fltk

