Home » U++ Library support » U++ Widgets - General questions or Mixed problems » What does ScrollBar::SetPage do?
Re: What does ScrollBar::SetPage do? [message #13895 is a reply to message #13893] |
Thu, 31 January 2008 16:26 |
mrjt
Messages: 705 Registered: March 2007 Location: London
|
Contributor |
|
|
The maximum position of a scrollbar (the value returned from ScrollBar::Get) is position - pagesize. For instance, for a scrollbar set as:
scroll.Set(1, 10, 99)
the maximum position will be 89, so that the last page will be displayed in full. Obviously setting pagesize to 1 will result in the maximum pos being 98.
try setting it like this:
total = virtual area size (not size - ctrl size)
pagesize = ctrl size
[Updated on: Thu, 31 January 2008 16:31] Report message to a moderator
|
|
|
Goto Forum:
Current Time: Sun Jun 16 16:36:05 CEST 2024
Total time taken to generate the page: 0.01647 seconds
|