What I do Pete is to make a list of all the controls but filter out any
controls that are part of a group (by checking the owner). Then I take
into account whether the object I want to move is a group or single
control in the same way. Then use the relayer command - "relayer control
A before control B." That way you won't move single controls in and out
of other groups. But maybe there's a more elegant way?
Marty K
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
_______________________________________________
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