home *** CD-ROM | disk | FTP | other *** search
- VERSION 4.00
- Begin VB.Form Form1
- Caption = "pv Text-3D Visual Basic Demo"
- ClientHeight = 5865
- ClientLeft = 1170
- ClientTop = 1620
- ClientWidth = 9465
- Height = 6270
- Icon = "TextDemo.frx":0000
- Left = 1110
- LinkTopic = "Form1"
- ScaleHeight = 5865
- ScaleWidth = 9465
- Top = 1275
- Width = 9585
- Begin VB.CheckBox TextOnFrameCheck
- Caption = "Text On Frame"
- Height = 210
- Left = 5505
- TabIndex = 3
- Top = 5145
- Width = 1395
- End
- Begin VB.CheckBox ShadowCheck
- Caption = "Shadow"
- Height = 195
- Left = 4350
- TabIndex = 2
- Top = 5160
- Width = 975
- End
- Begin VB.ComboBox ColorCombo
- Height = 315
- ItemData = "TextDemo.frx":030A
- Left = 2745
- List = "TextDemo.frx":0320
- Style = 2 'Dropdown List
- TabIndex = 1
- Top = 5100
- Width = 1410
- End
- Begin VB.Timer Timer1
- Interval = 1000
- Left = 9030
- Top = 4680
- End
- Begin VB.CommandButton CloseButton
- Caption = "Close"
- Height = 345
- Left = 7995
- TabIndex = 4
- Top = 5280
- Width = 675
- End
- Begin PVTEXT3DLib.PVText3D StopGoText3D
- Height = 615
- Left = 7605
- TabIndex = 14
- Top = 4545
- Width = 1395
- _Version = 65536
- _ExtentX = 2461
- _ExtentY = 1085
- _StockProps = 29
- Text = "Stop"
- BackColor = 255
- BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851}
- name = "Arial"
- charset = 0
- weight = 700
- size = 18
- underline = 0 'False
- italic = 0 'False
- strikethrough = 0 'False
- EndProperty
- Text = "Stop"
- Alignment = 1
- FrameStyle = 49
- OffsetHorizontal= -1
- OffsetVertical = -1
- BackColor = 255
- End
- Begin PVTEXT3DLib.PVText3D Text3D3
- Height = 495
- Left = 3420
- TabIndex = 13
- Top = 1695
- Width = 2760
- _Version = 65536
- _ExtentX = 4868
- _ExtentY = 873
- _StockProps = 29
- Text = "Frame Styles:"
- ForeColor = 8421504
- BackColor = 12632256
- BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851}
- name = "Courier"
- charset = 0
- weight = 700
- size = 15
- underline = 0 'False
- italic = 0 'False
- strikethrough = 0 'False
- EndProperty
- Text = "Frame Styles:"
- TextStyle = 2
- FrameStyle = 0
- OffsetVertical = 0
- HighlightColor = 65535
- ShadowColor = 0
- BackColor = 12632256
- Transparent = -1 'True
- End
- Begin PVTEXT3DLib.PVText3D Text3D1
- Height = 1215
- Left = 360
- TabIndex = 12
- Top = 240
- Width = 8805
- _Version = 65536
- _ExtentX = 15531
- _ExtentY = 2143
- _StockProps = 29
- Text = "pv Text-3D Demo"
- ForeColor = 255
- BackColor = 16711680
- BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851}
- name = "Arial"
- charset = 0
- weight = 700
- size = 36
- underline = 0 'False
- italic = 0 'False
- strikethrough = 0 'False
- EndProperty
- Text = "pv Text-3D Demo"
- Alignment = 1
- TextStyle = 2
- OffsetHorizontal= -3
- OffsetVertical = -1
- HighlightColor = 65535
- ShadowColor = 128
- BackColor = 16711680
- FrameShadow = -1 'True
- End
- Begin PVTEXT3DLib.PVText3D SharpFrame
- Height = 705
- Left = 360
- TabIndex = 11
- Top = 3480
- Width = 1995
- _Version = 65536
- _ExtentX = 3519
- _ExtentY = 1244
- _StockProps = 29
- Text = "Sharp0"
- ForeColor = 16777215
- BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851}
- name = "MS Sans Serif"
- charset = 0
- weight = 700
- size = 9.75
- underline = 0 'False
- italic = 0 'False
- strikethrough = 0 'False
- EndProperty
- Text = "Sharp0"
- FrameStyle = 71
- OffsetHorizontal= 4
- OffsetVertical = 3
- HighlightColor = 0
- End
- Begin PVTEXT3DLib.PVText3D FrameFrame
- Height = 705
- Left = 7200
- TabIndex = 10
- Top = 3480
- Width = 1995
- _Version = 65536
- _ExtentX = 3519
- _ExtentY = 1244
- _StockProps = 29
- Text = "Frame0"
- ForeColor = 16776960
- BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851}
- name = "MS Sans Serif"
- charset = 0
- weight = 700
- size = 9.75
- underline = 0 'False
- italic = 0 'False
- strikethrough = 0 'False
- EndProperty
- Text = "Frame0"
- TextStyle = 2
- FrameStyle = 61
- OffsetHorizontal= -1
- OffsetVertical = -1
- ShadowColor = 16711680
- End
- Begin PVTEXT3DLib.PVText3D PictureFrame
- Height = 705
- Left = 7200
- TabIndex = 9
- Top = 2280
- Width = 1995
- _Version = 65536
- _ExtentX = 3519
- _ExtentY = 1244
- _StockProps = 29
- Text = "Picture0"
- ForeColor = 65280
- BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851}
- name = "MS Sans Serif"
- charset = 0
- weight = 700
- size = 9.75
- underline = 0 'False
- italic = 0 'False
- strikethrough = 0 'False
- EndProperty
- Text = "Picture0"
- TextStyle = 2
- FrameStyle = 51
- HighlightColor = 65535
- ShadowColor = 32768
- End
- Begin PVTEXT3DLib.PVText3D RaisedFrame
- Height = 705
- Left = 4920
- TabIndex = 8
- Top = 3480
- Width = 1995
- _Version = 65536
- _ExtentX = 3519
- _ExtentY = 1244
- _StockProps = 29
- Text = "Raised0"
- BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851}
- name = "MS Sans Serif"
- charset = 0
- weight = 700
- size = 9.75
- underline = 0 'False
- italic = 0 'False
- strikethrough = 0 'False
- EndProperty
- Text = "Raised0"
- FrameStyle = 41
- OffsetHorizontal= -1
- OffsetVertical = -1
- End
- Begin PVTEXT3DLib.PVText3D SunkenFrame
- Height = 705
- Left = 4920
- TabIndex = 7
- Top = 2280
- Width = 1995
- _Version = 65536
- _ExtentX = 3519
- _ExtentY = 1244
- _StockProps = 29
- Text = "Sunken0"
- BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851}
- name = "MS Sans Serif"
- charset = 0
- weight = 700
- size = 9.75
- underline = 0 'False
- italic = 0 'False
- strikethrough = 0 'False
- EndProperty
- Text = "Sunken0"
- FrameStyle = 31
- OffsetVertical = 0
- End
- Begin PVTEXT3DLib.PVText3D OutdentFrame
- Height = 705
- Left = 2640
- TabIndex = 6
- Top = 3480
- Width = 1995
- _Version = 65536
- _ExtentX = 3519
- _ExtentY = 1244
- _StockProps = 29
- Text = "Outdent0"
- BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851}
- name = "MS Sans Serif"
- charset = 0
- weight = 700
- size = 9.75
- underline = 0 'False
- italic = 0 'False
- strikethrough = 0 'False
- EndProperty
- Text = "Outdent0"
- FrameStyle = 21
- OffsetHorizontal= -1
- OffsetVertical = -1
- End
- Begin PVTEXT3DLib.PVText3D IndentFrame
- Height = 705
- Left = 2640
- TabIndex = 5
- Top = 2280
- Width = 1995
- _Version = 65536
- _ExtentX = 3519
- _ExtentY = 1244
- _StockProps = 29
- Text = "Indent0"
- BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851}
- name = "MS Sans Serif"
- charset = 0
- weight = 700
- size = 9.75
- underline = 0 'False
- italic = 0 'False
- strikethrough = 0 'False
- EndProperty
- Text = "Indent0"
- FrameStyle = 11
- End
- Begin PVTEXT3DLib.PVText3D PlaneFrame
- Height = 705
- Left = 360
- TabIndex = 0
- Top = 2280
- Width = 1995
- _Version = 65536
- _ExtentX = 3519
- _ExtentY = 1244
- _StockProps = 29
- Text = "Plane0"
- BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851}
- name = "MS Sans Serif"
- charset = 0
- weight = 700
- size = 9.75
- underline = 0 'False
- italic = 0 'False
- strikethrough = 0 'False
- EndProperty
- Text = "Plane0"
- FrameStyle = 1
- OffsetHorizontal= 0
- OffsetVertical = 0
- End
- Begin PVTEXT3DLib.PVText3D Text3D5
- Height = 1200
- Left = 2505
- TabIndex = 16
- Top = 4455
- Width = 4620
- _Version = 65536
- _ExtentX = 8149
- _ExtentY = 2117
- _StockProps = 29
- Text = "More Frame Settings"
- ForeColor = -2147483633
- BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851}
- name = "MS Sans Serif"
- charset = 0
- weight = 700
- size = 12
- underline = 0 'False
- italic = 0 'False
- strikethrough = 0 'False
- EndProperty
- Text = "More Frame Settings"
- Alignment = 2
- TextStyle = 2
- FrameStyle = 23
- OffsetHorizontal= -1
- OffsetVertical = -1
- ShadowColor = 0
- Transparent = -1 'True
- TextOnFrame = -1 'True
- End
- Begin PVTEXT3DLib.PVText3D Text3D4
- Height = 270
- Left = 2745
- TabIndex = 15
- Top = 4815
- Width = 1335
- _Version = 65536
- _ExtentX = 2355
- _ExtentY = 476
- _StockProps = 29
- Text = "Frame Color:"
- BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851}
- name = "Arial"
- charset = 0
- weight = 700
- size = 9.74
- underline = 0 'False
- italic = 0 'False
- strikethrough = 0 'False
- EndProperty
- Text = "Frame Color:"
- FrameStyle = 0
- OffsetHorizontal= 0
- Transparent = -1 'True
- 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 ColorCombo_Click()
- PlaneFrame.FrameColor = ColorCombo.ListIndex
- IndentFrame.FrameColor = ColorCombo.ListIndex
- OutdentFrame.FrameColor = ColorCombo.ListIndex
- SunkenFrame.FrameColor = ColorCombo.ListIndex
- RaisedFrame.FrameColor = ColorCombo.ListIndex
- PictureFrame.FrameColor = ColorCombo.ListIndex
- FrameFrame.FrameColor = ColorCombo.ListIndex
- SharpFrame.FrameColor = ColorCombo.ListIndex
- End Sub
- Private Sub Form_Load()
- ColorCombo.ListIndex = 0
- End Sub
- Private Sub ShadowCheck_Click()
- PlaneFrame.FrameShadow = ShadowCheck
- IndentFrame.FrameShadow = ShadowCheck
- OutdentFrame.FrameShadow = ShadowCheck
- SunkenFrame.FrameShadow = ShadowCheck
- RaisedFrame.FrameShadow = ShadowCheck
- PictureFrame.FrameShadow = ShadowCheck
- FrameFrame.FrameShadow = ShadowCheck
- SharpFrame.FrameShadow = ShadowCheck
- End Sub
- Private Sub StopGoButton_Click()
- End Sub
- Private Sub StopGoText3D_MouseDown(Button As Integer, Shift As Integer, x As Single, y As Single)
- StopGoText3D.FrameStyle = pvtSunken + 8
- StopGoText3D.ForeColor = RGB(192, 192, 192)
- StopGoText3D.HighlightColor = RGB(0, 0, 0)
- End Sub
- Private Sub StopGoText3D_MouseUp(Button As Integer, Shift As Integer, x As Single, y As Single)
- Dim stopTime As Boolean
- stopTime = Timer1.Enabled
- Timer1.Enabled = Not stopTime
- StopGoText3D.FrameStyle = pvtRaised + 8
- StopGoText3D.ForeColor = RGB(0, 0, 0)
- StopGoText3D.HighlightColor = RGB(255, 255, 255)
- If stopTime Then
- StopGoText3D.Text = "Go"
- StopGoText3D.BackColor = RGB(255, 0, 255)
- Else
- StopGoText3D.Text = "Stop"
- StopGoText3D.BackColor = RGB(255, 0, 0)
- End If
- End Sub
- Private Sub TextOnFrameCheck_Click()
- PlaneFrame.TextOnFrame = TextOnFrameCheck
- IndentFrame.TextOnFrame = TextOnFrameCheck
- OutdentFrame.TextOnFrame = TextOnFrameCheck
- SunkenFrame.TextOnFrame = TextOnFrameCheck
- RaisedFrame.TextOnFrame = TextOnFrameCheck
- PictureFrame.TextOnFrame = TextOnFrameCheck
- FrameFrame.TextOnFrame = TextOnFrameCheck
- SharpFrame.TextOnFrame = TextOnFrameCheck
- End Sub
- Private Sub Timer1_Timer()
- intTime = intTime + 1
- If intTime >= 10 Then intTime = 0
- PlaneFrame.FrameStyle = pvtPlane + intTime
- 'Text is default property
- 'PlaneFrame.Text = "Plane" & intTime
- PlaneFrame = "Plane" & intTime
- IndentFrame.FrameStyle = pvtIndent + intTime
- IndentFrame = "Indent" & intTime
- OutdentFrame.FrameStyle = pvtOutdent + intTime
- OutdentFrame = "Outdent" & intTime
- SunkenFrame.FrameStyle = pvtSunken + intTime
- SunkenFrame = "Sunken" & intTime
- RaisedFrame.FrameStyle = pvtRaised + intTime
- RaisedFrame = "Raised" & intTime
- PictureFrame.FrameStyle = pvtPicture + intTime
- PictureFrame = "Picture" & intTime
- FrameFrame.FrameStyle = pvtFrame + intTime
- FrameFrame = "Frame" & intTime
- SharpFrame.FrameStyle = pvtSharp + intTime
- SharpFrame = "Sharp" & intTime
- End Sub
-