B4A Question Does EditText have focus [Solved] - Roger Daley    
Apr 17, 2020Hi All,
Is there a way to determine if an EditText has focus? I don't want to change focus just find if the EditText has focus.
Regards Roger...
link:
jo.InitializeContext
jo = edittext
Dim hasfocus As Boolean = jo.RunMethod("hasFocus...
link: Thanks mangojack,
So obvious, so simple, for a minute or two I was looking for the trick.
Regard...
B4A Question Knowing which view (EditText) has focus - vecino    
Nov 7, 2023Hi, I have several EditText and I would like to know which of them has the focus.
How can I do it?
Thank you very much....
link: Thanks folks, all the proposed options work for me for what I need.
I didn't test correctly yest...
link: Or
Sub Button1_Click
If EditText1.As(JavaObject).RunMethod("hasFocus", Null) = True...
link: .As(JavaObject).RunMethod("getCurrentFocus", Null)
End Sub...
B4A Question Error when trying to set focus to an edittext in a clv - tsteward    
Nov 4, 2023I have a CLV and each row has a label as view(0) and an edittext as view(1)
When I use the following code to change focus from one edittext in one row to the edittext in the next row I get the error...
link: I had an issue with this in B4i. I have my own onscreen keyboard and it turns out ios won't sele...
link: panItem As Panel = clv.GetPanel(position2)
Dim txtETCutA As EditText = panItem.GetView(1...
link:
I have tried putting a transparent panel over the edittext and when clicked it returns the panel...
B4A Question How to force an EditText to loose the focus ? - marcick    
Apr 25, 2015The title should explain everything......
link: Hi all,
I don't know why fixit30 sample was working and the same trick on my project not. I have...
link: screen.
In the Designer EditText is set to ..
Visible = True
Enabled = False
and hidden beneath...
link: .
It does look like if the EditText is not Visible then it will not accept focus, however with my Sample...
B4A Question edittext loose focus - merlin2049er    
Oct 8, 2014I've got an edittext box, after an enter_pressed event (and done hit on the keyboard) the cursor still blinks on that edittext box.
How do I remove the focus from that box?...
link: Got it - Phone.HideKeyboard(Activity)...
link: I'm having a similar problem - I created an invisible editText and set the focus to that to...
link: Hi Robert,
You need to create a new thread for this question, and explain what you mean. Invoke b...
B4A Question EditText delete focus - Emme Developer    
May 4, 2017Hi to all! There is a way to delete focus from an edit text (and cursor)?...
link: else going insane for a few hours...
My similar problem was with EditText getting the focus and...
link: I did try to re-enable focus with the code below, but the EditText would not get focus anymore...
link: I understand this thread is old, but I feel it is important to report that once the EditText has...
B4A Question EditText1_FocusChanged - WDK    
Nov 17, 2017I am trying to hide my banner when the edittext1 has focus and show my banner on end focus of edittext1. I get a true in the HasFocus boolean, but never a false. How can I determine if my edittext1 no longer has focus?
Sub Activity_Create(FirstTime As Boolean)
EditText1.InputType = EditText1...
link: Most views never capture the focus.
This is what I thought to answer, yesterday, adding also...
link: Please use code here... tags when posting code.
Most views never capture the focus. The focus...
B4A Question Edittext Focus Issues - chrisinky (first post)    
Jun 28, 2017Thanks - it must be the keyboard.... using the IME library I'm able to filter out the duplicate...
link: Figured this might help explain...
Here is a video of the issue.
This is a brand new project, I drew...
link: I've tested it here with a Bluetooth keyboard and it works properly.
I think that this error i...
link: You can use the Accessibility library to explicitly set the focus order.
Thanks Erel - I saw...
B4A Question EditText focus issue - kickaha    
Jun 20, 2011 that stored the current EditText that had focus.
So, I came up with the test code below... to one of the EditTexts, when you swap the focus between them (by tapping on the screen....
'These variables can only be accessed from this module.
Dim Edit1 As EditText
Dim Edit2 As EditText
Dim CurrentEdit As EditText
End Sub
Sub Activity_Create(FirstTime As Boolean...
link: As Boolean)
Dim e As EditText
e = Sender
If HasFocus Then CurrentEdit = e
End Sub...
B4A Question Problem with focus on EditText - Xfood (first post)    
Nov 3, 2022ok thanks for your feedback...
link: Hi, I didn't have any time for switch to B4XPages; I managed a little bit of variables for my sc...
link: focus management problems with terminals equipped with a hardware keyboard...
link:
Don't use activities. Switch to B4XPages. It will probably solve the issue you describe as it i...
Page: 1  
2  
3  
4