B4J Question [ABMaterial} ABMcombo in NavigationBar

Discussion in 'B4J Questions' started by alienhunter, Nov 1, 2018.

  1. alienhunter

    alienhunter Active Member Licensed User

    Hi ,
    i got a combo in the navigation bar, question is can expand this to see the items ?
    thanks AH combo.JPG

    Code:
    page.NavigationBar.AddSideBarComponent("comm",BuildSideBarComponent(page,"bardrop"),"Combo1")

    Public Sub BuildSideBarComponent(pagex As ABMPage, id As StringAs ABMContainer
        
    Dim ItemCont As ABMContainer
        ItemCont.Initialize(
    pageid"")
        ItemCont.SetFixedHeight(
    "600")

        ItemCont.AddRowsM(
    1,True,-20,0,"").AddCellsOS(1,0,0,0,7,7,12,"")
        ItemCont.BuildGrid 
    ' IMPORTANT!

        
    Dim combo1 As ABMCombo
        combo1.Initialize(
    page"combo1""Select a {B}person{/B}"1600"combo")
        combo1.Valid = ABM.VALID_FALSE
        
    'combo1.PlaceHolderText = "{NBSP}"
        combo1.WrongMessage = "SELECT  USER"
        combo1.IconName = 
    "mdi-action-account-circle"
       
        combo1.AddItem(
    "combo1S1""Mom", BuildSimpleItem("S1""mdi-action-account-circle""{NBSP}{NBSP}Mom"))
        combo1.AddItem(
    "combo1S2""Dad", BuildSimpleItem("S2""mdi-action-account-circle""{NBSP}{NBSP}Dad"))
        combo1.AddItem(
    "combo1S3""Brother", BuildSimpleItem("S3""mdi-action-dashboard""{NBSP}{NBSP}Brother"))
        combo1.AddItem(
    "combo1S4""Sister", BuildSimpleItem("S4""mdi-action-dashboard""{NBSP}{NBSP}Sister"))
       
       
        ItemCont.Cell(
    1,1).AddComponent(combo1)
        
    Return ItemCont
    End Sub
     
  2. Harris

    Harris Well-Known Member Licensed User

    Pardon moi? Never heard of such possibility...

    ab... What do you make of such? ABMCombo - I guess it is possible.
    Well beyond my scope of comprehension of what is being asked...
     
    alienhunter likes this.
  3. Mashiane

    Mashiane Expert Licensed User

    What happens if you set the z-index attribute of the combo, wouldnt it sit on top perhaps?
     
  4. alienhunter

    alienhunter Active Member Licensed User

    Hi
    so the scope is not to have all users listed in the navbar but still have them all in the navbar in a combo, makes sense ? :)
    @ Mashiane thanks i will try
     
Loading...
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice