|
-
Nov 14th, 2000, 04:46 PM
#1
Thread Starter
Frenzied Member
You know how in a web browser, as the page loads, your scroll bar gets shorter as the page gets longer?
I am adding controls to an array one under the other and i need a scroll bar to shorten.
anyone know the code?
retired member. Thanks for everything 
-
Nov 14th, 2000, 05:19 PM
#2
Hyperactive Member
I think what you are trying to do is set the Max or Value property.
-
Nov 14th, 2000, 05:58 PM
#3
The Min and Max properties determine the size of the ScrollBar. The Value determines the position.
-
Nov 14th, 2000, 08:01 PM
#4
Thread Starter
Frenzied Member
i know but.....
what is the equasion (if one exists) to calculate the min, max, and value of a scrollbar depending on how long something is
retired member. Thanks for everything 
-
Nov 15th, 2000, 12:32 AM
#5
transcendental analytic
The scrollbar Vscroll and Hscroll doesn't work as the ones you see in IE, it's values are fixed to integer values so you'll never get a large bar that won't get fixed. The exact size of the bar is the total height / the visible height for IE, and for the scrollbars in vb 1/(max-min+1)
Use  
writing software in C++ is like driving rivets into steel beam with a toothpick.
writing haskell makes your life easier:
reverse (p (6*9)) where p x|x==0=""|True=chr (48+z): p y where (y,z)=divMod x 13
To throw away OOP for low level languages is myopia, to keep OOP is hyperopia. To throw away OOP for a high level language is insight.
-
Nov 15th, 2000, 04:01 PM
#6
Thread Starter
Frenzied Member
Ok
say i am adding coontrols using the
Load Command(whatevernumber)
one under the other inside a picture box.
How can I scroll the picture box so that a click on the scroll bar would be just the right amount that looks normal
(i.e. not .0005 mm or 100 feet)
retired member. Thanks for everything 
-
Nov 16th, 2000, 04:12 AM
#7
transcendental analytic
You move all the controls in it with originalposition - scrollbarvalue*looksnormalvalue
Use  
writing software in C++ is like driving rivets into steel beam with a toothpick.
writing haskell makes your life easier:
reverse (p (6*9)) where p x|x==0=""|True=chr (48+z): p y where (y,z)=divMod x 13
To throw away OOP for low level languages is myopia, to keep OOP is hyperopia. To throw away OOP for a high level language is insight.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|