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>
_______________________________________________
use-livecode mailing list
[email protected]
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Reply via email to