Splitter using a panel

RichardW

Member
Licensed User
Longtime 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.
 

Attachments

  • splitter.zip
    58.6 KB · Views: 361

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
 
Top