Sub BuildpidBox() As ABMModalSheet
Dim msgbox As ABMModalSheet
msgbox.Initialize(page, "pidbox", True, ABM.MODALSHEET_TYPE_NORMAL,"")
msgbox.Size = ABM.MODALSHEET_SIZE_NORMAL
msgbox.IsDismissible = False
msgbox.Content.AddRowsM( 1, True, 0,20, "").AddCells12(1, "")
msgbox.Content.AddRows( 8 , True, "").AddCellsOSMP(1,0,0,0,4,4,4,0,0,0,0, "").AddCellsOSMP(1,0,0,0,4,4,4,0,0,0,0, "").AddCellsOSMP(1,0,0,0,4,4,4,0,0,0,0, "") '.AddCellsOSMP(1,0,0,0,3,3,3,0,0,0,0, "")
msgbox.Content.AddRows( 1 , True, "").AddCellsOSMP(4,0,0,0,3,3,3,0,0,0,0, "") '.AddCellsOSMP(1,0,0,0,4,4,4,0,0,0,0, "").AddCellsOSMP(1,0,0,0,3,3,3,0,0,0,0, "") .AddCellsOSMP(1,0,0,0,3,3,3,0,0,0,0, "")
msgbox.Content.AddRowsM( 1, True, 0,10, "").AddCells12(1, "")
msgbox.Content.BuildGrid
' add paragraph
msgbox.Content.Cell(1,1).AddComponent(ABMShared.BuildParagraphBQWithZDepth(page,"par1","Choose PID Items to Display (Maximum 4 Items in Total)") )
Dim flag1 As ABMInput
flag1.Initialize(page,"flag1",ABM.INPUT_NUMBER,"PID Flag 1",False,"")
flag1.Text = 0
msgbox.Content.Cell(10,1).AddComponent(flag1)
Dim flag2 As ABMInput
flag2.Initialize(page,"flag2",ABM.INPUT_NUMBER,"PID Flag 2",False,"")
flag2.Text = 0
msgbox.Content.Cell(10,2).AddComponent(flag2)
Dim flag3 As ABMInput
flag3.Initialize(page,"flag3",ABM.INPUT_NUMBER,"PID Flag 3",False,"")
flag3.Text = 0
msgbox.Content.Cell(10,3).AddComponent(flag3)
Dim flag4 As ABMInput
flag4.Initialize(page,"flag4",ABM.INPUT_NUMBER,"PID Flag 4",False,"")
flag4.Text = 0
msgbox.Content.Cell(10,4).AddComponent(flag4)
msgbox.Content.Cell(11,1).AddComponent(ABMShared.BuildParagraphBQWithZDepth(page,"par2","Select PIDs in the order you which them to appear in the legend. For example, turn all PIDs OFF. For RPM as first, select Engine Revs; for Speed as second, select ECM Speed, etc...") )
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 msgok As ABMButton
msgok.InitializeFlat(page, "pidok", "mdi-navigation-check", ABM.ICONALIGN_LEFT, "OK", "transparent")
msgbox.Footer.Cell(1,1).AddComponent(msgok)
Log(" in pidbox build")
Return msgbox
End Sub