This is an old problem i cannot seem to solve.
I need to do some actions as soon as a user left a field (by clicking onto another field or on a button or outside the app ect...).
If a user after entering data into the field exits a field by clicking on another field the 'on ExitField' handler works fine.
However when a user after entering data into the field clicks on a button the 'on ExitField' is not triggered, neither are the 'on closefield' and the 'on focusout' handlers. This is probably because the cursor stays (blinking) in the field and therefore no handler is triggered?
These are all the handler i know that could/should solve this but none reacts when a user clicks on a button straight from the field.
I cannot use 'on rawkey...' because this triggers the 'DoFieldActions' handler each time a user enters a letter and that is to much!
Code: Select all
on closeField
DoFieldActions
end closeField
--
on exitField
DoFieldActions
end exitField
--
on focusOut
DoFieldActions
end focusOut
Code: Select all
set the traversalOn of me to true
focus on me
Regards,
Paul