the inverse of the "owner" property; anomaly in dictionary entry
dick.kriesel at mail.com
Wed Oct 12 02:04:02 CDT 2005
On 10/10/05 8:24 PM, "Dick Kriesel" <dick.kriesel at mail.com> wrote:
> The property works for me, but does anyone see trouble with it?
Well, not that it's a hot topic, but yes, I do. The function ignores the
backgrounds that a stack owns after they're removed from cards.
A revised version follows below. But first: an anomaly in the Transcript
dictionary. The entry for property "the backgroundNames" states:
The backgroundNames is the list of all backgrounds in the stack whose
backgroundBehavior property is set to true, whether they appear on the
current card or not.
While trying to see where removed groups go, I tried this:
1. create a new stack
2. create a group
3. check the group's properties to make sure its backgroundBehavior is off
4. remove the group from the card
5. check the backgroundNames of the stack to see that the group is there,
contrary to what the dictionary says
Incidentally, placing the group back onto the card to check its
backgroundBehavior again shows it's off.
So a BugZilla entry seems appropriate. Any comment, anyone?
postscript: (pun intended)
if first word of the target is "stack" then
repeat for each line tSubstack in the substacks of the target
put the name of stack tSubstack & return after tOwnees
repeat for each line tGroup in the backgroundNames of the target
if first word of the owner of bg tGroup is "stack" then
put the name of bg tGroup & return after tOwnees
put the cardNames of the target after tOwnees
put abbr id of the target into tOwner
repeat with i = 1 to number of controls in tOwner
if abbr id of the owner of control i of tOwner is tOwner then
put name of control i of tOwner & return after tOwnees
delete last char of tOwnees
More information about the use-livecode