Wish New class type: form class

LucaMs

Expert
Licensed User
Longtime User
Although it is always better to create B4XPages projects, if you want to create a classic project...





The default template I think might look like this:
B4X:
Sub Class_Globals
    Private fx As JFX
    Private frm As Form
End Sub

'Initializes the object. You can add parameters to this method if needed.
Public Sub Initialize(Parent As Form)
    frm.Initialize("frm", 500, 460)
    frm.RootPane.LoadLayout("layForm1")
    frm.SetOwner(Parent)
End Sub

Public Sub Show
    frm.Show
End Sub

Public Sub ShowAndWait As Object
    Dim Result As Object
    frm.ShowAndWait
    Return Result
End Sub

Sub frm_CloseRequest (EventData As Event)
    'EventData.Consume
End Sub
 

Star-Dust

Expert
Licensed User
Longtime User
1 - that's for B4A
2 - it is much better that the IDE provides it
1. No it is for B4J and B4A
2. Sure

see here
 
Cookies are required to use this site. You must accept them to continue using the site. Learn more…