' adding a navigation bar
' ABMShared.BuildNavigationBar(page, "My Page","../images/logo.png", "", "", "")
' create the login container grid
Dim loginContainer As ABMContainer
loginContainer.Initialize(page, "containerlogin", "")
loginContainer.AddRows(4, True, "").AddCells12(1, "")
loginContainer.BuildGrid
Dim usernameInput As ABMInput
usernameInput.Initialize(page, "txtusername", ABM.INPUT_TEXT, "Username", False, "")
loginContainer.Cell(2,1).AddComponent(usernameInput)
Dim passwordInput As ABMInput
passwordInput.Initialize(page, "txtpassword", ABM.INPUT_PASSWORD, "Password", False, "")
loginContainer.Cell(3,1).AddComponent(passwordInput)
Dim loginButton As ABMButton
loginButton.InitializeRaised(page, "btnlogin", "", "", "Login", "")
loginButton.Size = "100%"
loginContainer.Cell(4,1).AddComponent(loginButton)
' create the page grid
page.AddRows(1,True,"").AddCells12(1,"")
page.AddRows(1,True,"").AddCellsOS(3,0,0,0,4,4,4,"")
page.AddRows(1,True,"").AddCells12(1,"")
page.BuildGrid ' IMPORTANT!
page.Cell(2,2).AddComponent(loginContainer)
page.BuildGrid