home *** CD-ROM | disk | FTP | other *** search
- VERSION 4.00
- Begin VB.Form Form1
- Caption = "pv Shape-3D Visual Basic Demo"
- ClientHeight = 6855
- ClientLeft = 1620
- ClientTop = 1185
- ClientWidth = 6540
- Height = 7260
- Icon = "ShapeDem.frx":0000
- Left = 1560
- LinkTopic = "Form1"
- ScaleHeight = 6855
- ScaleWidth = 6540
- Top = 840
- Width = 6660
- Begin VB.CheckBox ShiftVerticalCheck
- Caption = "Shift Vertical"
- Height = 195
- Left = 4455
- TabIndex = 10
- Top = 4290
- Width = 1400
- End
- Begin VB.CheckBox ShiftHorizontalCheck
- Caption = "Shift Horizontal"
- Height = 195
- Left = 4455
- TabIndex = 9
- Top = 3915
- Width = 1400
- End
- Begin VB.Timer Timer1
- Interval = 1000
- Left = 3660
- Top = 5250
- End
- Begin VB.CommandButton CloseButton
- Caption = "Close"
- Height = 405
- Left = 4710
- TabIndex = 8
- Top = 6030
- Width = 990
- End
- Begin VB.CommandButton StopGoButton
- Caption = "Stop"
- BeginProperty Font
- name = "MS Sans Serif"
- charset = 0
- weight = 400
- size = 18
- underline = 0 'False
- italic = 0 'False
- strikethrough = 0 'False
- EndProperty
- Height = 600
- Left = 4365
- TabIndex = 7
- Top = 5145
- Width = 1575
- End
- Begin VB.CheckBox RotateCheck
- Caption = "Rotate"
- Height = 195
- Left = 4455
- TabIndex = 6
- Top = 3555
- Width = 1400
- End
- Begin VB.CheckBox TransparentCheck
- Caption = "Transparent"
- Height = 195
- Left = 4455
- TabIndex = 5
- Top = 3195
- Width = 1400
- End
- Begin VB.CheckBox SymmetricalCheck
- Caption = "Symmetrical"
- Height = 195
- Left = 4455
- TabIndex = 4
- Top = 2835
- Width = 1400
- End
- Begin PVSHAPE3DLib.PVShape3D Shape3D4
- Height = 555
- Left = 4635
- TabIndex = 14
- Top = 5955
- Width = 1140
- _Version = 65536
- _ExtentX = 2011
- _ExtentY = 979
- _StockProps = 1
- BackColor = 16711680
- LineWidth = 2
- Shape = 2
- ShadowHorizontal= -1
- ShadowVertical = -1
- BackColor = 16711680
- End
- Begin PVSHAPE3DLib.PVShape3D StopGoShape
- Height = 780
- Left = 4260
- TabIndex = 13
- Top = 5040
- Width = 1755
- _Version = 65536
- _ExtentX = 3096
- _ExtentY = 1376
- _StockProps = 1
- BackColor = 255
- LineWidth = 3
- Shape = 2
- BackColor = 255
- End
- Begin PVSHAPE3DLib.PVShape3D Shape3D2
- Height = 2265
- Left = 4170
- TabIndex = 12
- Top = 2520
- Width = 1935
- _Version = 65536
- _ExtentX = 3413
- _ExtentY = 3995
- _StockProps = 1
- LineWidth = 3
- Shape = 2
- Transparent = -1 'True
- End
- Begin PVSHAPE3DLib.PVShape3D Shape3D1
- Height = 1215
- Left = 465
- TabIndex = 11
- Top = 420
- Width = 2775
- _Version = 65536
- _ExtentX = 4895
- _ExtentY = 2143
- _StockProps = 1
- BackColor = 12632256
- LineWidth = 4
- ShadowHorizontal= -1
- ShadowVertical = -2
- BackColor = 12632256
- Transparent = -1 'True
- End
- Begin PVSHAPE3DLib.PVShape3D Shape3
- Height = 1500
- Left = 3765
- TabIndex = 3
- Top = 435
- Width = 2190
- _Version = 65536
- _ExtentX = 3863
- _ExtentY = 2646
- _StockProps = 1
- BackColor = 65280
- LineWidth = 2
- Shape = 7
- ShiftShapeLeft = -20
- ShiftShapeUp = -7
- ShadowHorizontal= -7
- ShadowVertical = -12
- ShadowColor = 128
- LineColor = 16711680
- BackColor = 65280
- End
- Begin PVSHAPE3DLib.PVShape3D Shape4
- Height = 1290
- Left = 1200
- TabIndex = 2
- Top = 660
- Width = 2505
- _Version = 65536
- _ExtentX = 4419
- _ExtentY = 2275
- _StockProps = 1
- BackColor = 16711680
- LineWidth = 4
- Shape = 2
- ShiftShapeLeft = -25
- ShiftShapeUp = -22
- ShadowHorizontal= 3
- ShadowVertical = 3
- ShadowColor = 65535
- LineColor = 255
- BackColor = 16711680
- End
- Begin PVSHAPE3DLib.PVShape3D Shape2
- Height = 2535
- Left = 465
- TabIndex = 1
- Top = 3885
- Width = 1605
- _Version = 65536
- _ExtentX = 2831
- _ExtentY = 4471
- _StockProps = 1
- BackColor = 16711935
- LineWidth = 2
- ShadowHorizontal= -2
- ShadowVertical = -1
- ShadowColor = 65535
- LineColor = 128
- BackColor = 16711935
- End
- Begin PVSHAPE3DLib.PVShape3D Shape1
- Height = 1470
- Left = 465
- TabIndex = 0
- Top = 2205
- Width = 3015
- _Version = 65536
- _ExtentX = 5318
- _ExtentY = 2593
- _StockProps = 1
- End
- Attribute VB_Name = "Form1"
- Attribute VB_Creatable = False
- Attribute VB_Exposed = False
- Dim intTime As Integer
- Private Sub CloseButton_Click()
- End
- End Sub
- Private Sub RotateCheck_Click()
- Shape1.RotateSide = Not Shape1.RotateSide
- Shape2.RotateSide = Not Shape2.RotateSide
- Shape3.RotateSide = Not Shape3.RotateSide
- Shape4.RotateSide = Not Shape4.RotateSide
- End Sub
- Private Sub ShiftHorizontalCheck_Click()
- If ShiftHorizontalCheck Then
- Shape1.ShiftShapeLeft = Shape1.Width \ 80
- Shape2.ShiftShapeLeft = Shape2.Width \ 80
- Else
- Shape1.ShiftShapeLeft = 0
- Shape2.ShiftShapeLeft = 0
- End If
- End Sub
- Private Sub ShiftVerticalCheck_Click()
- If ShiftVerticalCheck Then
- Shape1.ShiftShapeUp = Shape1.Height \ 80
- Shape2.ShiftShapeUp = Shape2.Height \ 80
- Else
- Shape1.ShiftShapeUp = 0
- Shape2.ShiftShapeUp = 0
- End If
- End Sub
- Private Sub StopGoButton_Click()
- Timer1.Enabled = Not Timer1.Enabled
- If Timer1.Enabled Then
- StopGoButton.Caption = "Stop"
- StopGoShape.BackColor = &HFF&
- Else
- StopGoButton.Caption = "Go"
- StopGoShape.BackColor = &HFF00FF
- End If
- End Sub
- Private Sub SymmetricalCheck_Click()
- Dim symmetry As Boolean
- symmetry = Shape1.Symmetrical
- Shape1.Symmetrical = Not symmetry
- Shape2.Symmetrical = Not symmetry
- Shape3.Symmetrical = Not symmetry
- Shape4.Symmetrical = Not symmetry
- ShiftHorizontalCheck.Enabled = symmetry
- ShiftVerticalCheck.Enabled = symmetry
- End Sub
- Private Sub Timer1_Timer()
- intTime = intTime + 1
- If intTime > pvsStar6 Then intTime = pvsEllipse
- Shape1 = intTime
- Shape2 = intTime
- End Sub
- Private Sub TransparentCheck_Click()
- Shape1.Transparent = TransparentCheck
- Shape2.Transparent = TransparentCheck
- Shape3.Transparent = TransparentCheck
- Shape4.Transparent = TransparentCheck
- End Sub
-