Page 1 of 1

[SOLVED] Groups and Custom Controls How do they work?

Posted: Thu Feb 23, 2017 2:09 pm
by Lagi Pittas
Hi

I have a "Keypad" fore entering prices, qty etc in an App. It is made up of a group "grpKeyPad" with another grpup "grpNumbers" inside and a few other keys "partPaid", "paidCash". All well and good.
In the Project browse it shows as a group which I can "expand" to see all the constituent controls/buttons.

Redoing this keypad from scratch I now have it showing as a custom control in the browser , can't access the constituent controls but to make things even more weird all the buttons are live whe=ther i'm in browse or run mode so I can't even right click to select any part.

The only way I can edit the group is using the option in the Object Menu. This still doesn't fix the fact that all the buttons are always active --- I've copied the control to a new stack, and I've switched it off and on again.

I looked to see if their was an option to set it as a custom control, I've looked at the lesson here

http://lessons.livecode.com/m/4071/l/22 ... m-controls

It just mentions grouping controls together - and when I do that the controls work as a group that can be expanded in the project browse - Just like they always have.

Version of Livecode Latest 6 series. - works the same on mac or windows.

Regards Lagi

p.s.

I think I had the same problem nearly a year ago - but somehow I solved it - but I've been to bed since then.

Re: Groups of Controls and Custom Controls How does it work?

Posted: Thu Feb 23, 2017 2:17 pm
by Thierry
Could it be this?

Select your group,
open the inspector and enable "Select grouped Controls"

HTH,

Thierry

Re: Groups of Controls and Custom Controls How does it work?

Posted: Thu Feb 23, 2017 2:44 pm
by Lagi Pittas
Hi Thierry,

Thanks for responding so quickly.

But I'm afraid it's not that, as I use select grouped controls all the time.

even if selected the button are live in Browse mode but I'm sure it has something to do with this group shows as a custom control - which I cannot see how this was set. I have no behaviour script or anything that would tell LC that this group is a custom control.

Regards Lagi

Re: Groups of Controls and Custom Controls How does it work?

Posted: Thu Feb 23, 2017 6:57 pm
by jacque
Lagi Pittas wrote:But I'm afraid it's not that, as I use select grouped controls all the time.
Thierry means the option in the group's property inspector, not the one in LC's toolbar. That's how a custom control is created.

Re: Groups of Controls and Custom Controls How does it work?

Posted: Fri Feb 24, 2017 11:10 am
by Lagi Pittas
Thanks Thierry for the original pointer which does work if you read the line "Open the inspector" not scan it as in Speed Reading.

And thanks again Jacque for saving me from myself - I should have read it SLOoo.wly.

I actually looked in the group inspector looking for Create/Set as control Control never thought about the "select grouped items" as I thought it would work exactly as the Menu Option.

Oh and did I say thanks?

Many Thanks again.

Lagi

Re: Groups of Controls and Custom Controls How does it work?

Posted: Fri Feb 24, 2017 11:43 am
by Thierry
Lagi Pittas wrote:Thanks Thierry for the original pointer which does work
if you read the line "Open the inspector" not scan it as in Speed Reading.

And thanks again Jacque for saving me from myself - I should have read it SLOoo.wly.
Glad that Jacque saved your soul :)

Regards,

Thierry