I am still running into some issues trying to get this android app to behave the way it needs to. It appears that the only events fired are focus changed, text changed and enter pressed and enter seems to automatically send focus to the next control in the list. This auto focus change is a bit of an issue. I have sort of found a way around it but still not sure it works 100%.
A problem arises when the user wants to tap on a different field for whatever reason. I need to be able to allow the user to do this even when there is not a valid entry in the currently active field, yet I need to keep the app from going to the next field when enter is pressed and no valid entry is present in the current field.
So that said is there anyway to tell when a user taps on an edittext view? Are there any other possible events that may be raised from an edittext view other than the three shown in the designer?
I really like this B4A tool but find it very limited event wise compared to what I am used to. Trying to reproduce this old Windows CE app has proven difficult and of all things the thing that has proven the most difficult has been simply getting the focus to go and stay where it needs to be. In VB this is very simple to do but apparently not so much on the Android or if there is a simple way I have not been able to find it yet.
I guess the real issue here in trying to get this to behave the way I need is that the auto focus change happens after the code in the enter pressed event runs. If I place code in the enter pressed to request focus on any field then the focus goes there then goes to the next field in the list. The focus changed event fires after that so it can be used to override the focus but can not tell if a user tapped on the field or not.
A problem arises when the user wants to tap on a different field for whatever reason. I need to be able to allow the user to do this even when there is not a valid entry in the currently active field, yet I need to keep the app from going to the next field when enter is pressed and no valid entry is present in the current field.
So that said is there anyway to tell when a user taps on an edittext view? Are there any other possible events that may be raised from an edittext view other than the three shown in the designer?
I really like this B4A tool but find it very limited event wise compared to what I am used to. Trying to reproduce this old Windows CE app has proven difficult and of all things the thing that has proven the most difficult has been simply getting the focus to go and stay where it needs to be. In VB this is very simple to do but apparently not so much on the Android or if there is a simple way I have not been able to find it yet.
I guess the real issue here in trying to get this to behave the way I need is that the auto focus change happens after the code in the enter pressed event runs. If I place code in the enter pressed to request focus on any field then the focus goes there then goes to the next field in the list. The focus changed event fires after that so it can be used to override the focus but can not tell if a user tapped on the field or not.