home *** CD-ROM | disk | FTP | other *** search
- VERSION 5.00
- Object = "{CD8DBB13-94EE-11D1-921D-006097A8F11E}#6.0#0"; "mcBar1.ocx"
- Begin VB.Form frmComplexProgressBar
- Caption = "Complex Progress Bar"
- ClientHeight = 2415
- ClientLeft = 60
- ClientTop = 345
- ClientWidth = 8835
- ScaleHeight = 2415
- ScaleWidth = 8835
- StartUpPosition = 2 'CenterScreen
- Begin mcBar_by_The_MCR_Company.mcBar mcStatusBar
- Align = 2 'Align Bottom
- Height = 285
- Left = 0
- TabIndex = 6
- Top = 2130
- Width = 8835
- _ExtentX = 15584
- _ExtentY = 503
- Blocks = 2
- Block.BarLeft(1)= 0
- Block.BarRight(1)= 90
- Block.BorderStyle(1)= 2
- Block.HPercentage(1)= "90"
- Block.VPercentage(1)= "100"
- Block.GradientStyle(1)= 6
- Block.GradientColor(1)= 16777215
- Block.Text(1) = "mcBar ActiveX control by The MCR Company"
- BeginProperty Block.TextFont(1) {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
- Block.TextFont3D(1)= 4
- Block.BarLeft(2)= 90
- Block.BarRight(2)= 100
- Block.BorderStyle(2)= 2
- Block.HPercentage(2)= "10"
- Block.VPercentage(2)= "100"
- Block.Text(2) = "!long time!"
- BeginProperty Block.TextFont(2) {0BE35203-8F91-11CE-9DE3-00AA004BB851}
- Name = "Arial"
- Size = 8.25
- Charset = 0
- Weight = 400
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- Block.TextFont3D(2)= 1
- Object.Height = 285
- Object.Width = 8835
- 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
- End
- Begin mcBar_by_The_MCR_Company.mcBar mcBar1
- Height = 645
- Left = 90
- TabIndex = 5
- Top = 360
- Width = 7485
- _ExtentX = 13203
- _ExtentY = 1138
- Blocks = 2
- Block.GradientStyle(1)= 2
- Block.GradientGranularity(1)= 1
- Block.GradientColor(1)= 65535
- Block.Text(1) = "!h%!"
- Block.TextColor(1)= 16777215
- Block.TextAlignment(1)= 7
- BeginProperty Block.TextFont(1) {0BE35203-8F91-11CE-9DE3-00AA004BB851}
- Name = "Arial"
- Size = 9.75
- Charset = 0
- Weight = 700
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- Block.GradientStyle(2)= 1
- Block.GradientGranularity(2)= 1
- Block.GradientColor(2)= 65280
- Block.Text(2) = "!h%!"
- Block.TextColor(2)= 16777215
- Block.TextAlignment(2)= 8
- BeginProperty Block.TextFont(2) {0BE35203-8F91-11CE-9DE3-00AA004BB851}
- Name = "Arial"
- Size = 9.75
- Charset = 0
- Weight = 700
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- Object.Height = 645
- Object.Width = 7485
- BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851}
- Name = "Arial"
- Size = 14.25
- Charset = 0
- Weight = 700
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- Caption = "complex progress bar"
- CaptionAutoAngle= 2
- CaptionFont3D = 2
- End
- Begin mcBar_by_The_MCR_Company.mcBar mcBar2
- Height = 465
- Left = 90
- TabIndex = 4
- Top = 1350
- Width = 7485
- _ExtentX = 13203
- _ExtentY = 820
- Blocks = 3
- Block.BarLeft(1)= 0
- Block.BarRight(1)= 3
- Block.BorderStyle(1)= 2
- Block.Visible(1)= 0 'False
- Block.HPercentage(1)= "3"
- Block.VPercentage(1)= "100"
- Block.GradientStyle(1)= 8
- Block.GradientGranularity(1)= 3
- Block.GradientColor(1)= 16777215
- BeginProperty Block.TextFont(1) {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
- Block.RivetsStyle(1)= 1
- Block.BarLeft(2)= 97
- Block.BarRight(2)= 100
- Block.BorderStyle(2)= 2
- Block.Visible(2)= 0 'False
- Block.HPercentage(2)= "3"
- Block.VPercentage(2)= "100"
- Block.GradientStyle(2)= 8
- Block.GradientGranularity(2)= 3
- Block.GradientColor(2)= 16777215
- BeginProperty Block.TextFont(2) {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
- Block.RivetsStyle(2)= 1
- Block.BarLeft(3)= 3
- Block.BarRight(3)= 97
- Block.BarTop(3) = 65
- Block.BarBottom(3)= 35
- Block.BorderStyle(3)= 2
- Block.BorderWidth(3)= 0
- Block.Visible(3)= 0 'False
- Block.HPercentage(3)= "94"
- Block.VPercentage(3)= "30"
- Block.GradientStyle(3)= 8
- Block.GradientGranularity(3)= 4
- Block.GradientColor(3)= 16777215
- BeginProperty Block.TextFont(3) {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
- Object.Height = 465
- Object.Width = 7485
- BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851}
- Name = "Arial"
- Size = 14.25
- Charset = 0
- Weight = 700
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- Caption = "complex progress bar"
- CaptionAutoAngle= 1
- CaptionFont3D = 2
- GradientStyle = 1
- GradientColor = 65535
- End
- Begin VB.CommandButton Command2
- Caption = "&Start"
- Height = 465
- Left = 7740
- TabIndex = 3
- Top = 1350
- Width = 1005
- End
- Begin VB.CommandButton Command1
- Caption = "&Start"
- Height = 645
- Left = 7740
- TabIndex = 0
- Top = 360
- Width = 1005
- End
- Begin VB.Label Label1
- AutoSize = -1 'True
- Caption = "Progress bar with three blocks:"
- Height = 195
- Index = 1
- Left = 90
- TabIndex = 2
- Top = 1080
- Width = 2175
- End
- Begin VB.Label Label1
- AutoSize = -1 'True
- Caption = "Progress bar with two blocks:"
- Height = 195
- Index = 0
- Left = 90
- TabIndex = 1
- Top = 90
- Width = 2070
- End
- Attribute VB_Name = "frmComplexProgressBar"
- Attribute VB_GlobalNameSpace = False
- Attribute VB_Creatable = False
- Attribute VB_PredeclaredId = True
- Attribute VB_Exposed = False
- Option Explicit
- Private Sub Command1_Click()
- Dim i As Integer
- mcBar1.BlockBarLeft(1) = 0
- mcBar1.BlockBarRight(2) = 100
- For i = 0 To 100
- mcBar1.Redraw = False
- mcBar1.BlockBarRight(1) = i
- mcBar1.BlockBarLeft(2) = i
- mcBar1.Redraw = True
- DoEvents
- Next i
- End Sub
- Private Sub Command2_Click()
- Dim i As Integer
- mcBar2.BlockBarLeft(1) = 0
- mcBar2.BlockBarRight(2) = 100
- mcBar2.RestoreSetting
- For i = 0 To 46
- mcBar2.Redraw = False
- mcBar2.BlockBarLeft(1) = mcBar2.BlockBarLeft(1) + 1
- mcBar2.BlockBarRight(1) = mcBar2.BlockBarRight(1) + 1
- mcBar2.BlockBarLeft(2) = mcBar2.BlockBarLeft(2) - 1
- mcBar2.BlockBarRight(2) = mcBar2.BlockBarRight(2) - 1
- mcBar2.BlockBarLeft(3) = mcBar2.BlockBarRight(1)
- mcBar2.BlockBarRight(3) = mcBar2.BlockBarLeft(2)
- mcBar2.Redraw = True
- DoEvents
- Next i
- End Sub
- Private Sub Form_Load()
- mcStatusBar.TimerTimeEnabled = True
- mcBar2.SetBlockVisible True
- mcBar2.SaveSetting
- End Sub
-