Groups do not receive mouseEnter messages?

Bob Sneidar bobsneidar at iotecdigital.com
Tue Jun 25 17:49:21 EDT 2019


As I understand it, a group will be the FIRST object to get a mouse message, IF you click on an actual object in the group. So you can have a mouseUp handler in the group script that handles clicks in other objects, simpy by using the target to determine what was clicked. 

Bob S


> On Jun 25, 2019, at 10:23 , Ralph DiMola via use-livecode <use-livecode at lists.runrev.com> wrote:
> 
> This bit me a few times. I would have a group with some controls but was not able to get the mouseUp when you clicked in the group but not on any of the child controls. I now know I have to put some transparent object that fills the group and is also behind all the other controls. It never made any sense to me why this is. I thought as others that the group is a control and would get mouse messages. If this was so then the group would only get the message if 1) you clicked in the group but not on a child 2) You clicked in the group and on a child control and the control passed the message.
> 
> Ralph DiMola





More information about the use-livecode mailing list