do group messages exist?

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
townsend
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 430
Joined: Sun Feb 13, 2011 8:43 pm

do group messages exist?

Post by townsend » Wed Jun 20, 2012 7:28 pm

I've got a group of buttons, grouped together, and I'm looking for some way
to capture a button click, at the group level, instead of at the button level.

I've tried, on menupick pName, but that only works for option buttons.
Of couse I tried, onMouseUp. Even that doesn't work.
I've also tried looking for messages in the Message Watcher but no group messages show up.
I checked Messages in the Dictionary but found nothing there.

Do Groups even have messages?

mwieder
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 3581
Joined: Mon Jan 22, 2007 7:36 am
Contact:

Re: do group messages exist?

Post by mwieder » Wed Jun 20, 2012 7:39 pm

mouseUp in the group should do the trick. But if you have a mouseUp handler in the button it will get the message first. You can either delete the mouseUp handler in the button or pass mouseUp in the button handler.

townsend
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 430
Joined: Sun Feb 13, 2011 8:43 pm

Re: do group messages exist?

Post by townsend » Wed Jun 20, 2012 7:55 pm

Excellent answer!

Thanks again Mark-- for the quick reply.

Post Reply