a new problem

Anything beyond the basics in using the LiveCode language. Share your handlers, functions and magic here.

Moderators: Klaus, FourthWorld, heatherlaine, kevinmiller, robinmiller

Post Reply
chipsm
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 244
Joined: Wed May 11, 2011 7:50 pm

a new problem

Post by chipsm »

All of a sudden, my "on MouseUp" doesn't work on my scrolling table field. My "on MouseDOwn" does work on this field.
Has anyone seen this happen?
all other field in my app work with the "on mouseUp"
Update: this problem seems to be specific to my application.
Now, what to look for?
Clarence Martin
chipsm@themartinz.com
jacque
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 7423
Joined: Sat Apr 08, 2006 8:31 pm
Contact:

Re: a new problem

Post by jacque »

It happens on mobile if the field has a native scroller. MouseUp isn't sent at all in that case. Is your stack running on a mobile device?

If desktop then the most likely reason is that there's a mouseUp handler earlier in the message path that's trapping the message.
Jacqueline Landman Gay | jacque at hyperactivesw dot com
HyperActive Software | http://www.hyperactivesw.com
chipsm
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 244
Joined: Wed May 11, 2011 7:50 pm

Re: a new problem

Post by chipsm »

thanks Jacque.
I it is om the desktop and I have been looking for another "on mouseUp" , so I guess I need to search again.
I know that I was calling an "on mouseUp" elsewhere but I will look again.
Clarence Martin
chipsm@themartinz.com
dunbarx
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 10509
Joined: Wed May 06, 2009 2:28 pm

Re: a new problem

Post by dunbarx »

Is it possible that there is a mouseUp handler farther along the message path?

When you do your search (I assume with the "Find and Replace..." tool in the "Edit" menu) try searching ALL open stacks. Hey, you never know.

Craig Newman
chipsm
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 244
Joined: Wed May 11, 2011 7:50 pm

Re: a new problem

Post by chipsm »

Hey Craig, Thanks for the tip.
I actually looked everywhere that I could find. I know it's there but where?
I finally started remarking out sections of my scripts to search for the affected script.
I can't find it anywhere.
I beginning to think that it is somewhere that is hidden and am actually backing up to several versions where this does not happen.
I actually have a version where this anomaly doesn't happen and will be changing other scripts to get back to where I want to be.
This seems to be one of those things that may be a "forever mystery" at least for me.

Thanks to all for the help.
Clarence Martin
chipsm@themartinz.com
dunbarx
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 10509
Joined: Wed May 06, 2009 2:28 pm

Re: a new problem

Post by dunbarx »

Chip.
I finally started remarking out sections of my scripts to search for the affected script.
Huh?

Um, what about the "Find and Replace..." tool? You do use that, right?

Craig
chipsm
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 244
Joined: Wed May 11, 2011 7:50 pm

Re: a new problem

Post by chipsm »

Yes, I tried that too.
I tried everything.
I have taken the time to rewrite my code and I seem to have gotten rid of the hidden culprit, wherever it is.
Clarence Martin
chipsm@themartinz.com
dunbarx
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 10509
Joined: Wed May 06, 2009 2:28 pm

Re: a new problem

Post by dunbarx »

Sometimes the default "phantom" button mouseUp handler can be made "real" without your realizing it. This has happened to me, though it is invariably at the button level, and affected group or card handlers ostensibly above the scripts in a particular button.

Sorry, Jacque.

But as long as you are up and running...

Craig
chipsm
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 244
Joined: Wed May 11, 2011 7:50 pm

Re: a new problem

Post by chipsm »

That's something to keep in mind.
Thanks.
Clarence Martin
chipsm@themartinz.com
Post Reply