in

C1 Community

ComponentOne Community is a free source for developers and help authors to collaborate and communicate.

Scroll Bar/Scroll Button

Last post 07-31-2008 2:45 PM by oncochart. 2 replies.
Page 1 of 1 (3 items)
Sort Posts: Previous Next
  • 04-01-2008 11:17 AM

    Scroll Bar/Scroll Button

    Can anyone tell me if there is a way to determine if you selected the "down" scroll bar or "up" scroll bar.  In one of our applications there is code that control the scrolling (Not my idea, but done by a previous developer) and I need to know what directio the user whats to scroll.

    Filed under:
  • 05-08-2008 5:32 AM In reply to

    Re: Scroll Bar/Scroll Button

    Unfortunately, the desired scenario cannot be achieved.
     
    Regards,
    Sam Xavier
    <Frederick> wrote in message news:203401@10.0.1.98...

    Can anyone tell me if there is a way to determine if you selected the "down" scroll bar or "up" scroll bar.  In one of our applications there is code that control the scrolling (Not my idea, but done by a previous developer) and I need to know what directio the user whats to scroll.



    http://helpcentral.componentone.com/cs/forums/p/74805/203401.aspx#203401

  • 07-31-2008 2:45 PM In reply to

    Re: Scroll Bar/Scroll Button

     actually, you could set a modular value to hold the value of the scroll position.  when clicking the up or down buttons the scrollbar position will change accordingly.  in the .ValueChanged or .Scroll or both,  just run a check on the current postion vs the stored value in your modular variable. if the current amount is lessthan the stored value, then they scrolled up.  if it's more, then they scrolled down.  now that you know the direction they went, dont forget to set the modular variable = to the current value so you can check it again when its clicked again.

    i realize this post is quite old, but i figured it could possibly still help someone out.

Page 1 of 1 (3 items)
Contact ComponentOne: 1.800.858.2739 ©1987-2008 ComponentOne LLC All Rights Reserved.