home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Programming Tool Box
/
SIMS_2.iso
/
tool
/
design
/
mbarvb
/
form1.frm
< prev
next >
Wrap
Text File
|
1995-02-26
|
4KB
|
126 lines
VERSION 2.00
Begin Form Form1
BackColor = &H00C0C0C0&
Caption = "Meter Bar Demo"
ClientHeight = 3735
ClientLeft = 1095
ClientTop = 1485
ClientWidth = 3930
Height = 4140
Left = 1035
LinkTopic = "Form1"
ScaleHeight = 3735
ScaleWidth = 3930
Top = 1140
Width = 4050
Begin MeterBar MeterBar4
BackColor = &H00FFFFFF&
BorderStyle = 2 'Three D
FontBold = -1 'True
FontItalic = -1 'True
FontName = "MS Sans Serif"
FontSize = 12
FontStrikethru = 0 'False
FontUnderline = 0 'False
ForeColor = &H00000080&
Height = 375
LEDSpace = 0
LEDThick = 0
Left = 1260
Margin = 2
Orientation = 0 'Horizontal
Position = 15
Range = 150
Top = 1740
Width = 2595
End
Begin MeterBar MeterBar3
BackColor = &H00C0C0C0&
BorderStyle = 2 'Three D
ForeColor = &H00FF0000&
Height = 195
LEDSpace = 2
LEDThick = 90
Left = 1260
Margin = 2
Orientation = 0 'Horizontal
Position = 35
Range = 50
Top = 1380
Width = 2595
End
Begin MeterBar MeterBar2
BackColor = &H00C0C0C0&
BorderStyle = 1 'Fixed Single
FontBold = 0 'False
FontItalic = 0 'False
FontName = "MS Serif"
FontSize = 8.25
FontStrikethru = 0 'False
FontUnderline = 0 'False
ForeColor = &H00000000&
Height = 2175
LEDSpace = 0
LEDThick = 0
Left = 540
Margin = 0
Orientation = 1 'Vertical
Position = 1
Range = 50
Top = 1380
Width = 555
End
Begin MeterBar MeterBar1
BackColor = &H00C0C0C0&
BorderStyle = 0 'None
FontBold = -1 'True
FontItalic = 0 'False
FontName = "MS Sans Serif"
FontSize = 8.25
FontStrikethru = 0 'False
FontUnderline = -1 'True
ForeColor = &H00800080&
Height = 2175
LEDSpace = 5
LEDThick = 75
Left = 120
Margin = 3
Orientation = 1 'Vertical
Position = 50
Range = 200
Top = 1380
Width = 255
End
Begin Timer Timer1
Interval = 150
Left = 3420
Top = 3180
End
Begin Label Label2
BackColor = &H00C0C0C0&
Caption = "Meter bars can also have three different border styles: none, fixed single and 3d!"
Height = 495
Left = 120
TabIndex = 1
Top = 720
Width = 3675
End
Begin Label Label1
BackColor = &H00C0C0C0&
Caption = "The bar can be horizontal or vertical. It can also display an LED style bar."
Height = 495
Left = 120
TabIndex = 0
Top = 120
Width = 3675
End
End
Sub Timer1_Timer ()
If MeterBar1.Position < MeterBar1.Range Then MeterBar1.Position = MeterBar1.Position + 1 Else MeterBar1.Position = 0
If MeterBar2.Position < MeterBar2.Range Then MeterBar2.Position = MeterBar2.Position + 1 Else MeterBar2.Position = 0
If MeterBar3.Position < MeterBar3.Range Then MeterBar3.Position = MeterBar3.Position + 1 Else MeterBar3.Position = 0
If MeterBar4.Position < MeterBar4.Range Then MeterBar4.Position = MeterBar4.Position + 1 Else MeterBar4.Position = 0
End Sub