iOS Question how to use scrollview?

John Woodsmall

Active Member
Licensed User
Longtime User
i am trying to use scrollview:

ScrollView1.Panel.AddView(tools,0,0,0,0)
ScrollView1.Panel.AddView(settings_image,0,0,200,200)
ScrollView1.Panel.AddView(setting_label,0,0,0,0)

i just move the know textboxes on to the scrollview but it does not act
the way i would like. it does not scroll.
am i to make the scrollview bigger than the phone?
or
what?
 

klaus

Expert
Licensed User
Longtime User
ScrollView1.Panel.AddView(tools,0,0,0,0)
Very strange! you add a view with width = 0 and height = 0 !?
All three vies have the same Left and Top properties !?
You need to add the views on their positions and dimensions you want.
At the end you must set the Width and Height properties of ScrollView1.Panel according to the views you have added with ScrollView1.ContentWidth and ScrollView1.Content.Height.
If ScrollView1.ContentWidth and ScrollView1.Content.Height are smaller than ScrollView1.Width and ScrollView1.Height no scrolling.
EDIT: Amended the text according to the next post.
 
Last edited:
Upvote 0
Top