ListBox GotFocus / LostFocus are broken in v6.90

Erel

B4X founder
Staff member
Licensed User
Longtime User
There is a bug in v6.9 that breaks these events in the IDE.
The current workaround is to use the Door library to attach these events.

The code required is (code is attached):
B4X:
Sub App_Start
    Form1.Show
    object1.New1(False)
    object1.FromControl("listbox1")
    GotFocusEvent.New1(object1.Value, "GotFocus")
    LostFocusEvent.New1(Object1.Value, "LostFocus")
End Sub
Sub GotFocusEvent_NewEvent
    form1.Text = "listbox gotfocus"
End Sub
Sub LostFocusEvent_NewEvent
    form1.Text = "listbox lostfocus"
End Sub

A fix will be available in the next update.
Please contact me at erel@basic4ppc.com if you need a fixed version immediately.
 

Attachments

  • ListBox_Focus.sbp
    961 bytes · Views: 355
Top