home *** CD-ROM | disk | FTP | other *** search
- VERSION 5.00
- Begin VB.Form frmMain
- Caption = "Form1"
- ClientHeight = 4500
- ClientLeft = 60
- ClientTop = 345
- ClientWidth = 7515
- LinkTopic = "Form1"
- ScaleHeight = 4500
- ScaleWidth = 7515
- StartUpPosition = 3 'Windows Default
- Begin splittest.SplitPanel sp1
- Align = 1 'Align Top
- Height = 4410
- Left = 0
- TabIndex = 0
- Top = 0
- Width = 7515
- _ExtentX = 13256
- _ExtentY = 7779
- HorizontalSplit = -1 'True
- Begin splittest.SplitPanel sp2
- Height = 2925
- Left = 165
- TabIndex = 2
- Top = 150
- Width = 7215
- _ExtentX = 12726
- _ExtentY = 5159
- Begin VB.FileListBox fi1
- Height = 1845
- Left = 120
- TabIndex = 4
- Top = 150
- Width = 3405
- End
- Begin splittest.SplitPanel sp3
- Height = 2475
- Left = 3825
- TabIndex = 3
- Top = 90
- Width = 3180
- _ExtentX = 5609
- _ExtentY = 4366
- HorizontalSplit = -1 'True
- Begin VB.TextBox t2
- Height = 1185
- Left = 225
- TabIndex = 6
- Text = "Text2"
- Top = 990
- Width = 2640
- End
- Begin VB.TextBox t1
- Height = 480
- Left = 165
- TabIndex = 5
- Text = "Text1"
- Top = 315
- Width = 2655
- End
- End
- End
- Begin VB.Frame f1
- Caption = "SplitPanel"
- Height = 900
- Left = 180
- TabIndex = 1
- Top = 3225
- Width = 7050
- Begin VB.Label Label1
- Caption = "There are 3 nested SplitPanel controls in this demo. If you can't seem to find one, check for the one above this frame."
- Height = 510
- Left = 180
- TabIndex = 7
- Top = 225
- Width = 6735
- End
- End
- End
- Attribute VB_Name = "frmMain"
- Attribute VB_GlobalNameSpace = False
- Attribute VB_Creatable = False
- Attribute VB_PredeclaredId = True
- Attribute VB_Exposed = False
- Option Explicit
- ' This is just a simple test to show how to use the SplitPanel control.
- ' If you resize the window, and you have full window dragging on
- ' you system, you will notice that this is not a terribly fast program,
- ' but normal uses won't have three split panel controls, all nested,
- ' with each having to resize when the form resizes. The control
- ' itself will not have to resize from dragging the splitbar until after
- ' the mouse button has been released, so the performance is not
- ' really an issue for real uses, especially if the finished app is
- ' compiled to native code.
- Private Sub Form_Load() ' be sure to set the control setting in the form load event
- Set sp1.Control1 = sp2
- Set sp1.Control2 = f1
- Set sp2.Control1 = fi1
- Set sp2.Control2 = sp3
- Set sp3.Control1 = t1
- Set sp3.Control2 = t2
- End Sub
- Private Sub Form_Resize() ' I did this as an example
- On Error Resume Next
- sp1.Height = frmMain.Height - 1000 ' sp1 is top aligned in this example
- Label1.Top = 200
- Label1.Left = 200
- Label1.Width = f1.Width - 500
- Label1.Height = f1.Height - 500
- End Sub
-