Page 1 of 1

Setting the layer of a control with a background group

Posted: Fri Apr 24, 2009 3:00 pm
by gyroscope
I need to change the layer of one button within a grouped group of buttons. The code I have at the moment (a line from Bernd's code) is:

Code: Select all

set the layer of me to (the number of controls) 

but I get the error:

Object: Can't set layer (card not open, or control in group)

I can't temporarily ungroup because I have these buttons set as a background. Has anyone any ideas here please :?:

Posted: Fri Apr 24, 2009 3:22 pm
by Klaus
Hi Gyroscope,

check "RelayerGroupedControls" in the docs, that is what your are looking for :-)

HINT!
Handle with care, since this way you can "relayer" any object out of the group accidentally!


Best

Klaus

Posted: Fri Apr 24, 2009 3:42 pm
by gyroscope
Thank you Klaus, that works just fine!

:)

Posted: Fri Apr 24, 2009 6:38 pm
by Klaus
gyroscope wrote:Thank you Klaus, that works just fine!
:)
Hi gyroscope,

you're welcome and sure it does :-D


Best

Klaus

P.S.
I always read "Spyro Gyra" in your sig at first glance ;-)

Posted: Fri Apr 24, 2009 7:45 pm
by gyroscope
Hi Klaus

Do you mean the band Spirogyra or a genus of filamentous green algae of the order Zygnematales :wink: (Google is handy sometimes!)

Posted: Sat Apr 25, 2009 11:38 am
by Klaus
Being a musician myself and not an aquabiologist I mean of course the band :-D

Posted: Sun Apr 26, 2009 12:39 am
by mwieder
Heehee... now I'm gonna have Morning Dance running through my head for the rest of the day...