On CloseField Question

LiveCode is the premier environment for creating multi-platform solutions for all major operating systems - Windows, Mac OS X, Linux, the Web, Server environments and Mobile platforms. Brand new to LiveCode? Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
warrenk
Posts: 110
Joined: Sun Sep 21, 2008 5:39 am

On CloseField Question

Post by warrenk » Sun Mar 22, 2009 8:31 pm

When I enter a value into a field and click a button, the 'on closefield' procedure does not process. Is there anyway to "force" a field closed when I click a button? Or anyway around this?

The 'on closefield' does process when I tab into another field.

Thanks,
Warren

FourthWorld
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 10049
Joined: Sat Apr 08, 2006 7:05 am
Contact:

Post by FourthWorld » Sun Mar 22, 2009 8:50 pm

You can force any open field to close by adding this to your mouseUp handler in the button:

on mouseUp
select empty
-- your stuff goes here:

end mouseUp
Richard Gaskin
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn

warrenk
Posts: 110
Joined: Sun Sep 21, 2008 5:39 am

Post by warrenk » Sun Mar 22, 2009 8:53 pm

Richard,

Thanks...that did the trick!

Warren

Post Reply