home *** CD-ROM | disk | FTP | other *** search
/ Programming Tool Box / SIMS_2.iso / code / design / 3ddemo / form1.frm < prev    next >
Text File  |  1995-02-26  |  4KB  |  151 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. End
  98. Option Explicit
  99.  
  100. Sub Command2_Click ()
  101.  
  102. Unload Me
  103.  
  104. End Sub
  105.  
  106. Sub Form_Activate ()
  107.  
  108.  
  109.  
  110. Check1.Visible = True
  111. Option1.Visible = True
  112.  
  113.  
  114.  
  115. End Sub
  116.  
  117. Sub Form_Load ()
  118.  
  119. Dim cnt%
  120.  
  121. Text1 = "CTL3D Version: " + LTrim$(RTrim$(Str$(gCTL3DMajorVersion))) + "." + Right$("00" + LTrim$(RTrim$(Str$(gCTL3DMinorVersion))), 2)
  122.  
  123. If gSubClassCtls Then
  124.     Text1.Text = Text1.Text + " - Controls are subclassed."
  125. Else
  126.     Text1.Text = Text1.Text + " - Controls are not subclassed."
  127. End If
  128.  
  129. For cnt% = 1 To 25
  130.     List1.AddItem "Line Number" + Str$(cnt%)
  131. Next
  132.  
  133. CenterForm Me
  134. Make3DDlg Me
  135.  
  136. End Sub
  137.  
  138. Sub Form_Paint ()
  139.  
  140. If Not gSubClassCtls Then FormIn3D Me, 1
  141.  
  142. End Sub
  143.  
  144. Sub Form_Unload (Cancel As Integer)
  145.  
  146. Undo3DCtrls Me
  147.  
  148.  
  149. End Sub
  150.  
  151.