Fabrice La Active Member Licensed User Longtime User Dec 10, 2013 #1 Is it possible to use keypress in textfield ? If yes how ?
Erel B4X founder Staff member Licensed User Longtime User Dec 10, 2013 #2 What do you want to intercept? The Action event will be raised when the user presses on the Enter key. Upvote 0
What do you want to intercept? The Action event will be raised when the user presses on the Enter key.
Fabrice La Active Member Licensed User Longtime User Dec 10, 2013 #3 I need the key type : back enter delete space Upvote 0
Erel B4X founder Staff member Licensed User Longtime User Dec 10, 2013 #4 You can use the TextChanged event and compare between the old and the new strings. Upvote 0
Fabrice La Active Member Licensed User Longtime User Dec 10, 2013 #5 Ok find it. But how to detecte "Enter" in textField_Action Upvote 0
Erel B4X founder Staff member Licensed User Longtime User Dec 11, 2013 #6 This event will be raised when the user presses on the Enter button. Upvote 0
Fabrice La Active Member Licensed User Longtime User Dec 12, 2013 #7 This event raise only when Enter is pressed ? No other event will raise for action? Upvote 0
Erel B4X founder Staff member Licensed User Longtime User Dec 12, 2013 #8 Oracle documentation says: The action handler is normally called when the user types the ENTER key. Click to expand... Upvote 0
Oracle documentation says: The action handler is normally called when the user types the ENTER key. Click to expand...
P positrom2 Active Member Licensed User Longtime User Jan 20, 2014 #9 Oracle documentation says: The action handler is normally called when the user types the ENTER key. Click to expand... Doesn't seem like that. The event "txtfield_TextChanged (Old As String, New As String)" is raised as soon as the text has been changed, without the ENTER key to be pressed. This is nasty since when I want to enter a two-digit number (or larger) the event fires with the first digit. Therefore, I have to take care of this by Code: Copy txtfield_TextChanged (Old As String, New As String) If New<10 Then Return . Upvote 0
Oracle documentation says: The action handler is normally called when the user types the ENTER key. Click to expand... Doesn't seem like that. The event "txtfield_TextChanged (Old As String, New As String)" is raised as soon as the text has been changed, without the ENTER key to be pressed. This is nasty since when I want to enter a two-digit number (or larger) the event fires with the first digit. Therefore, I have to take care of this by Code: Copy txtfield_TextChanged (Old As String, New As String) If New<10 Then Return .
Erel B4X founder Staff member Licensed User Longtime User Jan 20, 2014 #10 You should handle the Action event instead. Upvote 0
P positrom2 Active Member Licensed User Longtime User Jan 20, 2014 #11 Thank you. But how do I get the entered value? Somehow combining with _textchanged? Upvote 0
derez Expert Licensed User Longtime User Jan 20, 2014 #12 When the action is fired the text in the textfield is [textfield name].text Upvote 0