Prevent Button message from going to card handler - Solved
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller
Prevent Button message from going to card handler - Solved
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
I thought a message would stop at the lowest level of execution, unless told to be passed.
Thanks,
David
Last edited by DR White on Sat Aug 12, 2017 3:45 pm, edited 1 time in total.
-
- Livecode Staff Member
- Posts: 818
- Joined: Fri Feb 06, 2015 4:03 pm
Re: Prevent Button message from going to card handler
Hi David,
Which message are you trying to trap?
Panos
--
Which message are you trying to trap?
Panos
--
Re: Prevent Button message from going to card handler
I am trying to trap MouseDown
-
- VIP Livecode Opensource Backer
- Posts: 153
- Joined: Thu Jun 29, 2006 4:16 pm
Re: Prevent Button message from going to card handler
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?
-
- Livecode Opensource Backer
- Posts: 9388
- Joined: Fri Feb 19, 2010 10:17 am
- Location: Bulgaria
Re: Prevent Button message from going to card handler
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
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
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