As referenced in a linked thread, A Zorder in PB would be excellent. This will allow us to catch events of gadgets that are on top of other gadgets. Thus the ZOrder sets the rendering order of gadgets on a Window, thus fires events for the top most gadget.
Reference: viewtopic.php?t=12830
ZOrder Support
- Joakim Christiansen
- Addict
- Posts: 2452
- Joined: Wed Dec 22, 2004 4:12 pm
- Location: Norway
- Contact:
I need it, too.
If you place a imagegadget in background to skin your window (plattform-independent), you are not able to place another gadget above and catch it's events.
My workaround actually is, that if the background-image catches the event, I figure out the Mouse-Position and do eventing manually.
Another example, if you write a userdrawn grid control and want to place input gadgets in front to do grid-entries, you will get z-order problems as well.
I can live with that fact, that I can only change the order by the way I place gadgets inside code, but catching events is not working the same way. That means sometimes an gadget is infront, but the gadget behind catches the event.
Freak says (http://www.purebasic.fr/english/viewtop ... 283#191283): Don't overlap gadgets, but you can see on above mentioned examples that it is sometimes required. A zorder-command would be helpful (even if it is supported only on some OS). Else I would like to request, that gadget display order must be the same as gadget event order. It looks like, that Image-Gadgets are always in front.
If you place a imagegadget in background to skin your window (plattform-independent), you are not able to place another gadget above and catch it's events.
My workaround actually is, that if the background-image catches the event, I figure out the Mouse-Position and do eventing manually.
Another example, if you write a userdrawn grid control and want to place input gadgets in front to do grid-entries, you will get z-order problems as well.
I can live with that fact, that I can only change the order by the way I place gadgets inside code, but catching events is not working the same way. That means sometimes an gadget is infront, but the gadget behind catches the event.
Freak says (http://www.purebasic.fr/english/viewtop ... 283#191283): Don't overlap gadgets, but you can see on above mentioned examples that it is sometimes required. A zorder-command would be helpful (even if it is supported only on some OS). Else I would like to request, that gadget display order must be the same as gadget event order. It looks like, that Image-Gadgets are always in front.
- nblackburn
- User
- Posts: 67
- Joined: Mon Aug 19, 2013 1:22 am
- Location: United Kingdom
- Contact: