Jim T Member Licensed User Longtime User Apr 11, 2011 #1 I was just wondering if there is any way to replace Delphi's functions that let you know when someone enters or exits a field. I would like to assigns actions when someone first enters a text field. In Delphi I would call the OnEnter function for the textfield and it would trip as soon as the cursor entered the field. Failing that I could watch for any keypress and then check the Boolean "Focused" of the textfield. Is there anyway to have similar action when someone first taps on a textfield in B4A? thanks Jim T
I was just wondering if there is any way to replace Delphi's functions that let you know when someone enters or exits a field. I would like to assigns actions when someone first enters a text field. In Delphi I would call the OnEnter function for the textfield and it would trip as soon as the cursor entered the field. Failing that I could watch for any keypress and then check the Boolean "Focused" of the textfield. Is there anyway to have similar action when someone first taps on a textfield in B4A? thanks Jim T
Erel B4X founder Staff member Licensed User Longtime User Apr 12, 2011 #2 Focused event for EditBox will be added in the next update. Upvote 0
agraham Expert Licensed User Longtime User Apr 12, 2011 #3 In the meantime you can try my my Reflection library that can add a Sub as an OnFocusListener to any View. It can also add several other listeners as well. Upvote 0
In the meantime you can try my my Reflection library that can add a Sub as an OnFocusListener to any View. It can also add several other listeners as well.
Jim T Member Licensed User Longtime User Apr 12, 2011 #4 Thanks guys! Quick response around here!! :sign0060: aw heck, now I'm all misty eyed. ... back to work! :icon_clap: Jim T Upvote 0
Thanks guys! Quick response around here!! :sign0060: aw heck, now I'm all misty eyed. ... back to work! :icon_clap: Jim T
blong Active Member Licensed User Longtime User Apr 13, 2011 #5 Andrew Would you have a sample code snippet of using the "onFocusListener" for an edittext box. I looked at the reflection library and found myself confused with the concepts:sign0085:. Thanks in advance ... Upvote 0
Andrew Would you have a sample code snippet of using the "onFocusListener" for an edittext box. I looked at the reflection library and found myself confused with the concepts:sign0085:. Thanks in advance ...
agraham Expert Licensed User Longtime User Apr 13, 2011 #6 The demo in the archive shows adding a Focus event to two EditText boxes! Upvote 0