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

  1. VERSION 4.00
  2. Begin VB.Form frm3DLines 
  3.    BorderStyle     =   3  'Fixed Dialog
  4.    Caption         =   "VBMax 3D Effects Demo - Lines"
  5.    ClientHeight    =   4275
  6.    ClientLeft      =   630
  7.    ClientTop       =   1515
  8.    ClientWidth     =   5850
  9.    Height          =   4680
  10.    Icon            =   "3DLines.frx":0000
  11.    Left            =   570
  12.    LinkTopic       =   "Form1"
  13.    LockControls    =   -1  'True
  14.    MaxButton       =   0   'False
  15.    MinButton       =   0   'False
  16.    ScaleHeight     =   4275
  17.    ScaleWidth      =   5850
  18.    ShowInTaskbar   =   0   'False
  19.    Top             =   1170
  20.    Width           =   5970
  21.    Begin VB.Frame Frame2 
  22.       Caption         =   "Style"
  23.       Height          =   1275
  24.       Left            =   3180
  25.       TabIndex        =   3
  26.       Top             =   1560
  27.       Width           =   1635
  28.       Begin VB.OptionButton optRaised 
  29.          Caption         =   "&Raised"
  30.          Height          =   375
  31.          Left            =   240
  32.          TabIndex        =   0
  33.          Top             =   360
  34.          Value           =   -1  'True
  35.          Width           =   1095
  36.       End
  37.       Begin VB.OptionButton optRecessed 
  38.          Caption         =   "R&ecessed"
  39.          Height          =   375
  40.          Left            =   240
  41.          TabIndex        =   1
  42.          Top             =   720
  43.          Width           =   1215
  44.       End
  45.    End
  46.    Begin VB.CommandButton cmdClose 
  47.       Cancel          =   -1  'True
  48.       Caption         =   "Close"
  49.       Height          =   360
  50.       Left            =   3540
  51.       TabIndex        =   2
  52.       Top             =   3300
  53.       Width           =   900
  54.    End
  55.    Begin VB.Line lneLine 
  56.       Index           =   23
  57.       X1              =   2100
  58.       X2              =   2460
  59.       Y1              =   3840
  60.       Y2              =   3540
  61.    End
  62.    Begin VB.Line lneLine 
  63.       Index           =   22
  64.       X1              =   1020
  65.       X2              =   1380
  66.       Y1              =   3840
  67.       Y2              =   3540
  68.    End
  69.    Begin VB.Line lneLine 
  70.       Index           =   21
  71.       X1              =   2100
  72.       X2              =   2460
  73.       Y1              =   2760
  74.       Y2              =   2460
  75.    End
  76.    Begin VB.Line lneLine 
  77.       Index           =   20
  78.       X1              =   1020
  79.       X2              =   1380
  80.       Y1              =   2760
  81.       Y2              =   2460
  82.    End
  83.    Begin VB.Line lneLine 
  84.       Index           =   19
  85.       X1              =   1380
  86.       X2              =   2460
  87.       Y1              =   3540
  88.       Y2              =   3540
  89.    End
  90.    Begin VB.Line lneLine 
  91.       Index           =   18
  92.       X1              =   1380
  93.       X2              =   2460
  94.       Y1              =   2460
  95.       Y2              =   2460
  96.    End
  97.    Begin VB.Line lneLine 
  98.       Index           =   17
  99.       X1              =   1380
  100.       X2              =   1380
  101.       Y1              =   2460
  102.       Y2              =   3540
  103.    End
  104.    Begin VB.Line lneLine 
  105.       Index           =   16
  106.       X1              =   2460
  107.       X2              =   2460
  108.       Y1              =   2460
  109.       Y2              =   3540
  110.    End
  111.    Begin VB.Line lneLine 
  112.       Index           =   15
  113.       X1              =   2040
  114.       X2              =   5280
  115.       Y1              =   960
  116.       Y2              =   960
  117.    End
  118.    Begin VB.Line lneLine 
  119.       Index           =   14
  120.       X1              =   180
  121.       X2              =   180
  122.       Y1              =   120
  123.       Y2              =   4140
  124.    End
  125.    Begin VB.Line lneLine 
  126.       Index           =   13
  127.       X1              =   60
  128.       X2              =   5760
  129.       Y1              =   4020
  130.       Y2              =   4020
  131.    End
  132.    Begin VB.Line lneLine 
  133.       Index           =   12
  134.       X1              =   5580
  135.       X2              =   5580
  136.       Y1              =   120
  137.       Y2              =   4140
  138.    End
  139.    Begin VB.Line lneLine 
  140.       Index           =   11
  141.       X1              =   60
  142.       X2              =   5760
  143.       Y1              =   240
  144.       Y2              =   240
  145.    End
  146.    Begin VB.Line lneLine 
  147.       Index           =   10
  148.       X1              =   1200
  149.       X2              =   1200
  150.       Y1              =   480
  151.       Y2              =   2340
  152.    End
  153.    Begin VB.Line lneLine 
  154.       Index           =   9
  155.       X1              =   360
  156.       X2              =   1980
  157.       Y1              =   1200
  158.       Y2              =   1200
  159.    End
  160.    Begin VB.Line lneLine 
  161.       Index           =   8
  162.       X1              =   720
  163.       X2              =   1620
  164.       Y1              =   1680
  165.       Y2              =   780
  166.    End
  167.    Begin VB.Line lneLine 
  168.       Index           =   7
  169.       X1              =   720
  170.       X2              =   1620
  171.       Y1              =   780
  172.       Y2              =   780
  173.    End
  174.    Begin VB.Line lneLine 
  175.       Index           =   6
  176.       X1              =   2520
  177.       X2              =   2520
  178.       Y1              =   600
  179.       Y2              =   2040
  180.    End
  181.    Begin VB.Line lneLine 
  182.       Index           =   5
  183.       X1              =   2460
  184.       X2              =   2460
  185.       Y1              =   420
  186.       Y2              =   2220
  187.    End
  188.    Begin VB.Line lneLine 
  189.       Index           =   4
  190.       X1              =   2100
  191.       X2              =   2100
  192.       Y1              =   2760
  193.       Y2              =   3840
  194.    End
  195.    Begin VB.Line lneLine 
  196.       Index           =   3
  197.       X1              =   1020
  198.       X2              =   1020
  199.       Y1              =   2760
  200.       Y2              =   3840
  201.    End
  202.    Begin VB.Line lneLine 
  203.       Index           =   2
  204.       X1              =   1020
  205.       X2              =   2100
  206.       Y1              =   2760
  207.       Y2              =   2760
  208.    End
  209.    Begin VB.Line lneLine 
  210.       Index           =   1
  211.       X1              =   1020
  212.       X2              =   2100
  213.       Y1              =   3840
  214.       Y2              =   3840
  215.    End
  216.    Begin VB.Line lneLine 
  217.       Index           =   0
  218.       X1              =   2220
  219.       X2              =   4980
  220.       Y1              =   1020
  221.       Y2              =   1020
  222.    End
  223. Attribute VB_Name = "frm3DLines"
  224. Attribute VB_Creatable = False
  225. Attribute VB_Exposed = False
  226. Option Explicit
  227. Dim mo3D  As New C3D
  228. Private Sub Form_Load()
  229.     CenterForm Me
  230.     mo3D.Style = gnRAISED
  231.     MakeLines3D
  232. End Sub
  233. Private Sub Form_Unload(Cancel As Integer)
  234.     Set mo3D = Nothing
  235.     Set frm3DLines = Nothing
  236. End Sub
  237. Private Sub optRaised_Click()
  238.     mo3D.Style = gnRAISED
  239.     MakeLines3D
  240. End Sub
  241. Private Sub optRecessed_Click()
  242.     mo3D.Style = gnRECESSED
  243.     MakeLines3D
  244. End Sub
  245. Sub MakeLines3D()
  246. Dim i As Integer
  247.     With mo3D
  248.         For i = 0 To 23
  249.             .Line3D lneLine(i)
  250.         Next i
  251.     End With
  252. End Sub
  253. Private Sub cmdClose_Click()
  254.     Unload Me
  255. End Sub
  256.