Results 1 to 7 of 7

Thread: add control scroll

  1. #1

    Thread Starter
    Frenzied Member markman's Avatar
    Join Date
    Nov 2000
    Location
    Florida.
    Posts
    1,197
    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

  2. #2
    Hyperactive Member Asaf_99's Avatar
    Join Date
    Jul 2000
    Location
    Israel
    Posts
    335
    I think what you are trying to do is set the Max or Value property.
    Asaf Sagi

    ICQ: 61917199
    E-Mail: [email protected]

  3. #3
    Guest
    The Min and Max properties determine the size of the ScrollBar. The Value determines the position.

  4. #4

    Thread Starter
    Frenzied Member markman's Avatar
    Join Date
    Nov 2000
    Location
    Florida.
    Posts
    1,197

    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

  5. #5
    transcendental analytic kedaman's Avatar
    Join Date
    Mar 2000
    Location
    0x002F2EA8
    Posts
    7,221
    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.

  6. #6

    Thread Starter
    Frenzied Member markman's Avatar
    Join Date
    Nov 2000
    Location
    Florida.
    Posts
    1,197
    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

  7. #7
    transcendental analytic kedaman's Avatar
    Join Date
    Mar 2000
    Location
    0x002F2EA8
    Posts
    7,221
    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
  •  



Click Here to Expand Forum to Full Width