Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
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 Go to previous messageGo to previous message
mrjt is currently offline  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

 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Frames dissapearing and Buttons not drawing
Next Topic: cannot open menu by key?
Goto Forum:
  


Current Time: Sun May 12 20:42:48 CEST 2024

Total time taken to generate the page: 0.01653 seconds