Splitter using a panel

Discussion in 'Code Samples & Tips' started by RichardW, Nov 28, 2008.

  1. RichardW

    RichardW Member Licensed User

    This is a simple demo pgm on using a panel as a splitter control. I got the idea from a tip which used a panel as a movable window.

    It has 3 examples: vertical, horizontal and finally an explorer demo. The latter uses the listview.dll from Filippo (you can use a table too).

    The zip has compiles for PC and PPC as well as source. Instruction are in the pgm.
     

    Attached Files:

  2. N1c0_ds

    N1c0_ds Active Member Licensed User

    I was about to post a similar tutorial. You can use FormLib to change a panel's parent to another panel. You can then use a scrollbar control to scroll the panel up and down in the other panel:

    Scrollbar.Value=Childpanel.height-parentpanel.height

    Sub Scrollbar_Valuechanged
    ChildPanel.top=-Scrollbar.value
    End Sub

    It's a great way to display more information onscreen
     
Loading...
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice