'Non-UI application (console / server application)
#Region Project Attributes
#CommandLineArgs:
#MergeLibraries: True
#End Region
Sub Process_Globals
Public srvr As Server
End Sub
Sub AppStart (Args() As String)
' the user needs to login
'ABMShared.NeedsAuthorization = True
' Build the Theme
ABMShared.BuildTheme("mytheme")
' create the app
Dim myApp As ABMApplication
myApp.Initialize
' create the pages
Dim myPage As ABMPageTemplate
myPage.Initialize
' add the pages to the app
myApp.AddPage(myPage.Page)
Public page As ABMPage
Private ABM As ABMaterial
page.AddRows(2, True,"").AddCellsOS(1,0,0,0,5,5,5,"").AddCellsOS(1,0,0,0,7,7,7,"")
page.AddRows(1, True,"").AddCells12(1,"")
page.BuildGrid ' IMPORTANT!
Dim btn4 As ABMButton
btn4.Initializefloating(page, "btn4", "mdi-image-palette", "darkred")
btn4.size = ABM.BUTTONSIZE_LARGE
page.Cell(2,1).AddComponent(btn4)
' start the server
myApp.StartServer(srvr, "srvr", 51042)
'ABMShared.RedirectOutput(File.DirApp, "logs.txt")
StartMessageLoop
End Sub