B4J Tutorial [ABMaterial]: How to fit ABMGoogleMap to RC with SetFixedHeightFromBottom?

Discussion in 'B4J Tutorials' started by Mashiane, May 31, 2018.

  1. Mashiane

    Mashiane Expert Licensed User


    I have created an RC(2,1) and page.Cell(2,1).SetFixedHeightFromBottom(20, False)

    The height of my ABMGoogleMap is 500 (int) however I want it to fit the whole RC, taking the whole page area.

    Fortunately, there is a .SetStyleProperty call in ABM. So...

    After page.Refresh does the magic on my connect page.

    My page grid is...

    ' create the page grid
        page.AddRowsM(1,False,0,20,"").AddCellsOSMPV(10001212120000, ABM.VISIBILITY_ALL, "")
    page.AddRowsM(1,False,0,20,"").AddCellsOSMPV(1000121212002020, ABM.VISIBILITY_ALL, "")
    page.BuildGrid 'IMPORTANT once you loaded the complete grid AND before you start adding components
    Johan Hormaza, magi6162, Erel and 2 others like this.
  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