Enable/disable Group enables/disables all children
Paul Dupuis
paul at researchware.com
Thu Apr 26 13:50:42 EDT 2018
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.
More information about the use-livecode
mailing list