iOS Question scrollview does not work

Discussion in 'iOS Questions' started by Ramezanpour, Mar 18, 2015.

Similar threads

B4i Question ScrollView Layout not scrolling
B4i Question how to use scrollview?
B4i Question need info about Page_Resize Sub
B4i Question Round Button
B4i Question ScrollView and SizeToFit
  1. Ramezanpour

    Ramezanpour Active Member Licensed User

    Hi
    Excuse me.
    scrollview does not work


    Code:
    ScrollView1.ContentWidth= ScrollView1.Width
        ScrollView1.ContentHeight=ScrollView1.Height
        ScrollView1.Panel.LoadLayout(
    "L8")
    I can't Scroll
    Scrolling does not work
     
  2. omidaghakhani1368

    omidaghakhani1368 Well-Known Member Licensed User

    Hi.
    Please attention!!!
    You have seted inner panel height equal to scrollview height
    So you scrollview dont have scroll.
    Please change ScrollView1.ContentHeight=ScrollView1.Height to ScrollView1.ContentHeight= 800 for exmaple and retest it
     
    Ramezanpour likes this.
  3. Ramezanpour

    Ramezanpour Active Member Licensed User

    does not work
     
  4. klaus

    klaus Expert Licensed User

    You need to post more code.
    What do you have in 'L8' layout ?
    Or post a small example, as a zip file, showing your problem.
     
    Ramezanpour likes this.
  5. Ramezanpour

    Ramezanpour Active Member Licensed User

    only one label!
     
  6. davepamn

    davepamn Active Member Licensed User

    Code:
    Private Sub Page1_Resize(Width As Int, Height As Int)

        
    If ScrollViewInput.IsInitialized=True Then

            ScrollViewInput.Height=
    100%y

            ScrollViewInput.ContentHeight=
    1900%y

            ScrollViewInput.ContentWidth=
    100%x

            ScrollViewInput.Width=
    100%x

        EndIf
     


    End Sub
    You have to resize the scrollview when the page resizes.
     
    Ramezanpour likes this.
  7. Ramezanpour

    Ramezanpour Active Member Licensed User

    work !
    but all things are strong
     
  8. Brian Robinson

    Brian Robinson Active Member Licensed User

    Maybe your controls have been doing weights? Sorry couldn't help it ;)

    But seriously, you need to try and explain what you are talking about. I know this can be hard if you are from a non-english speaking background, but look at it from our point of view. How exactly do we interpret "strong"?

    I think it is always so much easier if you can replicate the same problem in a small project, and upload it.

    Cheers
    Brian
     
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