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

Got a LiveCode personal license? Are you a beginner, hobbyist or educator that's new to LiveCode? This forum is the place to go for help getting started. Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller

Post Reply
Lagi Pittas
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 366
Joined: Mon Jun 10, 2013 1:32 pm

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

Post by Lagi Pittas » Thu Feb 23, 2017 2:09 pm

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.
Last edited by Lagi Pittas on Fri Feb 24, 2017 11:12 am, edited 1 time in total.

Thierry
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 875
Joined: Wed Nov 22, 2006 3:42 pm

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

Post by Thierry » Thu Feb 23, 2017 2:17 pm

Could it be this?

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

HTH,

Thierry
!
SUNNY-TDZ.COM doesn't belong to me since 2021.
To contact me, use the Private messages. Merci.
!

Lagi Pittas
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 366
Joined: Mon Jun 10, 2013 1:32 pm

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

Post by Lagi Pittas » Thu Feb 23, 2017 2:44 pm

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

jacque
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 7393
Joined: Sat Apr 08, 2006 8:31 pm
Contact:

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

Post by jacque » Thu Feb 23, 2017 6:57 pm

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.
Jacqueline Landman Gay | jacque at hyperactivesw dot com
HyperActive Software | http://www.hyperactivesw.com

Lagi Pittas
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 366
Joined: Mon Jun 10, 2013 1:32 pm

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

Post by Lagi Pittas » Fri Feb 24, 2017 11:10 am

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

Thierry
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 875
Joined: Wed Nov 22, 2006 3:42 pm

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

Post by Thierry » Fri Feb 24, 2017 11:43 am

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
!
SUNNY-TDZ.COM doesn't belong to me since 2021.
To contact me, use the Private messages. Merci.
!

Post Reply