home *** CD-ROM | disk | FTP | other *** search
- VERSION 5.00
- Object = "{811E4A19-89CA-11D1-BD4D-DFEBE4346D29}#2.0#0"; "BSCSPLITTER.OCX"
- Begin VB.Form DemoForm
- Caption = "BSCSplitter Control Example Application"
- ClientHeight = 4755
- ClientLeft = 60
- ClientTop = 345
- ClientWidth = 6945
- Icon = "DemoForm.frx":0000
- LinkTopic = "Form1"
- ScaleHeight = 4755
- ScaleWidth = 6945
- StartUpPosition = 2 'CenterScreen
- Begin BSCSplitter_Control.BSCSplitter BSCSplitter1
- Height = 4575
- Left = 120
- TabIndex = 0
- Top = 120
- Width = 6735
- _ExtentX = 11880
- _ExtentY = 8070
- Begin VB.PictureBox Picture1
- Height = 4575
- Index = 0
- Left = 0
- ScaleHeight = 4515
- ScaleWidth = 2220
- TabIndex = 4
- Tag = "Left"
- Top = 0
- Width = 2280
- Begin VB.Frame Frame1
- Caption = "SplitterType"
- Height = 975
- Left = 120
- TabIndex = 10
- Top = 120
- Width = 2055
- Begin VB.OptionButton Option1
- Caption = "Standard"
- Height = 255
- Index = 0
- Left = 120
- TabIndex = 12
- Top = 240
- Width = 1815
- End
- Begin VB.OptionButton Option1
- Caption = "Special"
- Height = 255
- Index = 1
- Left = 120
- TabIndex = 11
- Top = 600
- Value = -1 'True
- Width = 1815
- End
- End
- Begin VB.TextBox Text1
- Height = 285
- Left = 360
- TabIndex = 9
- Text = "Text1"
- Top = 2040
- Width = 1215
- End
- Begin VB.VScrollBar VScroll1
- Height = 285
- Left = 1560
- Max = 20
- Min = 1
- TabIndex = 8
- Top = 2040
- Value = 1
- Width = 375
- End
- Begin VB.CommandButton Command1
- Caption = "About..."
- Height = 375
- Left = 360
- TabIndex = 7
- Top = 2520
- Width = 1575
- End
- Begin VB.VScrollBar VScroll2
- Height = 285
- Left = 1560
- Max = 3000
- TabIndex = 6
- Top = 1440
- Value = 155
- Width = 375
- End
- Begin VB.TextBox Text2
- Height = 285
- Left = 360
- TabIndex = 5
- Text = "Text1"
- Top = 1440
- Width = 1215
- End
- Begin VB.Label Label2
- Caption = "Splitter Width"
- Height = 255
- Left = 360
- TabIndex = 14
- Top = 1800
- Width = 1575
- End
- Begin VB.Label Label3
- Caption = "Splitter Left"
- Height = 255
- Left = 360
- TabIndex = 13
- Top = 1200
- Width = 1575
- End
- End
- Begin VB.PictureBox Picture1
- BackColor = &H8000000D&
- Height = 4575
- Index = 1
- Left = 2400
- ScaleHeight = 4515
- ScaleWidth = 4275
- TabIndex = 1
- Tag = "Right"
- Top = 0
- Width = 4335
- Begin VB.Label Label1
- AutoSize = -1 'True
- BackStyle = 0 'Transparent
- Caption = "BSCSplitter - The Alternative Splitter Bar"
- BeginProperty Font
- Name = "MS Sans Serif"
- Size = 12
- Charset = 0
- Weight = 700
- Underline = -1 'True
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- ForeColor = &H8000000E&
- Height = 780
- Index = 0
- Left = 120
- TabIndex = 3
- Top = 120
- Width = 4080
- WordWrap = -1 'True
- End
- Begin VB.Label Label1
- AutoSize = -1 'True
- BackStyle = 0 'Transparent
- Caption = "BSCSplitter - The Alternative Splitter Bar"
- BeginProperty Font
- Name = "Courier New"
- Size = 9.75
- Charset = 0
- Weight = 400
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- ForeColor = &H8000000E&
- Height = 480
- Index = 1
- Left = 120
- TabIndex = 2
- Top = 840
- Width = 4080
- WordWrap = -1 'True
- End
- End
- End
- Attribute VB_Name = "DemoForm"
- Attribute VB_GlobalNameSpace = False
- Attribute VB_Creatable = False
- Attribute VB_PredeclaredId = True
- Attribute VB_Exposed = False
- Option Explicit
- Dim crlf As String
- Private Sub Command1_Click()
- BSCSplitter1.About
- End Sub
- Private Sub Form_Load()
- crlf = Chr$(13) + Chr$(10)
- Label1(1).Caption = "Click and drag on the splitter bar between these two panes to resize the panes." & crlf & crlf
- Label1(1).Caption = Label1(1).Caption + "Double Click on the splitter bar to snap shut or open." & crlf & crlf
- Label1(1).Caption = Label1(1).Caption + "How do I use it?" & crlf
- Label1(1).Caption = Label1(1).Caption + "----------------" & crlf
- Label1(1).Caption = Label1(1).Caption + "1) Put a BSCSplitter Control on the form." & crlf
- Label1(1).Caption = Label1(1).Caption + "2) Put two further control onto the BSCSplitter control." & crlf
- Label1(1).Caption = Label1(1).Caption + "3) Enter the following..." & crlf
- Label1(1).Caption = Label1(1).Caption + " Private Sub Form_Resize()" & crlf
- Label1(1).Caption = Label1(1).Caption + " BSCSplitter1.Move 0, 0, ScaleWidth, ScaleHeight" & crlf
- Label1(1).Caption = Label1(1).Caption + " End Sub" & crlf
- Label1(1).Caption = Label1(1).Caption + "4) Run the program!"
- Text1.Text = Str$(BSCSplitter1.SplitWidth)
- Text2.Text = Str$(BSCSplitter1.SplitLeft)
- End Sub
- Private Sub Form_Resize()
- BSCSplitter1.Move 0, 0, ScaleWidth, ScaleHeight
- End Sub
- Private Sub Option1_Click(Index As Integer)
- If Index = 1 Then
- BSCSplitter1.SplitType = Special
- Else
- BSCSplitter1.SplitType = Standard
- End If
- End Sub
- Private Sub Picture1_Resize(Index As Integer)
- Label1(0).Move 100, 100, Picture1(1).Width - 200
- Label1(1).Move 100, Label1(0).Top + Label1(0).Height, Label1(0).Width
- Text2.Text = Str$(BSCSplitter1.SplitLeft)
- End Sub
- Private Sub Text1_Change()
- BSCSplitter1.SplitWidth = Val(Text1.Text)
- VScroll1.Value = BSCSplitter1.SplitWidth
- End Sub
- Private Sub VScroll1_Change()
- Text1.Text = Str$(VScroll1.Value)
- End Sub
- Private Sub Text2_Change()
- BSCSplitter1.SplitLeft = Val(Text2.Text)
- VScroll2.Value = BSCSplitter1.SplitLeft
- End Sub
- Private Sub VScroll2_Change()
- Text2.Text = Str$(VScroll2.Value)
- End Sub
-