Changing position/dimensions of a control that is part of a group
dunbarx at aol.com
dunbarx at aol.com
Wed Jan 27 23:44:10 EST 2016
Hi.
Does this do anything:
if there is a graphic "yourGraphicName" of grp "baseControls" then set...
else answer "no such graphic"
Craig Newman
-----Original Message-----
From: Sannyasin Brahmanathaswami <brahma at hindu.org>
To: How LiveCode <use-livecode at lists.runrev.com>
Sent: Wed, Jan 27, 2016 11:15 pm
Subject: Re: Changing position/dimensions of a control that is part of a group
I take part of that back
set the width of graphic id 1026 of grp "baseControls" to item 3 of tCardRectByStack
set the left of graphic id 1026 of grp "baseControls" to 0
works
but not if we refer to the graphic by name
http://www.himalayanacademy.com/apps/gurudeva
On January 27, 2016 at 6:08:03 PM, Sannyasin Brahmanathaswami (brahma at hindu.org<mailto:brahma at hindu.org>) wrote:
These lines are causing my scripts to silently fail…
set the width of graphic "BaseControlsBkgnd" to item 3 of tCardRect
set the left of graphic id 1026 to 0
either one will break the script whether referred to by name or ID…
I thought I recalled some internal global to allow controls in a group to be dynamically managed… but it only appears to refer to layers and not geometric position or dimensions.
Oddly there is no error msg to alert us that there is a problem here.
Neither the group or the graphic which is part of it have their lockloc set to true.
BR
_______________________________________________use-livecode mailing listuse-livecode at lists.runrev.comPlease visit this url to subscribe, unsubscribe and manage your subscription preferences:http://lists.runrev.com/mailman/listinfo/use-livecode
More information about the use-livecode
mailing list