home *** CD-ROM | disk | FTP | other *** search
- VERSION 5.00
- Begin VB.Form frmTest
- Caption = "Form1"
- ClientHeight = 4800
- ClientLeft = 60
- ClientTop = 345
- ClientWidth = 6450
- LinkTopic = "Form1"
- ScaleHeight = 4800
- ScaleWidth = 6450
- StartUpPosition = 3 'Windows Default
- Begin VB.PictureBox picRight
- Height = 4335
- Left = 2640
- ScaleHeight = 4275
- ScaleWidth = 3315
- TabIndex = 2
- Top = 120
- Width = 3375
- Begin VB.TextBox txtBottom
- Height = 1695
- Left = 360
- TabIndex = 5
- Text = "Text1"
- Top = 2400
- Width = 2655
- End
- Begin VB.PictureBox picHSplit
- Height = 135
- Left = 240
- ScaleHeight = 75
- ScaleWidth = 2835
- TabIndex = 4
- Top = 2160
- Width = 2895
- End
- Begin VB.TextBox txtTop
- Height = 1575
- Left = 240
- TabIndex = 3
- Text = "Text1"
- Top = 240
- Width = 2895
- End
- End
- Begin VB.PictureBox picSplitter
- Height = 4215
- Left = 2160
- ScaleHeight = 4155
- ScaleWidth = 75
- TabIndex = 1
- Top = 240
- Width = 135
- End
- Begin VB.TextBox txtLeft
- Height = 4455
- Left = 120
- MultiLine = -1 'True
- ScrollBars = 3 'Both
- TabIndex = 0
- Text = "frmTest.frx":0000
- Top = 120
- Width = 1815
- End
- Attribute VB_Name = "frmTest"
- Attribute VB_GlobalNameSpace = False
- Attribute VB_Creatable = False
- Attribute VB_PredeclaredId = True
- Attribute VB_Exposed = False
- Option Explicit
- Dim spVSet As New vSplit
- Dim spHSet As New HSplit
- Private Sub form_initialize()
- Set spVSet.HostPane = Me
- Set spVSet.LeftPane = txtLeft
- Set spVSet.RightPane = picRight
- Set spVSet.SplitBar = picSplitter
- spVSet.SplitOn = False
- Set spHSet.HostPane = picRight
- Set spHSet.TopPane = txtTop
- Set spHSet.BottomPane = txtBottom
- Set spHSet.SplitBar = picHSplit
- spHSet.SplitOn = False
- txtBottom.Height = Me.Height - (txtTop.Height + picHSplit.Height)
- End Sub
- Private Sub Form_Resize()
- spVSet.ResizePanes
- spHSet.ResizePanes
- End Sub
- Private Sub picright_resize()
- spHSet.ResizePanes
- End Sub
- Private Sub picsplitter_mousedown(button As Integer, _
- shift As Integer, _
- x As Single, y As Single)
- spVSet.SetPointer vbSizeWE
- spVSet.SplitOn = True
- End Sub
- Private Sub picsplitter_mousemove(button As Integer, _
- shift As Integer, _
- x As Single, y As Single)
- spVSet.SetPointer vbSizeWE
- If spVSet.SplitOn = True Then
- spVSet.ResizePanes x
- End If
- End Sub
- Private Sub picsplitter_MouseUp(button As Integer, _
- shift As Integer, _
- x As Single, y As Single)
- spVSet.SetPointer vbNormal
- If spVSet.SplitOn = True Then
- spVSet.ResizePanes x
- End If
- End Sub
- Private Sub picHSplit_MouseDown(button As Integer, _
- shift As Integer, _
- x As Single, y As Single)
- spHSet.SetPointer vbSizeNS
- spHSet.SplitOn = True
- End Sub
- Private Sub picHSplit_MouseMove(button As Integer, _
- shift As Integer, _
- x As Single, y As Single)
- spHSet.SetPointer vbSizeNS
- If spHSet.SplitOn = True Then
- spHSet.ResizePanes y
- End If
- End Sub
- Private Sub picHSplit_MouseUp(button As Integer, _
- shift As Integer, _
- x As Single, y As Single)
- spHSet.SetPointer vbNormal
- If spHSet.SplitOn = True Then
- spHSet.ResizePanes y
- spHSet.SplitOn = False
- End If
- End Sub
- Private Sub txtLeft_MouseMove(button As Integer, _
- shift As Integer, _
- x As Single, y As Single)
- spVSet.SetPointer vbNormal
- End Sub
- Private Sub txtTop_MouseMove(button As Integer, _
- shift As Integer, _
- x As Single, y As Single)
- spHSet.SetPointer vbNormal
- spVSet.SetPointer vbNormal
- End Sub
- Private Sub lblBottom_MouseMove(button As Integer, _
- shift As Integer, _
- x As Single, y As Single)
- spHSet.SetPointer vbNormal
- spVSet.SetPointer vbNormal
- End Sub
-