home *** CD-ROM | disk | FTP | other *** search
/ Programming Tool Box / SIMS_2.iso / code / design / 3ddemo / form1.frm (.txt) < prev    next >
Encoding:
Visual Basic Form  |  1995-02-26  |  3.4 KB  |  123 lines

  1. VERSION 2.00
  2. Begin Form Form1 
  3.    BorderStyle     =   3  'Fixed Double
  4.    Caption         =   "CTL3D Dialog Example"
  5.    ClientHeight    =   3768
  6.    ClientLeft      =   72
  7.    ClientTop       =   384
  8.    ClientWidth     =   6168
  9.    Height          =   4188
  10.    Left            =   24
  11.    LinkTopic       =   "Form1"
  12.    MaxButton       =   0   'False
  13.    MinButton       =   0   'False
  14.    ScaleHeight     =   3768
  15.    ScaleWidth      =   6168
  16.    Top             =   12
  17.    Width           =   6264
  18.    Begin DirListBox Dir1 
  19.       Height          =   888
  20.       Left            =   2664
  21.       TabIndex        =   9
  22.       Top             =   1584
  23.       Width           =   1956
  24.    End
  25.    Begin FileListBox File1 
  26.       Height          =   1176
  27.       Left            =   4752
  28.       TabIndex        =   8
  29.       Top             =   1584
  30.       Width           =   1164
  31.    End
  32.    Begin DriveListBox Drive1 
  33.       Height          =   288
  34.       Left            =   2664
  35.       TabIndex        =   7
  36.       Top             =   2592
  37.       Width           =   1956
  38.    End
  39.    Begin ListBox List1 
  40.       Height          =   1368
  41.       Left            =   288
  42.       TabIndex        =   6
  43.       Top             =   1584
  44.       Width           =   2172
  45.    End
  46.    Begin OptionButton Option1 
  47.       Caption         =   "Option1"
  48.       Height          =   300
  49.       Left            =   2880
  50.       TabIndex        =   5
  51.       Top             =   936
  52.       Value           =   -1  'True
  53.       Visible         =   0   'False
  54.       Width           =   1452
  55.    End
  56.    Begin CheckBox Check1 
  57.       Caption         =   "Check1"
  58.       Height          =   228
  59.       Left            =   2880
  60.       TabIndex        =   4
  61.       Top             =   648
  62.       Visible         =   0   'False
  63.       Width           =   1164
  64.    End
  65.    Begin ComboBox Combo1 
  66.       Height          =   288
  67.       Left            =   648
  68.       TabIndex        =   3
  69.       Text            =   "Combo1"
  70.       Top             =   648
  71.       Width           =   1524
  72.    End
  73.    Begin TextBox Text1 
  74.       Height          =   288
  75.       Left            =   648
  76.       TabIndex        =   0
  77.       Text            =   "Text1"
  78.       Top             =   144
  79.       Width           =   5124
  80.    End
  81.    Begin CommandButton Command2 
  82.       Caption         =   "Exit"
  83.       Height          =   372
  84.       Left            =   2232
  85.       TabIndex        =   1
  86.       Top             =   3240
  87.       Width           =   1668
  88.    End
  89.    Begin Label Label1 
  90.       Caption         =   "Label1"
  91.       Height          =   228
  92.       Left            =   648
  93.       TabIndex        =   2
  94.       Top             =   1080
  95.       Width           =   1884
  96.    End
  97. Option Explicit
  98. Sub Command2_Click ()
  99. Unload Me
  100. End Sub
  101. Sub Form_Activate ()
  102. Check1.Visible = True
  103. Option1.Visible = True
  104. End Sub
  105. Sub Form_Load ()
  106. Dim cnt%
  107. Text1 = "CTL3D Version: " + LTrim$(RTrim$(Str$(gCTL3DMajorVersion))) + "." + Right$("00" + LTrim$(RTrim$(Str$(gCTL3DMinorVersion))), 2)
  108. If gSubClassCtls Then
  109.     Text1.Text = Text1.Text + " - Controls are subclassed."
  110.     Text1.Text = Text1.Text + " - Controls are not subclassed."
  111. End If
  112. For cnt% = 1 To 25
  113.     List1.AddItem "Line Number" + Str$(cnt%)
  114. CenterForm Me
  115. Make3DDlg Me
  116. End Sub
  117. Sub Form_Paint ()
  118. If Not gSubClassCtls Then FormIn3D Me, 1
  119. End Sub
  120. Sub Form_Unload (Cancel As Integer)
  121. Undo3DCtrls Me
  122. End Sub
  123.