Private Sub BuildModalSheetmsCalendarLegends() As ABMModalSheet
Dim msCalendarLegends As ABMModalSheet
msCalendarLegends.Initialize(page, "msCalendarLegends", True, ABM.MODALSHEET_TYPE_NORMAL, "")
msCalendarLegends.Size = ABM.MODALSHEET_SIZE_NORMAL
msCalendarLegends.IsDismissible = False
msCalendarLegends.IsTextSelectable = True
msCalendarLegends.Footer.AddRowsM(1, True, 0, 0, "").AddCellsOS(1, 0, 0, 0, 12, 12, 12, "")
msCalendarLegends.Header.AddRowsM(1, True, 0, 0, "").AddCellsOS(1, 0, 0, 0, 12, 12, 12, "")
msCalendarLegends.Content.AddRowsM(5, True, 0, 0, "").AddCellsOS(1, 0, 0, 0, 12, 12, 12, "")
msCalendarLegends.Header.BuildGrid 'IMPORTANT once you loaded the complete grid AND before you start adding components
msCalendarLegends.Content.BuildGrid 'IMPORTANT once you loaded the complete grid AND before you start adding components
msCalendarLegends.Footer.BuildGrid 'IMPORTANT once you loaded the complete grid AND before you start adding components
'Add components to ModalSheet
Dim lblCalendarLegends As ABMLabel
lblCalendarLegends.Initialize(page, "lblCalendarLegends", "{NBSP}Add / Edit Calendar Legend", ABM.SIZE_H5, False, "whitefc")
msCalendarLegends.Header.Cell(1,1).AddComponent(lblCalendarLegends)
Dim txtCalendarLegendsTitle As ABMInput
txtCalendarLegendsTitle.Initialize(page, "txtCalendarLegendsTitle", ABM.INPUT_TEXT, "Title", False, "")
msCalendarLegends.Content.Cell(2,1).AddComponent(txtCalendarLegendsTitle)
Dim cboCalendarLegendsTextColor As ABMCombo
cboCalendarLegendsTextColor.Initialize(page, "cboCalendarLegendsTextColor", "Text Color", 650, "")
cboCalendarLegendsTextColor.DataBelow = ABM.COMBO_DATA_BELOWINPUT
cboCalendarLegendsTextColor.IsValid = ABM.VALID_TRUE
msCalendarLegends.Content.Cell(2,1).AddComponent(cboCalendarLegendsTextColor)
Dim cboCalendarLegendsTextColorIntensity As ABMCombo
cboCalendarLegendsTextColorIntensity.Initialize(page, "cboCalendarLegendsTextColorIntensity", "Text Color Intensity", 650, "")
cboCalendarLegendsTextColorIntensity.DataBelow = ABM.COMBO_DATA_BELOWINPUT
cboCalendarLegendsTextColorIntensity.IsValid = ABM.VALID_TRUE
msCalendarLegends.Content.Cell(2,1).AddComponent(cboCalendarLegendsTextColorIntensity)
Dim cboCalendarLegendsBackgroundColor As ABMCombo
cboCalendarLegendsBackgroundColor.Initialize(page, "cboCalendarLegendsBackgroundColor", "Background Color", 650, "")
cboCalendarLegendsBackgroundColor.DataBelow = ABM.COMBO_DATA_BELOWINPUT
cboCalendarLegendsBackgroundColor.IsValid = ABM.VALID_TRUE
msCalendarLegends.Content.Cell(2,1).AddComponent(cboCalendarLegendsBackgroundColor)
Dim cboCalendarLegendsBackgroundColorIntensity As ABMCombo
cboCalendarLegendsBackgroundColorIntensity.Initialize(page, "cboCalendarLegendsBackgroundColorIntensity", "Background Color Intensity", 650, "")
cboCalendarLegendsBackgroundColorIntensity.DataBelow = ABM.COMBO_DATA_BELOWINPUT
cboCalendarLegendsBackgroundColorIntensity.IsValid = ABM.VALID_TRUE
msCalendarLegends.Content.Cell(2,1).AddComponent(cboCalendarLegendsBackgroundColorIntensity)
Dim btnApplyCalendarLegends As ABMButton
btnApplyCalendarLegends.InitializeFlat(page, "btnApplyCalendarLegends", "", "", "Save", "transparent")
btnApplyCalendarLegends.Size = ABM.BUTTONSIZE_NORMAL
msCalendarLegends.Footer.Cell(1,1).AddComponent(btnApplyCalendarLegends)
Dim btnCancelCalendarLegends As ABMButton
btnCancelCalendarLegends.InitializeFlat(page, "btnCancelCalendarLegends", "", "", "Cancel", "transparent")
btnCancelCalendarLegends.Size = ABM.BUTTONSIZE_NORMAL
msCalendarLegends.Footer.Cell(1,1).AddComponent(btnCancelCalendarLegends)
Return msCalendarLegends
End Sub