iOS Question Panel and scrollview

Discussion in 'iOS Questions' started by ginsh, Jun 14, 2019.

  1. ginsh

    ginsh Member Licensed User


    Anyone please let me know how to add to page a panel with scrollview. I tried to add the scrollview to the panel but the buttons and the other views are getting disabled.

    Can anyone share a simple example.
  2. hatzisn

    hatzisn Active Member Licensed User

    You can do it with the designer - the easy way - or with this code:

    Dim pnl as Panel
    Dim scv as ScrollView

    pnl.Width = 
    pnl.Peight = 

    scv.Width = 
    scv.Height = 

    pnl.AddView(scv, ..........)
    Page1.Rootpanel.AddView(pnl, ............)

    If you did this I do not understand why are the buttons disabled...
  3. ginsh

    ginsh Member Licensed User

    Hi All,

    Still I am unable to make scroll view work. I have attached one sample code. Anyone please add for me a scroll view in the sample project to the "Connect page".

    Thanks in advance.

    Attached Files:

  4. Andrew (Digitwell)

    Andrew (Digitwell) Active Member Licensed User

    Your problem is how you were using the scroll view.
    The panel needs to be loaded inside the scrollview and the size of the contents needs to be set correctly.

    Normally, I create the scrollview as its own layout and then load the panel and its contents inside.

    I have updated your program to fix.

    Also you did not release the canvas.

    Attached Files:

  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