Page 1 of 1

adding controls to a group

Posted: Sat Nov 26, 2011 2:25 pm
by kevin11
How do you add a control to a group that already exists ?
I know how you can create a group, by supplying a list of controls, but is there a way of adding new controls to that group ?
For example, a group may contain a set of controls, and as a database returns records, a new control has to be added to the group. There may be hundreds of controls that need adding, so supplying huge lists isn't practical.

Re: adding controls to a group

Posted: Sat Nov 26, 2011 5:32 pm
by jmburnod
Hi Kewin,

I think you can use

start editing group "myGroup". have a look at "start editing" entry of the LC dictionary

and any objects created while in group-editing mode are added to that group.

Best regards

Jean-Marc

Re: adding controls to a group

Posted: Sat Nov 26, 2011 7:01 pm
by jacque
For scripted solutions, use "create <control> in group <groupname>". For example:

create button "Click Me" in group "mainGrp"

Re: adding controls to a group

Posted: Sat Nov 26, 2011 11:07 pm
by jmburnod
Oh Yes,

create is a better way. More clear more simple

Thanks for this Jaque

Jean-Marc