CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Guest

    Panel with Scrollbar

    Hi,
    I've 2 panels in my frame.I want to attach scrollbars to one of my panels.Is it possible?.
    Thanks in advance.


  2. #2
    Join Date
    May 1999
    Location
    Pune, MH, India.
    Posts
    453

    Re: Panel with Scrollbar

    Yep! I had done that. I wonder if u like to do the same.

    What I had done is...
    1. Put both panels in scrollpanes
    2. Make verticle (I wanted to syncronize the panel scrolling vertically) scrollbar of one scrollpane invisible
    3. I created a listener for scrollbar which will accept instance of another scrollbar and when event comes sets the value of other scrollbar correspondingly
    4. Then I attached this listener to the visible verticle scrollbar of the scrollpane and gave it instance of invisible verticle scrollbar of other scrollpane.

    And it worked!

    - UnicMan

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

Featured