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 #13896 is a reply to message #13895] Thu, 31 January 2008 16:51 Go to previous messageGo to previous message
cbpporter is currently offline  cbpporter
Messages: 1401
Registered: September 2007
Ultimate Contributor
mrjt wrote on Thu, 31 January 2008 17:26

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


Thank you for the help! That worked great. I'm used to slightly different semantics when setting up the parameters for scrollbars, but I guess this is just as good, if not better.
 
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: Mon May 13 18:06:31 CEST 2024

Total time taken to generate the page: 0.02292 seconds