Closed Thread
Results 1 to 4 of 4

Thread: issue with scroll sync

  1. #1
    jiggsroger is offline Newbie
    Join Date
    Apr 2008
    Posts
    8
    Rep Power
    0

    Unhappy issue with scroll sync

    please anybody help.......... somebody! anybody! please!!

    I have two listviews. Using any one of the scroll bars i must be able to move the contents of the both list views.
    right now its working with thumb tacks, but when using the scroll bar itself(that is the bar and not the arrow) there is no life.
    same i am facing when using the mouse to scroll..

    as of now i am able to scroll the list views, when using the thumb tacks, but if i an pressing once in the First list view, the contents int he Second list view gets scrolled twice.

    I have acheived this much using overridding of WndProc()



    Hopefully someone will hear me out!,
    Roger http://forum.codecall.net/images/icons/icon9.gif
    Unhappy

  2. CODECALL Circuit advertisement
    Join Date
    Always
    Posts
    Many

     
  3. #2
    Join Date
    Mar 2008
    Location
    The North Pole
    Posts
    13,174
    Blog Entries
    13
    Rep Power
    114

    Re: issue with scroll sync

    I'm sorry to hear about your woes, Roger. Do you have IntelliSense or AutoLists when you write programs? I mean, when you type the word "this" followed by a dot (.), do you get a list of all the properties? If so, take a browse through them. Hopefully there should be something related to the Selection - I'm not sure about ListViews, but I know that Textboxes have a SelectionStart and a SelectionLength property. Try looking around - there may be a property you can change the synchronise the two lists.

    Quote Originally Posted by Jordan View Post
    Good members, like yourself, stick around and post for ages to come!
    Mr. Xav | Blog | Forums

  4. #3
    jiggsroger is offline Newbie
    Join Date
    Apr 2008
    Posts
    8
    Rep Power
    0

    Post Re: issue with scroll sync

    Hi Xav,
    The problem with ListView in C#.Net is that it doesn't have a scroll property that you can use to capture or read changes. I created a custom ListView control by overriding the WndProc() so that i could get the scroll to capture. Created a Scroll event handler and a property for the scroll too. Managed to scroll the first one to scroll the second one but that isn't enough. Only the thumbtracks are making motion of content, the scroll bars when dragged do not change content in any way at all!

    That's the issue I've been facing!

    Anyways, thanks for trying.. I really appreciate that.

    -
    Roger

  5. #4
    Join Date
    Mar 2008
    Location
    The North Pole
    Posts
    13,174
    Blog Entries
    13
    Rep Power
    114

    Re: issue with scroll sync

    You're welcome. Sorry I couldn't help you out.

    Quote Originally Posted by Jordan View Post
    Good members, like yourself, stick around and post for ages to come!
    Mr. Xav | Blog | Forums

Closed Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Very handy SVN 'sync' script
    By 7SLEVIN in forum Bash / Shell Scripting
    Replies: 0
    Last Post: 05-29-2011, 05:47 AM
  2. Scroll Bar
    By JakeWindu in forum C# Programming
    Replies: 3
    Last Post: 02-03-2010, 05:00 AM
  3. sync stream it
    By jsr26 in forum JavaScript and CSS
    Replies: 9
    Last Post: 01-23-2010, 09:35 AM
  4. Sync a Directory
    By ptt3 in forum Linux/Unix General
    Replies: 1
    Last Post: 07-01-2008, 06:50 AM
  5. How do I sync up my Linux with NTP?
    By Lop in forum Linux Networking
    Replies: 2
    Last Post: 07-20-2007, 10:32 AM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts