Setting visible of control within group to false

dunbarx at aol.com dunbarx at aol.com
Sun Oct 2 21:35:52 EDT 2011


Jim:


Me neither. I made three buttons  (B1, B2, B3) and grouped them into group "grp1".


This in another button script:


on mouseup
set the visible of btn "b2" to "false"
answer the owner of btn "b2"
end mouseUp


I get "group grp1".  LC 4.5.3.


Craig Newman





-----Original Message-----
From: Scott Rossi <scott at tactilemedia.com>
To: LiveCode Mail List <use-livecode at lists.runrev.com>
Sent: Sun, Oct 2, 2011 10:53 am
Subject: Re: Setting visible of control within group to false


Jim:

Are you sure the control gets physically placed outside the group?  Are you
using any scripts to manipulate object layers?

Doing a quick test here with a single object in a group, I don't see your
result (v4.6.4). The rect of a group does indeed "collapse" to encompass
only its visible contents, but the hidden object/s should continue to remain
part of the group.  If you're seeing something else, it would be good know
what the circumstances are.

Regards,

Scott Rossi
Creative Director
Tactile Media, UX Design



Recently, James Hurley wrote:

> Is this supposed to happen? When I set the visible of a control within a group
> to false, it is removed from the group.
> 
> As a work-around I find that if I include a rectangle that  physically
> encompasses everything in the group and THEN set the visible of a control
> within the rectangle to false, it remains in the group.
> 
> Jim 



_______________________________________________
use-livecode mailing list
use-livecode at lists.runrev.com
Please 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