Sub BuildDateBox() As ABMModalSheet
Dim msgbox As ABMModalSheet
msgbox.Initialize(page, "datebox", False, False,"")
msgbox.IsDismissible = False
'msgbox.Size = ABM.MODALSHEET_SIZE_LARGE
msgbox.Content.AddRowsM(2, True,0,0, "").AddCells12(1, "")
msgbox.Content.AddRows(1 , True, "") .AddCellsOSMP(1,0,0,0,6, 6,6, 0, 0,0,0, "").AddCellsOSMP(1,0,0,0,6,6,6,0,0,0,0, "")
' msgbox.Content.AddRowsM(1, True,20,0, "").AddCells12(1, "")
msgbox.Content.BuildGrid
' add paragraph
'msgbox.Content.CellR(0,1).AddComponent(ABMShared.BuildParagraph(page,"par1"," Set Date Range") )
msgbox.Content.CellR(0,1).AddComponent(ABMShared.BuildParagraphBQWithZDepth(page,"par1"," Set New Meeting Date and Name (or recall past meeting)") )
' msgbox.Footer.AddRowsM ( 1,False,0,0, "").AddCellsOS(1,0,0,0,6,6,6,"").AddCellsOS(1,0 ,0,0,6,6,6, "")
' msgbox.Footer.BuildGrid 'IMPORTANT once you loaded the complete grid AND before you start adding components
Dim dt As String
dt = DateTime.DateFormat
DateTime.DateFormat = "MMMM dd, yyyy"
Dim mtlist As ABMCombo
mtlist.Initialize(page,"mtlist1","SELECT EXISTING DATE",150,"")
msgbox.Content.CellR(1,1).AddComponent(mtlist)
Dim startdate As ABMDateTimePicker
startdate.Initialize(page, "startdate",ABM.DATETIMEPICKER_TYPE_DATE ,qsd,"MEETING DATE","")
startdate.ClickThrough = True
' startdate.SetDate(qsd)
'startdate.Refresh
msgbox.Content.CellR(1,1).AddComponent(startdate)
Dim pub1 As ABMInput
pub1.Initialize(page,"meetname",ABM.INPUT_TEXT,"Meeting Name",False,"")
pub1.Text = DateTime.Date(qsd)
msgbox.Content.CellR(0,2).AddComponent(pub1)
DateTime.DateFormat = dt
' Dim enddate As ABMDateTimePicker
' enddate.Initialize(page, "enddate",ABM.DATETIMEPICKER_TYPE_DATE , qed," END DATE","")
' enddate.SetDate(qed)
' msgbox.Content.CellR(0,2).AddComponent(enddate)
' create the buttons for the footer
msgbox.Footer.AddRowsM(1,True,0,0, "").AddCellsOS(1,6,6,6,3,3,3,"").AddCellsOS(1,0,0,0,3,3,3, "")
msgbox.Footer.BuildGrid 'IMPORTANT once you loaded the complete grid AND before you start adding components
' create the buttons for the footer
Dim msgyes As ABMButton
msgyes.InitializeFlat(page, "dateok", "", "", "OK", "transparent")
msgbox.Footer.Cell(1,1).AddComponent(msgyes)
Dim msgno As ABMButton
msgno.InitializeFlat(page, "datecancel", "", "", "Cancel", "transparent")
msgbox.Footer.Cell(1,2).AddComponent(msgno)
' Dim msgok As ABMButton
' msgok.InitializeFlat(page, "dateok", "mdi-navigation-check", ABM.ICONALIGN_LEFT, "OK", "transparent")
' msgbox.Footer.Cell(1,1).AddComponent(msgok)
Return msgbox
End Sub