Wish button to create project [B4X] B4XPages - Cross platform

Lucas Siqueira

Active Member
Licensed User
Longtime User
Hello Erel, you have done an excellent job with B4X!
When possible, include in B4A, B4I, B4J a button to create project [B4X] B4XPages - Cross platform, so for those who start in b4x it would be faster to start a project.

Another suggestion is in the event B4XPages.AddPage (_, _) I could already put to start the class of the page that is being passed by parameter... thus reducing a line of code, in addition to being simpler and more beautiful, And would not be at risk of person forgets to boot.

In an app with 10 pages, it will be 20 lines ... in this new way it would be only 10 lines.
 

Attachments

  • WhatsApp Image 2020-06-13 at 09.55.55.jpeg
    WhatsApp Image 2020-06-13 at 09.55.55.jpeg
    28.4 KB · Views: 303

Erel

B4X founder
Staff member
Licensed User
Longtime User
Lets start with the second request, the template of B4XPage classes will be updated with:
B4X:
Public Sub Initialize As Object
    Return Me
End Sub

This will allow you to add the pages with:
B4X:
B4XPages.AddPage("Page 2", Page2.Initialize)
B4XPages.AddPage("Page 3", Page3.Initialize)

About the first request, I plan to add support for project templates. It will probably be included in the next version.
 

Lucas Siqueira

Active Member
Licensed User
Longtime User
Thank you!

You have done an excellent job! Congratulations and lots of success!

Lets start with the second request, the template of B4XPage classes will be updated with:
B4X:
Public Sub Initialize As Object
    Return Me
End Sub

This will allow you to add the pages with:
B4X:
B4XPages.AddPage("Page 2", Page2.Initialize)
B4XPages.AddPage("Page 3", Page3.Initialize)

About the first request, I plan to add support for project templates. It will probably be included in the next version.
 
Top