home *** CD-ROM | disk | FTP | other *** search
- VERSION 4.00
- Begin VB.Form frm3DFXForms
- BorderStyle = 0 'None
- ClientHeight = 4605
- ClientLeft = 3615
- ClientTop = 5730
- ClientWidth = 5505
- ControlBox = 0 'False
- Height = 5010
- Icon = "3DForms.frx":0000
- Left = 3555
- LinkTopic = "Form1"
- LockControls = -1 'True
- MaxButton = 0 'False
- MinButton = 0 'False
- ScaleHeight = 4605
- ScaleWidth = 5505
- ShowInTaskbar = 0 'False
- Top = 5385
- Width = 5625
- Begin VB.CommandButton cmdClose
- Cancel = -1 'True
- Caption = "Close"
- Height = 495
- Left = 3240
- TabIndex = 10
- Top = 3180
- Width = 1215
- End
- Begin VB.Frame Frame2
- Caption = "Style"
- Height = 1635
- Left = 3000
- TabIndex = 6
- Top = 1320
- Width = 1635
- Begin VB.OptionButton Option1
- Caption = "&No effects"
- Height = 375
- Left = 240
- TabIndex = 9
- Top = 1080
- Width = 1215
- End
- Begin VB.OptionButton optRecessed
- Caption = "R&ecessed"
- Height = 375
- Left = 240
- TabIndex = 8
- Top = 720
- Value = -1 'True
- Width = 1215
- End
- Begin VB.OptionButton optRaised
- Caption = "&Raised"
- Height = 375
- Left = 240
- TabIndex = 7
- Top = 360
- Width = 1095
- End
- End
- Begin VB.Frame Frame1
- Caption = "Size"
- Height = 2475
- Left = 900
- TabIndex = 1
- Top = 1320
- Width = 1815
- Begin VB.VScrollBar sliWidth
- Height = 1755
- LargeChange = 5
- Left = 300
- Max = 20
- TabIndex = 3
- Top = 600
- Value = 15
- Width = 255
- End
- Begin VB.VScrollBar sliDepth
- Height = 1755
- LargeChange = 5
- Left = 1170
- Max = 20
- TabIndex = 5
- Top = 600
- Value = 2
- Width = 255
- End
- Begin VB.Label lblDepth
- AutoSize = -1 'True
- Caption = "&Depth:"
- Height = 195
- Left = 1080
- TabIndex = 4
- Top = 300
- Width = 480
- End
- Begin VB.Label lblWidth
- AutoSize = -1 'True
- Caption = "&Width:"
- Height = 195
- Left = 210
- TabIndex = 2
- Top = 300
- Width = 465
- End
- End
- Begin VB.Label Label1
- AutoSize = -1 'True
- Caption = "Form Border Effects"
- BeginProperty Font
- name = "MS Sans Serif"
- charset = 0
- weight = 700
- size = 18
- underline = -1 'True
- italic = 0 'False
- strikethrough = 0 'False
- EndProperty
- ForeColor = &H00000000&
- Height = 435
- Left = 1020
- TabIndex = 0
- Top = 660
- Width = 3525
- End
- Attribute VB_Name = "frm3DFXForms"
- Attribute VB_Creatable = False
- Attribute VB_Exposed = False
- Option Explicit
- Dim mo3D As New cls3D
- Private Sub cmdClose_Click()
- Unload Me
- End Sub
- Private Sub Form_Load()
- Move (Screen.Width - Width) \ 2, (Screen.Height - Height) \ 2
- With mo3D
- .Depth = sliDepth.Value
- .Width = sliWidth.Value
- .Style = gnRECESSED
- End With
- DrawBorder
- End Sub
- Private Sub Form_Unload(Cancel As Integer)
- Set mo3D = Nothing
- Set frm3DFXForms = Nothing
- End Sub
- Private Sub Option1_Click()
- mo3D.Style = gnNORMAL
- Cls
- End Sub
- Private Sub optRaised_Click()
- mo3D.Style = gnRAISED
- DrawBorder
- End Sub
- Private Sub optRecessed_Click()
- mo3D.Style = gnRECESSED
- DrawBorder
- End Sub
- Private Sub sliDepth_Change()
- mo3D.Depth = sliDepth.Value
- DrawBorder
- End Sub
- Private Sub sliWidth_Change()
- mo3D.Width = sliWidth.Value
- DrawBorder
- End Sub
- Sub DrawBorder()
- Cls
- If mo3D.Style <> gnNORMAL Then mo3D.FormBorder Me
- End Sub
-