Enable/disable Group enables/disables all children
ambassador at fourthworld.com
Thu Apr 26 14:45:35 EDT 2018
Paul Dupuis wrote:
> On 4/26/2018 1:06 PM, Bob Sneidar via use-livecode wrote:
>> Hi all.
>> I have a group that contains a number of objects, buttons, menus,
>> fuelds and groups. I just noticed that if I disable a group (so
>> that none of the objects in the group can be interacted with) I
>> get the desired effect. However when re-enabling the group, it
>> *ALSO* re-enables ALL the objects in that group, no matter what
>> their status was prior to disabling the group.
>> Is that the expected behavior? If not I will file a bug report.
>> If so, I will have to find another way to disable all the objects
>> in a group, or else trap for the action, and save the enabled
>> property for every containing object so I can reset them.
> I don't know if that is the "expected" behavior by LiveCode, but it is
> NOT the behavior I would expect. I would expect when enabling a group
> that every object in the group was still in whatever disabled/enabled
> state it was in BEFORE the group was disabled.
I had thought the way you describe it is how it worked. But I just
checked in v9 and v6.7 and it works as Bob describes.
So if we proposed a change to do what you and I feel is more logical,
the current behavior was put into place long enough ago that we'd now
have to think about compatibility issues. :(
Fourth World Systems
Software Design and Development for the Desktop, Mobile, and the Web
Ambassador at FourthWorld.com http://www.FourthWorld.com
More information about the Use-livecode