home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC World Komputer 1997 May
/
Pcwk0597.iso
/
delphi
/
prctvb25.lzh
/
VB.ZIP
/
PDIRECT.FRM
< prev
next >
Wrap
Text File
|
1996-01-20
|
7KB
|
223 lines
VERSION 2.00
Begin Form Direction
BackColor = &H00C0C0C0&
BorderStyle = 1 'Fixed Single
Caption = "Percent Direction and Orientation Properties"
ClientHeight = 3270
ClientLeft = 1860
ClientTop = 1845
ClientWidth = 6210
Height = 3675
Left = 1800
LinkTopic = "Form2"
MDIChild = -1 'True
ScaleHeight = 3270
ScaleWidth = 6210
Top = 1500
Width = 6330
Begin PRCNT Prcnt1
AutoRedraw = -1 'True
AVersion = 2.501
BackColor = &H00C0C0C0&
BarBorder = 0
BarInner = 0
BarOuter = 1
BevelInner = 0 ' 0 - None
BevelOuter = 0 ' 0 - None
BevelWidth = 2
BorderWidth = 2
CaptionID = 0
Captions = 0
Direction = 1 ' 1 - Backward
DisplayMode = 0 ' 0 - Linear
FontID = 0
Height = 3105
Left = 15
Max = 100
Min = 0
MouseControl = -1 'True
OffColor = &H00FFFFFF&
OnColor = &H006E0000&
Orientation = 1 ' 1 - Vertical
Percent = 50
PercentColor = &H00000000&
PercentFontID = 0
PercentStyle = 0 ' 0 - On/Off Negative
Shape = ""
ShapeStyle = 0 ' 0 - Rectangle
TabIndex = 8
Top = 30
Value = 50
Width = 750
ZLoad = PDIRECT.FRX:0000
End
Begin PRCNT Prcnt2
AutoRedraw = -1 'True
AVersion = 2.501
BackColor = &H00C0C0C0&
BarBorder = 0
BarInner = 0
BarOuter = 1
BevelInner = 0 ' 0 - None
BevelOuter = 0 ' 0 - None
BevelWidth = 2
BorderWidth = 2
CaptionID = 0
Captions = 0
Direction = 1 ' 1 - Backward
DisplayMode = 0 ' 0 - Linear
FontID = 0
Height = 1725
Left = 2925
Max = 100
Min = 0
MouseControl = -1 'True
OffColor = &H00404040&
OnColor = &H00000080&
Orientation = 1 ' 1 - Vertical
Percent = 65
PercentColor = &H00000000&
PercentFontID = 0
PercentStyle = 0 ' 0 - On/Off Negative
Shape = ""
ShapeStyle = 2 ' 2 - Tank
TabIndex = 7
Top = 1410
Value = 65
Width = 1650
ZLoad = PDIRECT.FRX:003A
End
Begin PRCNT Prcnt3
AutoRedraw = -1 'True
AVersion = 2.501
BackColor = &H00C0C0C0&
BarBorder = 0
BarInner = 0
BarOuter = 1
BevelInner = 0 ' 0 - None
BevelOuter = 2 ' 2 - Inset
BevelWidth = 2
BorderWidth = 2
CaptionID = 0
Captions = 0
Direction = 0 ' 0 - Forward
DisplayMode = 1 ' 1 - Radial
FontID = 0
Height = 1695
Left = 975
Max = 100
Min = 0
MouseControl = -1 'True
OffColor = &H00808080&
OnColor = &H00808000&
Orientation = 1 ' 1 - Vertical
Percent = 60
PercentColor = &H00000000&
PercentFontID = 0
PercentStyle = 0 ' 0 - On/Off Negative
Shape = ""
ShapeStyle = 1 ' 1 - Ellipse
TabIndex = 6
Top = 1425
Value = 60
Width = 1800
ZLoad = PDIRECT.FRX:0074
End
Begin SSFrame Frame3D2
Caption = "Orientation"
Font3D = 0 'None
Height = 960
Left = 4680
TabIndex = 3
Top = 1125
Width = 1335
Begin SSOption Option3D1
Caption = "Horizontal"
Font3D = 0 'None
Height = 420
Index = 3
Left = 105
TabIndex = 5
TabStop = 0 'False
Top = 195
Width = 1185
End
Begin SSOption Option3D1
Caption = "Vertical"
Font3D = 0 'None
Height = 510
Index = 2
Left = 105
TabIndex = 4
Top = 435
Value = -1 'True
Width = 1200
End
End
Begin SSFrame Frame3D1
Caption = "Direction"
Font3D = 0 'None
Height = 975
Left = 4680
TabIndex = 0
Top = 2115
Width = 1350
Begin SSOption Option3D1
Caption = "Backward"
Font3D = 0 'None
Height = 420
Index = 1
Left = 75
TabIndex = 2
Top = 510
Value = -1 'True
Width = 1230
End
Begin SSOption Option3D1
Caption = "Forward"
Font3D = 0 'None
Height = 420
Index = 0
Left = 90
TabIndex = 1
TabStop = 0 'False
Top = 210
Width = 1185
End
End
End
Sub Option3D1_Click (index As Integer, Value As Integer)
Select Case index
Case 0 'forward
Prcnt1.Direction = 0
Prcnt2.Direction = 0
Prcnt3.Direction = 0
Case 1 'backward
Prcnt1.Direction = 1
Prcnt2.Direction = 1
Prcnt3.Direction = 1
Case 2 'vertical
Prcnt1.Orientation = 1
If Prcnt1.Width > Prcnt1.Height Then
twidth = Prcnt1.Width
Prcnt1.Width = Prcnt1.Height
Prcnt1.Height = twidth
End If
Prcnt2.Orientation = 1
Prcnt3.Orientation = 1
Case 3 'horizontal
If Prcnt1.Width < Prcnt1.Height Then
twidth = Prcnt1.Width
Prcnt1.Width = Prcnt1.Height
Prcnt1.Height = twidth
End If
Prcnt1.Orientation = 0
Prcnt2.Orientation = 0
Prcnt3.Orientation = 0
End Select
End Sub