The new custom class customview does not trigger the Click event.
ImageButton Is a custom class name that creates an icon button ImageButton1 in B4xPage, but its Click event does not respond.
The following code is used in the class:
The following code is used in the B4xPage:
The Click event attribute was added to the class module:
#Event:Click
ImageButton Is a custom class name that creates an icon button ImageButton1 in B4xPage, but its Click event does not respond.
The following code is used in the class:
B4X:
Private Sub mBase_Click
If SubExists(mCallBack, mEventName & "_Click") Then
CallSubDelayed(mCallBack, mEventName & "_Click")
End If
End Sub
The following code is used in the B4xPage:
B4X:
Private Sub ImageButton1_Click
xui.MsgboxAsync("Hello world!", "B4X")
End Sub
The Click event attribute was added to the class module:
#Event:Click