public Sub ConnectPage()
' connecting the navigation bar
ABMShared.ConnectNavigationBar3(page)
Container1.Initialize(page, "nrfcontainer", "snaptable")
Dim lblTitle As ABMLabel
lblTitle.Initialize(page, "nrftitle", "Select COM Port to Connect To", ABM.SIZE_H4, True, "centro")
btnUp.InitializeRaised(page, "btnUp", "", ABM.ICONALIGN_CENTER, "App Up", "centre")
btnDown.InitializeRaised(page, "btnDown", "", ABM.ICONALIGN_CENTER, "App Down", "centre")
btnHalt.InitializeRaised(page, "btnHalt", "", ABM.ICONALIGN_CENTER, "Halt", "centre")
txtCommand.Initialize(page, "nrfCommand", ABM.INPUT_TEXT, "NRF Commands", True, "centre")
'''txtLogs.Initialize(page, "txtLogs", "", ABM.SIZE_PARAGRAPH, True, "centre")
txtLogs.Initialize(page, "custLog", "100px")
''txtLogs.FixedWidth = True
btnUp.Enabled = False
btnDown.Enabled = False
btnHalt.Enabled = False
Dim cmbBox As ABMCombo
cmbBox.Initialize(page, "nrfCombo", "Select Com Port", 200, "centre")
ports = Main.serial.ListPorts
If ports.Size > 0 Then
For Each comport As String In ports
Dim lblport As ABMLabel
lblport.Initialize(page, "lbl-"&comport, comport, ABM.SIZE_H6, True, "centre")
cmbBox.AddItem(comport, comport, lblport)
Next
End If
#Region NOT SAVED: 2023-03-20T11:46:16
'PHONE
'TABLET
'DESKTOP
Container1.AddRowsV(1,True,ABM.VISIBILITY_ALL,"centre").AddCellsOSV(1,2,2,2,8,8,8,ABM.VISIBILITY_ALL,"centre")
Container1.AddRowsV(1,True,ABM.VISIBILITY_ALL,"centre").AddCellsOSV(1,3,3,3,2,2,2,ABM.VISIBILITY_ALL,"centre").AddCellsOSV(2,0,0,0,2,2,2,ABM.VISIBILITY_ALL,"centre")
Container1.AddRowsV(1,True,ABM.VISIBILITY_ALL,"centre").AddCellsOSV(1,3,3,3,6,6,6,ABM.VISIBILITY_ALL,"centre")
Container1.AddRowsV(1,True,ABM.VISIBILITY_ALL,"centre").AddCellsOSV(1,3,3,3,2,2,2,ABM.VISIBILITY_ALL,"centre").AddCellsOSV(1,2,2,2,2,2,2,ABM.VISIBILITY_ALL,"centre")
Container1.AddRowsV(100,True,ABM.VISIBILITY_ALL,"centre").AddCellsOSV(1,3,3,3,6,6,6,ABM.VISIBILITY_ALL,"centre")
Container1.SetBorder(ABM.COLOR_BLACK, ABM.INTENSITY_DARKEN4, 2, ABM.BORDER_OUTSET)
Container1.SetFixedHeight("650px")
Container1.BuildGrid ' IMPORTANT!
#End Region
Container1.Cell(1, 1).AddComponent(lblTitle)
Container1.Cell(2, 1).AddComponent(btnUp)
Container1.Cell(2,2).AddComponent(btnDown)
Container1.Cell(2,3).AddComponent(btnHalt)
Container1.Cell(3,1).AddComponent(cmbBox)
Container1.Cell(5, 1).AddComponent(txtCommand)
Container1.Cell(6,1).AddComponent(txtLogs.ABMComp)
''page.Cell(1,1).AddComponent(txtLogs.ABMComp)
page.Cell(1,1).AddComponent(Container1)
'''page.Cell(2, 1).AddComponent(cmbBox)
' refresh the page
page.Refresh
' Tell the browser we finished loading
page.FinishedLoading
' restoring the navigation bar position
page.RestoreNavigationBarPosition
End Sub