home *** CD-ROM | disk | FTP | other *** search
/ The Best of Windows 95.com 1996 September / WIN95_09964.iso / program / vbmax3d.zip / 3DControls.frm (.txt) < prev    next >
Visual Basic Form  |  1996-06-09  |  6KB  |  210 lines

  1. VERSION 4.00
  2. Begin VB.Form frm3DControls 
  3.    BorderStyle     =   3  'Fixed Dialog
  4.    Caption         =   "VBMax 3D Effects Demo - Control Borders"
  5.    ClientHeight    =   4485
  6.    ClientLeft      =   615
  7.    ClientTop       =   945
  8.    ClientWidth     =   5220
  9.    Height          =   4890
  10.    Icon            =   "3DControls.frx":0000
  11.    Left            =   555
  12.    LinkTopic       =   "Form1"
  13.    LockControls    =   -1  'True
  14.    MaxButton       =   0   'False
  15.    MinButton       =   0   'False
  16.    ScaleHeight     =   4485
  17.    ScaleWidth      =   5220
  18.    ShowInTaskbar   =   0   'False
  19.    Top             =   600
  20.    Width           =   5340
  21.    Begin VB.HScrollBar Slider1 
  22.       Height          =   255
  23.       Left            =   3240
  24.       TabIndex        =   13
  25.       Top             =   360
  26.       Width           =   1575
  27.    End
  28.    Begin VB.Frame Frame1 
  29.       Caption         =   "Size"
  30.       Height          =   1815
  31.       Left            =   180
  32.       TabIndex        =   8
  33.       Top             =   2520
  34.       Width           =   1815
  35.       Begin VB.VScrollBar sliDepth 
  36.          Height          =   1065
  37.          Left            =   1155
  38.          Max             =   10
  39.          TabIndex        =   3
  40.          Top             =   630
  41.          Value           =   1
  42.          Width           =   255
  43.       End
  44.       Begin VB.VScrollBar sliWidth 
  45.          Height          =   1065
  46.          Left            =   270
  47.          Max             =   10
  48.          TabIndex        =   1
  49.          Top             =   630
  50.          Width           =   255
  51.       End
  52.       Begin VB.Label lblWidth 
  53.          AutoSize        =   -1  'True
  54.          Caption         =   "&Width:"
  55.          Height          =   195
  56.          Left            =   210
  57.          TabIndex        =   0
  58.          Top             =   300
  59.          Width           =   465
  60.       End
  61.       Begin VB.Label lblDepth 
  62.          AutoSize        =   -1  'True
  63.          Caption         =   "&Depth:"
  64.          Height          =   195
  65.          Left            =   1080
  66.          TabIndex        =   2
  67.          Top             =   300
  68.          Width           =   480
  69.       End
  70.    End
  71.    Begin VB.VScrollBar VScroll1 
  72.       Height          =   1635
  73.       Left            =   2280
  74.       TabIndex        =   12
  75.       TabStop         =   0   'False
  76.       Top             =   360
  77.       Width           =   255
  78.    End
  79.    Begin VB.Frame Frame2 
  80.       Caption         =   "Style"
  81.       Height          =   1815
  82.       Left            =   2220
  83.       TabIndex        =   9
  84.       Top             =   2520
  85.       Width           =   1635
  86.       Begin VB.OptionButton optRecessed 
  87.          Caption         =   "R&ecessed"
  88.          Height          =   375
  89.          Left            =   240
  90.          TabIndex        =   5
  91.          Top             =   720
  92.          Width           =   1215
  93.       End
  94.       Begin VB.OptionButton optRaised 
  95.          Caption         =   "&Raised"
  96.          Height          =   375
  97.          Left            =   240
  98.          TabIndex        =   4
  99.          Top             =   360
  100.          Value           =   -1  'True
  101.          Width           =   1095
  102.       End
  103.       Begin VB.OptionButton Option1 
  104.          Caption         =   "&No effects"
  105.          Height          =   375
  106.          Left            =   240
  107.          TabIndex        =   6
  108.          Top             =   1080
  109.          Width           =   1215
  110.       End
  111.    End
  112.    Begin VB.TextBox Text1 
  113.       Appearance      =   0  'Flat
  114.       BorderStyle     =   0  'None
  115.       Height          =   495
  116.       Left            =   3420
  117.       TabIndex        =   11
  118.       TabStop         =   0   'False
  119.       Text            =   "Text1"
  120.       Top             =   1500
  121.       Width           =   1215
  122.    End
  123.    Begin VB.CommandButton cmdClose 
  124.       Cancel          =   -1  'True
  125.       Caption         =   "Close"
  126.       Height          =   360
  127.       Left            =   4095
  128.       TabIndex        =   7
  129.       Top             =   3960
  130.       Width           =   900
  131.    End
  132.    Begin VB.Line Line1 
  133.       X1              =   60
  134.       X2              =   5100
  135.       Y1              =   2400
  136.       Y2              =   2400
  137.    End
  138.    Begin VB.Image Image1 
  139.       Appearance      =   0  'Flat
  140.       Height          =   480
  141.       Left            =   720
  142.       Picture         =   "3DControls.frx":000C
  143.       Top             =   360
  144.       Width           =   480
  145.    End
  146.    Begin VB.Label Label1 
  147.       Caption         =   "Label1"
  148.       Height          =   495
  149.       Left            =   360
  150.       TabIndex        =   10
  151.       Top             =   1500
  152.       Width           =   1215
  153.    End
  154. Attribute VB_Name = "frm3DControls"
  155. Attribute VB_Creatable = False
  156. Attribute VB_Exposed = False
  157. Option Explicit
  158. Dim mo3D      As New C3D
  159. Dim mo3DLines As New C3D
  160. Private Sub Form_Load()
  161.     CenterForm Me
  162.     With mo3D
  163.         .Depth = sliDepth.Value
  164.         .Width = sliWidth.Value
  165.         .Style = gnRAISED
  166.     End With
  167.     Draw3D
  168. End Sub
  169. Private Sub Form_Unload(Cancel As Integer)
  170.     Set mo3D = Nothing
  171.     Set mo3DLines = Nothing
  172.     Set frm3DControls = Nothing
  173. End Sub
  174. Private Sub cmdClose_Click()
  175.     Unload Me
  176. End Sub
  177. Private Sub Option1_Click()
  178.     mo3D.Style = gnNORMAL
  179.     Draw3D
  180. End Sub
  181. Private Sub optRaised_Click()
  182.     mo3D.Style = gnRAISED
  183.     Draw3D
  184. End Sub
  185. Private Sub optRecessed_Click()
  186.     mo3D.Style = gnRECESSED
  187.     Draw3D
  188. End Sub
  189. Private Sub sliDepth_Change()
  190.     mo3D.Depth = sliDepth.Value
  191.     Draw3D
  192. End Sub
  193. Private Sub sliWidth_Change()
  194.     mo3D.Width = sliWidth.Value
  195.     Draw3D
  196. End Sub
  197. Private Sub Draw3D()
  198.     Cls
  199.     mo3DLines.Line3D Line1
  200.     With mo3D
  201.         If .Style <> gnNORMAL Then
  202.             .Border Image1
  203.             .Border Label1
  204.             .Border VScroll1
  205.             .Border Text1
  206.             .Border Slider1
  207.         End If
  208.     End With
  209. End Sub
  210.