Getting "LIVE" scrolling in Windows 7 with vb.net

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • !NoItAll
    Contributor
    • May 2006
    • 297

    Getting "LIVE" scrolling in Windows 7 with vb.net

    I have an application with a scrolling window of thumbnail images. On XP it works just the way I want it; as the user scrolls the thumbnails go flying by. But in Windows 7 the thumbnails stay put until the user releases the mouse button and the thumbnails jump to the correct position.
    I've examined the properties of the control I'm using (I am actually using windows.systems .forms.form set to autoscroll) and there doesn't appear to by anything to activate live scrolling - besides that would likely be inconsisten between XP and Windows 7.
    Perhaps it is a setting in Windows 7 instead - color me clueless for now...
    Any help would be appreciated!
  • !NoItAll
    Contributor
    • May 2006
    • 297

    #2
    Ok - sorry for the fire drill. It is a setting inside Windows 7.
    "Show window contents while dragging" must be on. I wonder if there is a way to "override" this setting for a single application in Win7...

    Comment

    • !NoItAll
      Contributor
      • May 2006
      • 297

      #3
      I'll continue this conversation with myself... :-)

      So as it turns out I should be able to check me.GetScrollSta te(ScrollStateF ullDrag) to see if the global setting to show windows content while dragging has been set. But...
      it always returns false. Also any attempt to use:
      SetScrollState( ScrollStateFull Drag, True) fails. Looking at the msdn do it says the following:

      This member supports the .NET Framework infrastructure and is not intended to be used directly from your code.


      WTF! Why even expose and document a method we aren't supposed to use?

      As it further turns out I changed my declaration for my scrolling window from:

      Private ScrollWindow as System.windows. forms.form

      to

      Private Withevents ScrollWindow as System.windows. form.form

      and inside the scroll event I manually set the position of the window contents so it will now scroll live. I think that if the global setting of "show window contents while dragging" is on, that the position probably gets set twice though (once by the OS and once by me). I would test and not do it, but as I said the call to determine if it is on always returns false regardless of whether it is on or off.

      Comment

      Working...