home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Visual Basic 4 Unleashed
/
Visual_Basic_4_Unleashed_SAMS_Publishing_1995.iso
/
source
/
chap21
/
frm221.frm
(
.txt
)
< prev
next >
Wrap
Visual Basic Form
|
1995-08-24
|
6KB
|
202 lines
VERSION 4.00
Begin VB.Form frmss3d
Caption = "Form1"
ClientHeight = 5940
ClientLeft = 2550
ClientTop = 1515
ClientWidth = 6690
Height = 6345
Left = 2490
LinkTopic = "Form1"
ScaleHeight = 5940
ScaleWidth = 6690
Top = 1170
Width = 6810
Begin VB.PictureBox Picture1
Align = 1 'Align Top
Appearance = 0 'Flat
BackColor = &H00C0C0C0&
ForeColor = &H80000008&
Height = 465
Left = 0
ScaleHeight = 435
ScaleWidth = 6660
TabIndex = 2
Top = 0
Width = 6690
Begin Threed.SSCommand cmdhelp
Height = 390
Left = 5880
TabIndex = 6
Top = 30
Width = 420
_version = 65536
_extentx = 741
_extenty = 688
_stockprops = 78
bevelwidth = 0
autosize = 2
picture = "FRM221.frx":0000
End
Begin Threed.SSRibbon ribbold
Height = 390
Left = 4260
TabIndex = 5
Top = 30
Width = 420
_version = 65536
_extentx = 741
_extenty = 688
_stockprops = 65
backcolor = 12632256
autosize = 2
bevelwidth = 1
pictureup = "FRM221.frx":019A
picturedn = "FRM221.frx":0334
picturedisabled = "FRM221.frx":04CE
End
Begin Threed.SSRibbon ribcenter
Height = 390
Left = 4800
TabIndex = 4
Top = 30
Width = 420
_version = 65536
_extentx = 741
_extenty = 688
_stockprops = 65
backcolor = 12632256
groupnumber = 2
autosize = 2
bevelwidth = 1
pictureup = "FRM221.frx":0668
picturedn = "FRM221.frx":0802
picturedisabled = "FRM221.frx":099C
End
Begin Threed.SSRibbon ribitalic
Height = 390
Left = 5280
TabIndex = 3
Top = 30
Width = 420
_version = 65536
_extentx = 741
_extenty = 688
_stockprops = 65
backcolor = 12632256
groupnumber = 3
autosize = 2
bevelwidth = 1
pictureup = "FRM221.frx":0B36
picturedn = "FRM221.frx":0CD0
picturedisabled = "FRM221.frx":0E6A
End
End
Begin VB.CommandButton cmdgauge
Caption = "&Gauge"
Height = 495
Left = 1920
TabIndex = 1
Top = 3300
Width = 1215
End
Begin Threed.SSPanel pnlpercent
Height = 300
Left = 2340
TabIndex = 8
Top = 2880
Visible = 0 'False
Width = 375
_version = 65536
_extentx = 661
_extenty = 529
_stockprops = 15
caption = "99 %"
forecolor = 255
backcolor = 12632256
borderwidth = 1
bevelouter = 0
font3d = 1
End
Begin GaugeLib.Gauge Gauge1
Height = 1575
Left = 1500
TabIndex = 7
Top = 1200
Visible = 0 'False
Width = 2115
_version = 65536
_extentx = 3731
_extenty = 2778
_stockprops = 73
forecolor = 255
backcolor = 12632256
innertop = 20
innerleft = 20
innerright = 20
innerbottom = 20
style = 3
needlewidth = 2
picture = "FRM221.frx":1004
End
Begin Threed.SSPanel pnlgauge
Height = 315
Left = 1800
TabIndex = 0
Top = 5520
Visible = 0 'False
Width = 2115
_version = 65536
_extentx = 3731
_extenty = 556
_stockprops = 15
backcolor = 12632256
borderwidth = 1
bevelinner = 1
floodtype = 1
End
Attribute VB_Name = "frmss3d"
Attribute VB_Creatable = False
Attribute VB_Exposed = False
Option Explicit
Private Sub cmdgauge_Click()
Dim x As Integer
Dim y As Integer
pnlgauge.Visible = True
Screen.MousePointer = 11
' Gauge in Panel
For x = 1 To 100
pnlgauge.FloodPercent = x
If x = 49 Then
pnlgauge.ForeColor = &HFFFFFF
End If
For y = 1 To 1000
DoEvents
Next y
Next x
' Useing the Gauge Control
Gauge1.Visible = True
pnlpercent.Visible = True
For x = 1 To 100
Gauge1.VALUE = x
pnlpercent.Caption = CStr(x) & " %"
If x = 49 Then
pnlgauge.ForeColor = &HFFFFFF
End If
For y = 1 To 1000
DoEvents
Next y
Next x
pnlgauge.Visible = False
Gauge1.Visible = False
pnlpercent.Visible = False
Screen.MousePointer = 0
End Sub
Private Sub MhState2_Change()
End Sub
Private Sub cmdhelp_Click()
MsgBox " Help Button Was Pressed "
End Sub
Private Sub Timer1_Timer()
End Sub