home *** CD-ROM | disk | FTP | other *** search
- VERSION 5.00
- Object = "{CC1E317A-3102-11D1-816E-00A024E95548}#3.0#0"; "ACTIVEPROGRESS.OCX"
- Object = "{6B7E6392-850A-101B-AFC0-4210102A8DA7}#1.2#0"; "COMCTL32.OCX"
- Begin VB.Form Form1
- BorderStyle = 3 'Fixed Dialog
- Caption = "ActiveProgress Bar Demo"
- ClientHeight = 3195
- ClientLeft = 45
- ClientTop = 330
- ClientWidth = 4680
- FillColor = &H0000FFFF&
- FillStyle = 3 'Vertical Line
- LinkTopic = "Form1"
- MaxButton = 0 'False
- MinButton = 0 'False
- ScaleHeight = 3195
- ScaleWidth = 4680
- ShowInTaskbar = 0 'False
- StartUpPosition = 3 'Windows Default
- Begin ActiveProgressBar.AXProgress AXProgress3
- Height = 540
- Left = 360
- Top = 2520
- Width = 3795
- _ExtentX = 6694
- _ExtentY = 953
- 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
- Picture = "Form1.frx":0000
- FillStyle = 1
- Max = 100
- Value = 75
- End
- Begin ActiveProgressBar.AXProgress AXProgress1
- Height = 255
- Left = 720
- Top = 1680
- Width = 3165
- _ExtentX = 5583
- _ExtentY = 450
- 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
- Picture = "Form1.frx":0452
- Max = 100
- Value = 75
- End
- Begin VB.CommandButton Command1
- Caption = "Start"
- Height = 375
- Left = 1800
- TabIndex = 0
- Top = 120
- Width = 975
- End
- Begin VB.Timer Timer1
- Enabled = 0 'False
- Interval = 100
- Left = 840
- Top = 3000
- End
- Begin ComctlLib.ProgressBar ProgressBar1
- Height = 255
- Left = 720
- TabIndex = 1
- Top = 840
- Width = 3135
- _ExtentX = 5530
- _ExtentY = 450
- _Version = 327682
- Appearance = 0
- End
- Begin ActiveProgressBar.AXProgress AXProgress2
- Height = 420
- Left = 240
- Top = 2040
- Width = 4020
- _ExtentX = 7091
- _ExtentY = 741
- ForeColor = 255
- BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851}
- Name = "MS Sans Serif"
- Size = 8.25
- Charset = 0
- Weight = 700
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- FillColor = 65535
- Picture = "Form1.frx":046E
- FillStyle = 1
- Max = 100
- Value = 75
- CaptionStyle = 1
- End
- Begin VB.Label Label2
- Caption = "Active Progress Bars"
- Height = 255
- Left = 720
- TabIndex = 3
- Top = 1440
- Width = 3135
- End
- Begin VB.Label Label1
- Caption = "Standard progress bar that ships with VB"
- Height = 255
- Left = 720
- TabIndex = 2
- Top = 600
- Width = 3135
- End
- Attribute VB_Name = "Form1"
- Attribute VB_GlobalNameSpace = False
- Attribute VB_Creatable = False
- Attribute VB_PredeclaredId = True
- Attribute VB_Exposed = False
- Private Sub Command1_Click()
- AXProgress1.Value = 0
- Timer1.Enabled = True
- End Sub
- Private Sub Picture1_Click()
- End Sub
- Private Sub Form_Load()
- 'Set AXProgress Bar properties
- AXProgress2.Min = AXProgress1.Min
- AXProgress2.Max = AXProgress1.Max
- AXProgress3.Min = AXProgress1.Min
- AXProgress3.Max = AXProgress1.Max
- 'Set up Common windows progress bar properties
- ProgressBar1.Min = AXProgress1.Min
- ProgressBar1.Max = AXProgress1.Max
- AXProgress1.Value = 0
- AXProgress2.Value = 0
- AXProgress3.Value = 0
- End Sub
- Private Sub Timer1_Timer()
- 'Adjust progress bar values
- If AXProgress1.Value < AXProgress1.Max Then
- AXProgress1.Value = AXProgress1.Value + 1
- End If
- AXProgress2.Value = AXProgress1.Value
- AXProgress3.Value = AXProgress1.Value
- ProgressBar1.Value = AXProgress1.Value
- 'Set form caption to percent complete using the
- 'AXProgress PercentComplete property.
- Me.Caption = AXProgress1.PercentComplete & "% Completed"
- If AXProgress1.Value = AXProgress1.Max Then
- Timer1.Enabled = False
- End If
- End Sub
-