a new problem

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

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

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

a new problem

Post by chipsm » Tue Mar 14, 2017 6:40 pm

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: 7230
Joined: Sat Apr 08, 2006 8:31 pm
Location: Minneapolis MN
Contact:

Re: a new problem

Post by jacque » Wed Mar 15, 2017 4:34 pm

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
Location: Southern California

Re: a new problem

Post by chipsm » Thu Mar 16, 2017 12:50 am

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: 9658
Joined: Wed May 06, 2009 2:28 pm
Location: New York, NY

Re: a new problem

Post by dunbarx » Thu Mar 16, 2017 2:54 pm

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
Location: Southern California

Re: a new problem

Post by chipsm » Thu Mar 16, 2017 3:43 pm

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: 9658
Joined: Wed May 06, 2009 2:28 pm
Location: New York, NY

Re: a new problem

Post by dunbarx » Thu Mar 16, 2017 5:50 pm

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
Location: Southern California

Re: a new problem

Post by chipsm » Thu Mar 16, 2017 8:45 pm

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: 9658
Joined: Wed May 06, 2009 2:28 pm
Location: New York, NY

Re: a new problem

Post by dunbarx » Thu Mar 16, 2017 9:14 pm

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
Location: Southern California

Re: a new problem

Post by chipsm » Thu Mar 16, 2017 10:09 pm

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

Post Reply

Return to “Talking LiveCode”