Android Question moving panel on edittext_click

RB Smissaert

Well-Known Member
Licensed User
Longtime User
Need to move a panel up to unhide a small edittext from the keyboard.

B4X:
Sub edtQRiskChol_Click
 pnlCalculators.Top = -160dip
 pnlCalculators.Invalidate
End Sub

This works fine on the second click, but not the first.
I tried all sorts of constructions, waiting loops, resumablesub etc. but no fix for this yet.
How should I do this?

RBS
 

RB Smissaert

Well-Known Member
Licensed User
Longtime User
Need to move a panel up to unhide a small edittext from the keyboard.

B4X:
Sub edtQRiskChol_Click
 pnlCalculators.Top = -160dip
 pnlCalculators.Invalidate
End Sub

This works fine on the second click, but not the first.
I tried all sorts of constructions, waiting loops, resumablesub etc. but no fix for this yet.
How should I do this?

RBS

All fixed now. Can do it via the FocusChanged event.

RBS
 
Upvote 0
Top