Page 1 of 1
Prevent Button message from going to card handler - Solved
Posted: Sat Aug 12, 2017 2:12 pm
by DR White
How do I Prevent Button message from going to card handler?
I thought a message would stop at the lowest level of execution, unless told to be passed.
Thanks,
David
Re: Prevent Button message from going to card handler
Posted: Sat Aug 12, 2017 2:26 pm
by LiveCode_Panos
Hi David,
Which message are you trying to trap?
Panos
--
Re: Prevent Button message from going to card handler
Posted: Sat Aug 12, 2017 2:27 pm
by DR White
I am trying to trap MouseDown
Re: Prevent Button message from going to card handler
Posted: Sat Aug 12, 2017 2:54 pm
by Randy Hengst
Double-check to make sure you have an “empty” mouseDown handler in the button. If there is no mouseDown handler in the button, then you will see the mouseDown in the card. I assume you have a mouseDown handler defined in the button script?
Re: Prevent Button message from going to card handler
Posted: Sat Aug 12, 2017 2:58 pm
by richmond62
I'm not entirely sure why you have a problem.
I just made this very simple stack with a mouseDown script in both the card and a button.
Please can you either explain further and/or upload a stack demonstrating the problem.
Re: Prevent Button message from going to card handler
Posted: Sat Aug 12, 2017 3:45 pm
by DR White
richmond62,
Thanks so much for taking the time to post a simple stack that works.
It allowed me to see that my problem was a scripting issue.
My Card script had "MouseUp" and "MouseRelease" handlers that were getting messages from my button
that only had "MouseDown" handler. When I added "MouseUp" and "MouseRelease" handlers to my button,
no more messages were passed to card.
I Love this Forum.
Thanks,
David