开发者

Make Scrollbar Max as long? - Vb6

I was开发者_如何学编程 working on my vb6 project, and I needed my scrollbar max to reach 40000. Though I can assume that the max was around 32000 since the scrollbar max is an integer. How can I change this?

Thanks,

Kevin


Why do you need to do that? Consider setting the range from 0 to 100, or 0 to 1000 (percentage of your document's size, basically), and scaling from that to the range that you need.

EDIT: For example, if you have a document with 40,000 lines, set the scrollbar maximum to 100. When you read the value, multiply it by the ratio of the document size over the maximum size of the scrollbar. When the scrollbar thumb is in the middle at 50, you'll get 50 * (40,000 / 100), or 20,000.

You'll have to use a long in VB6.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜