Dim MyModal As ABMModalSheet
MyModal.Initialize(appPage,"addUserModal",False,ABM.MODALSHEET_SIZE_FULL,"")
MyModal.Header.UseTheme("modalheader")
MyModal.Content.UseTheme("modalcontent")
MyModal.Footer.UseTheme("modalfooter")
MyModal.MaxWidth = "600px"
MyModal.IsDismissible = False
MyModal.Header.AddRowsM2(1,True,0,0,0,0,"celcenterallign").AddCellsOS(1,2,2,2,7,7,7,"celcenterallign").AddCellsOS(1,1,1,1,1,1,1,"")
MyModal.Header.BuildGrid ' IMPORTANT!
MyModal.Header.PaddingTop = "0px"
MyModal.Header.PaddingBottom = "0px"
MyModal.Header.PaddingLeft = "0px"
MyModal.Header.PaddingRight = "0px"
MyModal.Header.MarginTop = "0px"
MyModal.Header.MarginBottom = "0px"
MyModal.Header.MarginLeft = "0px"
MyModal.Header.MarginBottom = "0px"
MyModal.Header.Row(1).SetFixedHeight(50,False)
MyModal.Header.Row(1).Refresh
Dim headerLabel As ABMLabel
headerLabel.Initialize(appPage,"addHeaderLabel","Adicionar Usuários",ABM.SIZE_H6,False,"fontwhite")
MyModal.Header.Cell(1,1).AddComponent(headerLabel)
Dim btnCancelAddUser As ABMButton
btnCancelAddUser.InitializeFloating(appPage,"btnCancelAddUser","mdi-navigation-cancel","")
MyModal.Header.Cell(1,2).MarginTop = "10px"
MyModal.Header.Cell(1,2).Refresh
MyModal.header.Cell(1,2).AddComponent(btnCancelAddUser)
Dim tabsAddUser As ABMTabs
tabsAddUser.Initialize(appPage,"tabsAddUser","")
tabsAddUser.AddTab("tabAddUser1","Adicionar por E-Mail",BuildTabAddUserContainer(appPage,"tabAddUser1","Adicionar por E-Mail"),3,3,3,12,12,12,True,True,"","")
tabsAddUser.AddTab("tabAddUser2","Buscar Usuários",BuildTabAddUserContainer(appPage,"tabAddUser2","Buscar Usuários"),3,3,3,12,12,12,True,True,"","")
' create the grid for the content
MyModal.Content.AddRowsM(1,True,0,0,"").AddCells12(1,"")
MyModal.Content.AddRowsMV(4,True,0,0,ABM.VISIBILITY_HIDE_ALL,"").AddCellsOS(1,0,0,0,6,6,6,"").AddCellsOSMP(1,0,0,0,1,1,1,30,0,0,0,"").AddCellsOS(1,1,1,1,1,1,1,"")
MyModal.Content.BuildGrid 'IMPORTANT once you loaded the complete grid AND before you start adding components
MyModal.Content.Cell(1,1).AddComponent(tabsAddUser)
'MyModal.Footer.AddRowsM(1,True,0,0,"").AddCellsOS(2,2,2,2,3,3,3,"celcenterallign")
'MyModal.Footer.BuildGrid 'IMPORTANT once you loaded the complete grid AND before you start adding components
Return MyModal