Changing position/dimensions of a control that is part of a group
Mark Wieder
mwieder at ahsoftware.net
Thu Jan 28 19:58:18 EST 2016
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
ahsoftware at gmail.com
More information about the use-livecode
mailing list