iOS Question IsideMenu and CustomListView

Discussion in 'iOS Questions' started by ciginfo, Mar 6, 2015.

  1. ciginfo

    ciginfo Active Member Licensed User

    I have not very well understood how IsideMenu works. Can I put a CustomListView inside a ISideMenu ? Or what form should add the items in the ISideMenu? images? Labels?
    For example A Label1 on the IsideMenu pageThen:
    Code:
    Sub Label1_Click
        nc.ShowPage(MyPage1)
    End Sub
     
  2. narek adonts

    narek adonts Well-Known Member Licensed User

    The menu pages are regular pages so you can add whatever you want. Like MenuPage.rootpanel.addview(...)

    You shold add Navigation Controller to the iSideMenu.

    Code:
    Sub Process_Globals
        
    'These global variables will be declared once when the application starts.
        'Public variables can be accessed from all modules.
        Public App As Application
        
    Public NavControl As NavigationController
        
    Private Page1 As Page
        
    Dim SideMenu As SideMenuController
        
    Dim pgLeft,pgRight As Page
    End Sub

    Private Sub Application_Start (Nav As NavigationController)
        Page1.Initialize(
    "Page1")
        Page1.Title = 
    "Page 1"
        Page1.RootPanel.Color = 
    Colors.White
       
       
        pgLeft.Initialize(
    "pgLeft")
        pgLeft.RootPanel.Color=
    Colors.Green
       
       
        
    Dim label1 As Label
        label1.Initialize(
    "label1")
        label1.Text=
    "Test"
        pgLeft.RootPanel.AddView(label1,
    5,5,50,30)
       
        NavControl.Initialize(
    "NavControl")
        SideMenu.Initialize(pgLeft,NavControl,
    Null)
        SideMenu.OpenGesturesEnabled=
    True
       
        App.KeyController=SideMenu
        NavControl.ShowPage(Page1)
    End Sub
    Narek
     
  3. ciginfo

    ciginfo Active Member Licensed User

    OK, Thank you.
    François
     
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