When has a field changed?
John Dixon
dixonja at hotmail.co.uk
Tue Oct 25 18:12:45 EDT 2011
look at 'closeField' in the dictionary...
Dixie
> Subject: When has a field changed?
> From: jhurley0305 at sbcglobal.net
> Date: Tue, 25 Oct 2011 14:21:56 -0700
> To: use-livecode at lists.runrev.com
>
> I have a text field (unlocked) that the user can edit, but I want to know when and to deal with the changes.
>
> Here is what I have come up with, something of a kludge. Is there a cleaner way?
>
> on mouseEnter --Enter the field
> set the textChange of me to false
> end mouseEnter
>
> on rawkeydown tKey
> if the textChange of me is true then
> pass rawKeyDown
> else
> set the textChange of me to true
> pass rawKeyDown
> end if
> end rawKeyDown
>
> on mouseLeave
> if the textChange of me is false then
> exit mouseLeave
> else
> send "mouseUP" to button "ProcessChanges" --This is where the change is dealt with.
> end if
> end mouseLeave
>
>
> Jim Hurley
> _______________________________________________
> use-livecode mailing list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
More information about the use-livecode
mailing list