Page 1 of 1

ZOrder Support

Posted: Sat Oct 23, 2004 5:50 am
by Shannara
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

Posted: Sat Oct 23, 2004 9:26 am
by Christian
I would love to see this in PB, too. :D

regards,
Christian

Posted: Tue Feb 28, 2006 6:57 pm
by Joakim Christiansen
I also want this! :twisted:

I really need to do that now in my project, could someone give me some Windows API?
I have a PanelGadget and I don't want to make a new gadget inside every panel, so I need one to stay at top!

Posted: Fri Apr 20, 2007 11:27 am
by CSAUER
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.

Re: ZOrder Support

Posted: Tue Sep 10, 2013 9:22 pm
by nblackburn
Good idea