LiveCode is the premier environment for creating multi-platform solutions for all major operating systems - Windows, Mac OS X, Linux, the Web, Server environments and Mobile platforms. Brand new to LiveCode? Welcome!
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller
-
gyroscope
- Livecode Opensource Backer

- Posts: 404
- Joined: Tue Jan 08, 2008 3:44 pm
-
Contact:
Post
by gyroscope » Fri Apr 24, 2009 3:00 pm
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

-
Klaus
- Posts: 14198
- Joined: Sat Apr 08, 2006 8:41 am
-
Contact:
Post
by Klaus » Fri Apr 24, 2009 3:22 pm
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
-
gyroscope
- Livecode Opensource Backer

- Posts: 404
- Joined: Tue Jan 08, 2008 3:44 pm
-
Contact:
Post
by gyroscope » Fri Apr 24, 2009 3:42 pm
Thank you Klaus, that works just fine!

-
Klaus
- Posts: 14198
- Joined: Sat Apr 08, 2006 8:41 am
-
Contact:
Post
by Klaus » Fri Apr 24, 2009 6:38 pm
gyroscope wrote:Thank you Klaus, that works just fine!

Hi gyroscope,
you're welcome and sure it does
Best
Klaus
P.S.
I always read "Spyro Gyra" in your sig at first glance

-
gyroscope
- Livecode Opensource Backer

- Posts: 404
- Joined: Tue Jan 08, 2008 3:44 pm
-
Contact:
Post
by gyroscope » Fri Apr 24, 2009 7:45 pm
Hi Klaus
Do you mean the band Spirogyra or a genus of filamentous green algae of the order Zygnematales

(Google is handy sometimes!)
-
Klaus
- Posts: 14198
- Joined: Sat Apr 08, 2006 8:41 am
-
Contact:
Post
by Klaus » Sat Apr 25, 2009 11:38 am
Being a musician myself and not an aquabiologist I mean of course the band

-
mwieder
- VIP Livecode Opensource Backer

- Posts: 3581
- Joined: Mon Jan 22, 2007 7:36 am
-
Contact:
Post
by mwieder » Sun Apr 26, 2009 12:39 am
Heehee... now I'm gonna have Morning Dance running through my head for the rest of the day...