Receiving mouseUp in an unlocked field

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

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
andrewferguson
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 184
Joined: Wed Apr 10, 2013 5:09 pm

Receiving mouseUp in an unlocked field

Post by andrewferguson » Wed Nov 13, 2013 9:38 am

Hello,
I am trying to find a way to receive a mouseUp message in an unlocked field. I know this works when the lockText is set to true but I need the field to be unlocked as well.
Any ideas?
Thanks,
Andrew

Mark
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 5150
Joined: Thu Feb 23, 2006 9:24 pm
Contact:

Re: Receiving mouseUp in an unlocked field

Post by Mark » Wed Nov 13, 2013 11:28 am

Hi Andrew,

You can use the selectionChanged message or you can respond to right-clicks/control-clicks.

Kind regards,

Mark
The biggest LiveCode group on Facebook: https://www.facebook.com/groups/livecode.developers
The book "Programming LiveCode for the Real Beginner"! Get it here! http://tinyurl.com/book-livecode

Simon
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 3901
Joined: Sat Mar 24, 2007 2:54 am

Re: Receiving mouseUp in an unlocked field

Post by Simon » Wed Nov 13, 2013 9:44 pm

Hi Andrew,
Try;
on openField


Simon
I used to be a newbie but then I learned how to spell teh correctly and now I'm a noob!

Mark
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 5150
Joined: Thu Feb 23, 2006 9:24 pm
Contact:

Re: Receiving mouseUp in an unlocked field

Post by Mark » Wed Nov 13, 2013 10:03 pm

Hi Simon,

That won't work if the user clicks in the field while it is has focus already while the openField message will also fire if the field gets focus in any way other than a mouse click.

Kind regards,

Mark
The biggest LiveCode group on Facebook: https://www.facebook.com/groups/livecode.developers
The book "Programming LiveCode for the Real Beginner"! Get it here! http://tinyurl.com/book-livecode

Post Reply