#Region Project Attributes
#MainFormWidth: 600
#MainFormHeight: 600
#End Region
Sub Process_Globals
Private fx As JFX
Private MainForm As Form
Public Xmax,Ymax, MouseX, MouseY As Float
Public Global As ClassGlobal
Private mFooter As B4XView
Private mMenuBar As B4XView
Private mBase As B4XView
Private mMessagePane As B4XView
Private mScrollPane As ScrollPane
Private FooterPane As B4XView
#region drag&drop
Public DragDrop As DragAndDrop
Public idDragDrop, fullnameDragDrop As String
#end region
#region login
Public usernamelogin As String = Null
Public passwordlogin As String = Null
Public idlogin As String = Null
Public phonelogin As String = Null
Public maillogin As String = Null
#end region
End Sub
Sub AppStart (Form1 As Form, Args() As String)
Global.Initialize
MainForm = Form1
MainForm.Stylesheets.Add(File.GetUri(File.DirAssets,"css-33.css"))
MainForm.Title="Lavagna v 1.0.0.1"
MainForm.RootPane.LoadLayout("layout1") 'Load the layout file.
mBase = Global.xui.CreatePanel("mbase")
Global.mBaseSize(mBase,2000,2000)
mScrollPane.InnerNode=mBase
mFooter.LoadLayout("mFooter")
MainForm.Show
If Global.ToastMessage(mMessagePane,"Welcome back, I'm getting organized for work.") = True Then
End If
Global.mMenu_menu(mMenuBar,"Action",Array As String("Login","Close"))
Global.mMenu_menu(mMenuBar,"Modules",Array As String("Organizer","Calendar"))
Global.mMenu_menu(mMenuBar,"Additional modules",Array As String(""))
End Sub
Sub Application_Error (Error As Exception, StackTrace As String) As Boolean
Return True
End Sub
Sub mMenuBar_Action
End Sub
Sub FooterButtonClose_MouseClicked (EventData As MouseEvent)
MainForm.Close
End Sub