B4X:
#Region Project Attributes
#MainFormWidth: 600
#MainFormHeight: 600
#End Region
Sub Process_Globals
Private fx As JFX
Private MainForm As Form
Private xui As XUI
Private Button1 As Button
End Sub
Sub AppStart (Form1 As Form, Args() As String)
MainForm = Form1
MainForm.RootPane.LoadLayout("Layout1")
MainForm.Show
MainForm.Stylesheets.Add( File.GetUri(File.DirAssets, "Buttons.css") )
Button1.Id="mybutton" ' < -------------------------- done in code , could be done on the designer? for css purposes
End Sub
Sub Button1_Click
xui.MsgboxAsync("Hello World!", "B4X")
End Sub