Page 1 of 1
Grouping. \
Posted: Wed Aug 05, 2020 7:46 pm
by eurolinkalGA2402
I'm a newbie working my way through training lessons. I have previously been able to get a handle on groups. But in the last few days if I select some objects and try to group them they will get the box around them and the inspector will show them a group. But when I deselect them, then click on one of the objects they are no longer a group but only exist as individual items. And if I select all the same objects and try to group them again I just get a beep and nothing happens. Is there some setting that I may have inadvertantly changed?
Re: Grouping. \
Posted: Wed Aug 05, 2020 7:49 pm
by SparkOut
in the menu bar, you can toggle the "select grouped" option, it looks like that is the case here. You probably don't need to group them again, I expect they are still grouped. Just toggle select grouped and see if behaviour reverts to how you expect.
Re: Grouping. \
Posted: Wed Aug 05, 2020 8:19 pm
by eurolinkalGA2402
That seems to be it. Thanks so much!
Re: Grouping. \
Posted: Wed Aug 05, 2020 8:31 pm
by FourthWorld
Bonus tip: in addition to the global selectGroupedControls property that you can toggle in the IDE as SparkOut suggested, there's also a selectGroupedControls property you can set on the group itself. Most of the time it's not needed, but if you want that group to have its interior contents not selectable as individual objects you can set the group's selectGroupedControls property to false and then it will always behave with the pointer tool like a sort of custom control, regardless of what the global property is set to. This is how the DataGrid works.
Re: Grouping. \
Posted: Wed Aug 05, 2020 8:36 pm
by dunbarx
Hi.
I am constantly toggling that property for a group in order to move controls individually, resize individually, whatever, individually. Or even a few at a time, always a subset of the total within the group.
I always use the menuBar method.
Craig
Re: Grouping. \
Posted: Wed Aug 05, 2020 8:46 pm
by FourthWorld
The menu bar method is the most convenient way to handle most group interactions.
I flagged my reply as "Bonus" because it's about something different, making custom controls. It's technically off-topic here in a strict sense, but seemed worth adding because knowing about the object property can be useful for many other things down the road.
Re: Grouping. \
Posted: Wed Aug 05, 2020 9:25 pm
by bogs
If it is any consolation, I'm glad you mentioned it, since I'm often creating my own controls by bashing multiple controls together (depending on what I expect it to do)
