Relayering a control

Peter Haworth pete at lcsql.com
Fri Feb 7 00:04:07 EST 2014


Let's say I have a card with the following control structure

GroupA (layer 1)
  ControlA1 (layer 2)
  ControlA2 (layer 3)
GroupB (layer 4)
  ControlB1 (layer 5)
  ControlB2 (layer 6)

I need to change the layer of control A2 by script to 7 and it should not
be a member of GroupB.

If I set relayerGroupedControls to true before changing ControlA2's layer,
it becomes a member of GroupB.

If I set the relayerGroupedControls to false, I get a runtime error that
the control or group is not open (the card is open).

What am I doing wrong?

Pete
lcSQL Software <http://www.lcsql.com>
Home of lcStackBrowser <http://www.lcsql.com/lcstackbrowser.html> and
SQLiteAdmin <http://www.lcsql.com/sqliteadmin.html>



More information about the use-livecode mailing list