Results 1 to 6 of 6

Thread: [RESOLVED] VBAccelerator Scrollbar Class Issue

Threaded View

  1. #1

    Thread Starter
    Frenzied Member
    Join Date
    Jan 2010
    Posts
    1,103

    Resolved [RESOLVED] VBAccelerator Scrollbar Class Issue

    I am trying to use VBAccelerator Scrollbar class to scroll picture in picturebox. But I have a Max Thumb position Issue ,which either is related to my code or this scrollbar class.

    For example:
    My picturebox's ScaleWidth is 600 pixels,the picture has 1000 pixels width.

    Code:
            m_HVScroll.Visible(efsHorizontal) = True
            m_HVScroll.Min(efsHorizontal) = 0
            m_HVScroll.LargeChange(efsHorizontal) = 600 'equal to picture1.ScaleWidth
            m_HVScroll.Max(efsHorizontal) = 1000-600     'Maximum available movement
            m_HVScroll.SmallChange(efsHorizontal) = 10   'click button to move 10 pixels
    If I fast move the Thumb, the debug window show the m_HVScroll.Value(efsHorizontal) = 401.
    If I click the Right button, the Value change to 400, I can see the scrollbat stepping backward 1 pixel.

    Those are not what I want. I need m_HVScroll.Value(efsHorizontal)= 400 at the end.

    In Class, I saw tSI.nTrackPos = 401 (Note: or HiWord of wParam). How to prevent max limit in the subclass of WM_HSCROLL?

    I attach the class.
    Attached Images Attached Images  
    Attached Files Attached Files
    Last edited by Jonney; Apr 27th, 2014 at 04:09 AM.

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