home *** CD-ROM | disk | FTP | other *** search
- VERSION 5.00
- Object = "{571D9D02-EE3C-11D2-BC70-004005448951}#1.2#0"; "SWBPROG.OCX"
- Begin VB.Form Form1
- BorderStyle = 3 'Fixed Dialog
- Caption = "Progress Bar Sample"
- ClientHeight = 2610
- ClientLeft = 45
- ClientTop = 330
- ClientWidth = 3870
- Icon = "Form1.frx":0000
- LinkTopic = "Form1"
- MaxButton = 0 'False
- MinButton = 0 'False
- ScaleHeight = 2610
- ScaleWidth = 3870
- ShowInTaskbar = 0 'False
- StartUpPosition = 2 'CenterScreen
- Begin VB.Frame Frame1
- Caption = "Orientation"
- Height = 1065
- Left = 1980
- TabIndex = 1
- Top = 1350
- Width = 1665
- Begin VB.OptionButton optDirection
- Caption = "&Horizontal"
- Height = 315
- Index = 0
- Left = 270
- TabIndex = 3
- Top = 300
- Width = 1215
- End
- Begin VB.OptionButton optDirection
- Caption = "&Vertical"
- Height = 315
- Index = 1
- Left = 270
- TabIndex = 2
- Top = 630
- Width = 1065
- End
- End
- Begin VB.Timer Timer1
- Interval = 250
- Left = 3210
- Top = 120
- End
- Begin SWBProgressBar.SWBProgress SWBProgress1
- Height = 1785
- Left = 540
- TabIndex = 0
- Top = 450
- Width = 405
- _ExtentX = 714
- _ExtentY = 3149
- Percent = 50
- Orientation = 2
- BarStyle = 2
- End
- Attribute VB_Name = "Form1"
- Attribute VB_GlobalNameSpace = False
- Attribute VB_Creatable = False
- Attribute VB_PredeclaredId = True
- Attribute VB_Exposed = False
- Private Sub Form_Load()
- optDirection(0).Value = True
- SWBProgress1.Percent = 0
- End Sub
- Private Sub optDirection_Click(Index As Integer)
- If (Index = 0) Then
- SWBProgress1.Orientation = pbHorizontalBar
- SWBProgress1.Height = 285
- SWBProgress1.Width = 3000
- SWBProgress1.Top = 800
- SWBProgress1.Left = 500
- Else
- SWBProgress1.Orientation = pbVerticalBar
- SWBProgress1.Height = 2200
- SWBProgress1.Width = 500
- SWBProgress1.Top = 200
- SWBProgress1.Left = 500
- End If
- End Sub
- Private Sub Timer1_Timer()
- If (SWBProgress1.Percent >= 100) Then SWBProgress1.Percent = 0
- SWBProgress1.Percent = SWBProgress1.Percent + 1
- End Sub
-