B4J Question [B4J] close form

ivanomonti

Expert
Licensed User
Longtime User
I create a form in code and I would like the closeform event to fire when the form is closed, but I have no idea how to proceed, do you have an example to follow?

B4X:
    Dim wf_chat As Form
    wf_chat.Initialize("wf_chat",600,600)
    wf_chat.RootPane.LoadLayout("frame_chat")
    wf_chat.Resizable=False
    wf_chat.Title = "Chat AI-MIASMART"
    wf_chat.Show
 

Daestrum

Expert
Licensed User
Longtime User
Possibly

B4X:
Sub wf_chat_CloseRequest (EventData As Event)
    ' do things here
End Sub
 
Upvote 0
Top