on focusOut - not working?

Deploying to Linux? Get penguinated here.

Moderators: Klaus, FourthWorld, heatherlaine, robinmiller, kevinmiller

Post Reply
Garrett
Posts: 386
Joined: Sat Apr 08, 2006 8:15 am
Contact:

on focusOut - not working?

Post by Garrett » Mon Aug 18, 2014 7:43 am

Couldn't get on focusOut to work in a project so I started a new project with two edit fields and applied a on focusOut sub to one of them and tabbed in and out of each of them and nothing.

Is there a property I need to set for this to work?

Thanks,
~Garrett
'What you do not want done to yourself, do not do to others.' - Confucius (550 b.c. to 479 b.c.)

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

Re: on focusOut - not working?

Post by Mark » Mon Aug 18, 2014 9:22 am

Hi Garrett,

FocusIn and FocusOut don't work with editable fields. Use exitField and closeField instead. This is discussed in the LiveCode dictionary. Please, make sure to read the dictionary entries about exitField and closeField, as they are quite different.

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

Garrett
Posts: 386
Joined: Sat Apr 08, 2006 8:15 am
Contact:

Re: on focusOut - not working?

Post by Garrett » Mon Aug 18, 2014 5:45 pm

thank you Mark.

I did read the dictionary on this and exitfield and closefield. It confused me and I did not realize that the edit field was not able to use the focusout.

Thanks again, :-)
~Garrett
'What you do not want done to yourself, do not do to others.' - Confucius (550 b.c. to 479 b.c.)

Post Reply

Return to “Linux”