ScrollView problem

mindbox

Member
Licensed User
Longtime User
Hello,

This is my first post. Before posting, I've searched the forum for this problem, and didn't found any solution.

The problem seems simple: the ScrollView doesn't display all the data. I think it has to do with the ScrollView.Panel.Height.. but I haven't figure it out. Maybe you have run into this yourself and have a solution.

I've attached a sample project and highlighted the problem in a screenshot.

Thank you!
 

Attachments

  • SV_Problem_source.zip
    SV_Problem_source.zip
    7.7 KB · Views: 355
  • Screenshot_2012-07-17-00-12-56.png
    Screenshot_2012-07-17-00-12-56.png
    93.7 KB · Views: 448
yes, most probably it's the panel's height. tried setting it to your internal view's height?

EDIT: Ok, now that I've seen your code, I think you should add
Code: Copy
ScrollView1.Panel.Height =lastHt
just before the 'end sub' of your 'loadList' sub.
 
Last edited:
Upvote 0
If you add the following line of code below the line that reads:
ScrollView1.Panel.AddView(pnlRecords, 10, 5dip + lastHt, 92%x, 30dip), you will be able to scroll a long way even if you add moe text.
Code: Copy
ScrollView1.Panel.Height= -1

or you can also use:
Code: Copy
ScrollView1.Panel.Height=1000dip

mc73 solution is also very viable. I must have been posting when he was editing his at the same time.
 
Last edited:
Upvote 0
Back
Top