home *** CD-ROM | disk | FTP | other *** search
- VERSION 5.00
- Object = "*\AProject1.vbp"
- Begin VB.Form frmtestbar
- BackColor = &H00FF0000&
- Caption = "Progress Bar ActiveX Control Example"
- ClientHeight = 4755
- ClientLeft = 60
- ClientTop = 300
- ClientWidth = 9780
- FillColor = &H000080FF&
- ForeColor = &H80000010&
- LinkTopic = "Form2"
- ScaleHeight = 4755
- ScaleWidth = 9780
- StartUpPosition = 2 'CenterScreen
- Begin VB.CheckBox Check5
- Caption = "Border 3D"
- Height = 195
- Left = 8340
- TabIndex = 29
- Top = 4500
- Width = 1095
- End
- Begin VB.CheckBox Check4
- Caption = "Border 3D"
- Height = 255
- Left = 6660
- TabIndex = 28
- Top = 4440
- Width = 1215
- End
- Begin VB.CheckBox Check3
- Caption = "Border 3D"
- Height = 195
- Left = 480
- TabIndex = 27
- Top = 4440
- Width = 1155
- End
- Begin VB.CheckBox Check2
- Caption = "Border 3D"
- Height = 195
- Left = 540
- TabIndex = 26
- Top = 2940
- Width = 1095
- End
- Begin VB.CheckBox Check1
- Caption = "Border 3D"
- Height = 195
- Left = 600
- TabIndex = 25
- Top = 1260
- Width = 1275
- End
- Begin VB.CommandButton Command15
- Caption = "Hide Bar"
- Height = 315
- Left = 8280
- TabIndex = 24
- Top = 4080
- Width = 975
- End
- Begin VB.CommandButton Command14
- Caption = "Clear"
- Height = 315
- Left = 8280
- TabIndex = 23
- Top = 3660
- Width = 975
- End
- Begin VB.CommandButton Command13
- Caption = "Start"
- Height = 315
- Left = 8280
- TabIndex = 22
- Top = 3240
- Width = 975
- End
- Begin SBNProgressBar.Progress Pb5
- Height = 2655
- Left = 8460
- TabIndex = 20
- Top = 480
- Width = 675
- _ExtentX = 1191
- _ExtentY = 4683
- ForeColor = 65280
- BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851}
- Name = "MS Sans Serif"
- Size = 8.25
- Charset = 0
- Weight = 400
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- Style = 3
- Min = 125
- Max = 750
- End
- Begin VB.CommandButton Command12
- Caption = "Hide Bar"
- Height = 315
- Left = 6660
- TabIndex = 18
- Top = 4080
- Width = 975
- End
- Begin VB.CommandButton Command11
- Caption = "Clear"
- Height = 315
- Left = 6660
- TabIndex = 17
- Top = 3660
- Width = 975
- End
- Begin VB.CommandButton Command10
- Caption = "Start"
- Height = 315
- Left = 6660
- TabIndex = 16
- Top = 3240
- Width = 975
- End
- Begin SBNProgressBar.Progress Pb4
- Height = 2655
- Left = 6840
- TabIndex = 15
- Top = 480
- Width = 675
- _ExtentX = 1191
- _ExtentY = 4683
- ForeColor = 16776960
- BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851}
- Name = "Times New Roman"
- Size = 9.75
- Charset = 0
- Weight = 400
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- Style = 4
- Max = 500
- End
- Begin SBNProgressBar.Progress Pb1
- Height = 375
- Left = 600
- TabIndex = 14
- Top = 300
- Width = 5715
- _ExtentX = 10081
- _ExtentY = 661
- ForeColor = 255
- BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851}
- Name = "PosterBodoni BT"
- Size = 8.25
- Charset = 0
- Weight = 700
- Underline = 0 'False
- Italic = -1 'True
- Strikethrough = 0 'False
- EndProperty
- Max = 500
- End
- Begin SBNProgressBar.Progress Pb3
- Height = 375
- Left = 420
- TabIndex = 13
- Top = 3480
- Width = 5775
- _ExtentX = 10186
- _ExtentY = 661
- ForeColor = 16711935
- BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851}
- Name = "MS Sans Serif"
- Size = 8.25
- Charset = 0
- Weight = 400
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- Style = 2
- Max = 250
- End
- Begin SBNProgressBar.Progress Pb2
- Height = 375
- Left = 480
- TabIndex = 12
- Top = 1920
- Width = 5715
- _ExtentX = 10081
- _ExtentY = 661
- ForeColor = 0
- BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851}
- Name = "Kauflinn"
- Size = 9.75
- Charset = 0
- Weight = 700
- Underline = 0 'False
- Italic = -1 'True
- Strikethrough = 0 'False
- EndProperty
- Style = 1
- Caption = "Loading"
- Min = 200
- Max = 800
- End
- Begin VB.CommandButton Command9
- Caption = "Hide Bar"
- Height = 315
- Left = 4440
- TabIndex = 9
- Top = 4080
- Width = 1215
- End
- Begin VB.CommandButton Command8
- Caption = "Hide Bar"
- Height = 315
- Left = 4440
- TabIndex = 8
- Top = 2520
- Width = 1215
- End
- Begin VB.CommandButton Command7
- Caption = "Hide Bar"
- Height = 315
- Left = 4440
- TabIndex = 6
- Top = 780
- Width = 1215
- End
- Begin VB.CommandButton Command6
- Caption = "Clear"
- Height = 315
- Left = 2760
- TabIndex = 5
- Top = 4080
- Width = 1275
- End
- Begin VB.CommandButton Command5
- Caption = "Start"
- Height = 315
- Left = 1080
- TabIndex = 4
- Top = 4080
- Width = 1215
- End
- Begin VB.CommandButton Command4
- Caption = "Clear"
- Height = 315
- Left = 2760
- TabIndex = 3
- Top = 2520
- Width = 1215
- End
- Begin VB.CommandButton Command3
- Caption = "Start"
- Height = 315
- Left = 1140
- TabIndex = 2
- Top = 2520
- Width = 1215
- End
- Begin VB.CommandButton Command2
- Caption = "Clear"
- Height = 315
- Left = 2820
- TabIndex = 1
- Top = 780
- Width = 1215
- End
- Begin VB.CommandButton Command1
- Caption = "Start"
- Height = 315
- Left = 1140
- TabIndex = 0
- Top = 780
- Width = 1215
- End
- Begin VB.Label Label5
- Alignment = 2 'Center
- Caption = "Style Bare Only Vertical"
- BeginProperty Font
- Name = "MS Sans Serif"
- Size = 9.75
- Charset = 0
- Weight = 700
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- Height = 495
- Left = 8100
- TabIndex = 21
- Top = 0
- Width = 1455
- End
- Begin VB.Label Label4
- Alignment = 2 'Center
- Caption = "Style Percent Vertical"
- BeginProperty Font
- Name = "MS Sans Serif"
- Size = 9.75
- Charset = 0
- Weight = 700
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- Height = 435
- Left = 6480
- TabIndex = 19
- Top = 0
- Width = 1515
- End
- Begin VB.Label Label3
- Alignment = 2 'Center
- Caption = "Style Bare Only Horizontal"
- BeginProperty Font
- Name = "MS Sans Serif"
- Size = 9.75
- Charset = 0
- Weight = 700
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- Height = 315
- Left = 1860
- TabIndex = 11
- Top = 3180
- Width = 3615
- End
- Begin VB.Label Label2
- Caption = "Style Label Percent Horizontal"
- BeginProperty Font
- Name = "MS Sans Serif"
- Size = 9.75
- Charset = 0
- Weight = 700
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- Height = 315
- Left = 1980
- TabIndex = 10
- Top = 1500
- Width = 3555
- End
- Begin VB.Label Label1
- Alignment = 2 'Center
- Caption = "Style Percent Horizontal"
- BeginProperty Font
- Name = "MS Sans Serif"
- Size = 9.75
- Charset = 0
- Weight = 700
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- Height = 255
- Left = 2340
- TabIndex = 7
- Top = 60
- Width = 3075
- End
- Attribute VB_Name = "frmtestbar"
- Attribute VB_GlobalNameSpace = False
- Attribute VB_Creatable = False
- Attribute VB_PredeclaredId = True
- Attribute VB_Exposed = False
- Private Sub Check1_Click()
- If Check1.Value = 1 Then
- Pb1.border = [3D]
- Pb1.border = Flat
- End If
- End Sub
- Private Sub Check2_Click()
- If Check2.Value = 1 Then
- Pb2.border = [3D]
- Pb2.border = Flat
- End If
- End Sub
- Private Sub Check3_Click()
- If Check3.Value = 1 Then
- Pb3.border = [3D]
- Pb3.border = Flat
- End If
- End Sub
- Private Sub Check4_Click()
- If Check4.Value = 1 Then
- Pb4.border = [3D]
- Pb4.border = Flat
- End If
- End Sub
- Private Sub Check5_Click()
- If Check5.Value = 1 Then
- Pb5.border = [3D]
- Pb5.border = Flat
- End If
- End Sub
- Private Sub Command1_Click()
- Dim k As Long
- If Command1.Caption = "Start" Then
- Command1.Caption = "Stop"
- For k = Pb1.Min To Pb1.Max
- Pb1.Change k
- Next k
- Command1.Caption = "Start"
- End If
- End Sub
- Private Sub Command10_Click()
- Dim k As Long
- If Command10.Caption = "Start" Then
- Command10.Caption = "Stop"
- For k = Pb4.Min To Pb4.Max
- Pb4.Change k
- Next k
- Command10.Caption = "Start"
- End If
- End Sub
- Private Sub Command11_Click()
- Pb4.Clear
- End Sub
- Private Sub Command12_Click()
- If Command12.Caption = "Hide Bar" Then
- Pb4.Visible = False
- Pb4.Enabled = False
- Command12.Caption = "Show Bar"
- Pb4.Visible = True
- Pb4.Enabled = True
- Command12.Caption = "Hide Bar"
- End If
- End Sub
- Private Sub Command13_Click()
- Dim k As Long
- If Command13.Caption = "Start" Then
- Command13.Caption = "Stop"
- For k = Pb5.Min To Pb5.Max
- Pb5.Change k
- Next k
- Command13.Caption = "Start"
- End If
- End Sub
- Private Sub Command14_Click()
- Pb5.Clear
- End Sub
- Private Sub Command15_Click()
- If Command15.Caption = "Hide Bar" Then
- Pb5.Visible = False
- Pb5.Enabled = False
- Command15.Caption = "Show Bar"
- Pb5.Visible = True
- Pb5.Enabled = True
- Command15.Caption = "Hide Bar"
- End If
- End Sub
- Private Sub Command2_Click()
- Pb1.Clear
- End Sub
- Private Sub Command3_Click()
- Dim k As Long
- If Command3.Caption = "Start" Then
- Command3.Caption = "Stop"
- For k = Pb2.Min To Pb2.Max
- Pb2.Change k
- Next k
- Command3.Caption = "Start"
- End If
- End Sub
- Private Sub Command4_Click()
- Pb2.Clear
- End Sub
- Private Sub Command5_Click()
- Dim k As Long
- If Command5.Caption = "Start" Then
- Command5.Caption = "Stop"
- For k = Pb3.Min To Pb3.Max
- Pb3.Change k
- Next k
- Command5.Caption = "Start"
- End If
- End Sub
- Private Sub Command6_Click()
- Pb3.Clear
- End Sub
- Private Sub Command7_Click()
- If Command7.Caption = "Hide Bar" Then
- Pb1.Visible = False
- Pb1.Enabled = False
- Command7.Caption = "Show Bar"
- Pb1.Visible = True
- Pb1.Enabled = True
- Command7.Caption = "Hide Bar"
- End If
- End Sub
- Private Sub Command8_Click()
- If Command8.Caption = "Hide Bar" Then
- Pb2.Visible = False
- Pb2.Enabled = False
- Command8.Caption = "Show Bar"
- Pb2.Visible = True
- Pb2.Enabled = True
- Command8.Caption = "Hide Bar"
- End If
- End Sub
- Private Sub Command9_Click()
- If Command9.Caption = "Hide Bar" Then
- Pb3.Visible = False
- Pb3.Enabled = False
- Command9.Caption = "Show Bar"
- Pb3.Visible = True
- Pb3.Enabled = True
- Command9.Caption = "Hide Bar"
- End If
- End Sub
- Private Sub Option1_Click()
- If Option1.Value = 1 Then
- Pb1.border = [3D]
- End If
- End Sub
- Private Sub Form_Load()
- Check1.Value = 1
- Check2.Value = 1
- Check3.Value = 1
- Check4.Value = 1
- Check5.Value = 1
- End Sub
-