On 01/28/2016 03:29 PM, Alex Tweedly wrote:
As Mark Weider said, control ids are unique, so there is no need to
specify the group, in
... graphic id 1234 of grp "unneeded" of ..
However, the same is not true of names, so it's perfectly possible to
have multiple graphics (or multiple groups) within the card, each with
the same name. It is therefore ambiguous which of them is being referred
to -and unfortunately the engine does NOT inform you of this ambiguity
(and hence possible bug).
So - in your original example here -
set the width of graphic "BaseControlsBkgnd" to item 3 of tCardRect
are you sure there s no other graphic with the same name ? (- NB it can
be anywhere withing the stack file)
Ir would be better practice to say somethingglike
set the width of graphic "BaseControlsBkgnd" of grp "wherever" of grp
:to item 3 of tCardRect
Oooo... nice catch.
--
Mark Wieder
ahsoftw...@gmail.com
_______________________________________________
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode