B4J Question B4XPreferencesDialog - Cross platform forms

NikB4x

Member
Licensed User
Longtime User
Is it possible (in B4J) to set the focus on the first field of the form at start?
Thanks,
 

Erel

B4X founder
Staff member
Licensed User
Longtime User
The exact details depend on your form's layout.

Example of setting the focus on the 6th item which is an item made of a B4XFloatTextField.
B4X:
Dim sf As Object = p.ShowDialog(CreateMap(), "OK", "CANCEL")
Sleep(0)
Dim tf As B4XFloatTextField = p.CustomListView1.GetPanel(5).GetView(0).Tag 
tf.TextField.RequestFocus
Wait For (sf) Complete (Result As Int)
 
Upvote 0
Top