iOS Question SearchView and Event Page_Click

MarcoRome

Expert
Licensed User
Longtime User
If i have module SearchView and all work , but if i add this code

B4X:
Sub pg_Click
    pg.ResignFocus
End Sub

or this sub
B4X:
Sub pg_Click
    'pg.ResignFocus
End Sub


the event sv_ItemClick(Value As String) in NOT raised.
Any solution ??
Thank you
Marco
 
Last edited:
D

Deleted member 103

Guest
That's because it's like B4a.
If a Panel_Click is present, all elements under Panel will not get a Click event.
 
Upvote 0

MarcoRome

Expert
Licensed User
Longtime User
That's because it's like B4a.
If a Panel_Click is present, all elements under Panel will not get a Click event.
Hi Filippo, yes this is clear, i have already solved by adding a button on the keyboard to close it.
But i would like to know if there is a method to use the code above, by clicking on a part of the activity the keyboard is closed
 
Upvote 0
D

Deleted member 103

Guest
Hi Filippo, yes this is clear, i have already solved by adding a button on the keyboard to close it.
But i would like to know if there is a method to use the code above, by clicking on a part of the activity the keyboard is closed
I usually load a sv on a panel, and if i then click outside the sv, then i can close the keyboard.
 
Upvote 0
Top