home *** CD-ROM | disk | FTP | other *** search
/ Programming Tool Box / SIMS_2.iso / demo / btdemo / main.frm (.txt) < prev    next >
Encoding:
Visual Basic Form  |  1995-02-27  |  7.0 KB  |  225 lines

  1. VERSION 2.00
  2. Begin Form MainForm 
  3.    BackColor       =   &H00C0C0C0&
  4.    BorderStyle     =   3  'Fixed Double
  5.    Caption         =   "ButtonTool Demo "
  6.    ClientHeight    =   1200
  7.    ClientLeft      =   390
  8.    ClientTop       =   705
  9.    ClientWidth     =   8445
  10.    ForeColor       =   &H0000C0C0&
  11.    Height          =   1890
  12.    Left            =   330
  13.    LinkMode        =   1  'Source
  14.    LinkTopic       =   "Form2"
  15.    ScaleHeight     =   1200
  16.    ScaleWidth      =   8445
  17.    Top             =   75
  18.    Width           =   8565
  19.    Begin BTDEMOButton BTButton3 
  20.       BackColor       =   &H00404000&
  21.       BorderColor     =   &H00404000&
  22.       BorderThickness =   0
  23.       ButtonDown      =   0  'No effect
  24.       FontColor       =   &H00C0C0C0&
  25.       Height          =   1056
  26.       Left            =   72
  27.       TabIndex        =   0
  28.       Top             =   60
  29.       Width           =   8280
  30.       Begin BTDEMOButton BTButton2 
  31.          Prop24          =   &H00808080&
  32.          Prop25          =   &H00E0E0E0&
  33.          BackColor       =   &H00C0C000&
  34.          BorderColor     =   &H00C0C000&
  35.          BorderThickness =   0
  36.          ButtonDown      =   0  'No effect
  37.          FontColor       =   &H00C0C000&
  38.          Height          =   852
  39.          Left            =   108
  40.          ShadowBackColor =   &H00008080&
  41.          ShadowForeColor =   &H00008000&
  42.          SymBackColor    =   &H00C0C000&
  43.          SymForeColor    =   &H00808000&
  44.          TabIndex        =   1
  45.          Top             =   96
  46.          Width           =   8052
  47.          Begin BTDEMOButton BTButton1 
  48.             Prop25          =   &H00808080&
  49.             Prop23          =   8
  50.             BackColor       =   &H00000000&
  51.             ButtonDown      =   2  'Invert 3-D colors
  52.             Caption         =   "Properties"
  53.             FontColor       =   &H00000080&
  54.             Height          =   612
  55.             Index           =   5
  56.             Left            =   6720
  57.             SymForeColor    =   &H00007F00&
  58.             TabIndex        =   7
  59.             Top             =   120
  60.             Width           =   1212
  61.          End
  62.          Begin BTDEMOButton BTButton1 
  63.             Prop24          =   &H0080FFFF&
  64.             Prop25          =   &H00008080&
  65.             Prop23          =   8
  66.             BackColor       =   &H00000000&
  67.             ButtonDown      =   2  'Invert 3-D colors
  68.             Caption         =   "Toggle"
  69.             FontColor       =   &H00004000&
  70.             Height          =   612
  71.             Index           =   4
  72.             Left            =   5400
  73.             SymBackColor    =   &H0000C0C0&
  74.             SymForeColor    =   &H0080FFFF&
  75.             TabIndex        =   6
  76.             Top             =   120
  77.             Width           =   1212
  78.          End
  79.          Begin BTDEMOButton BTButton1 
  80.             Prop24          =   &H00C00000&
  81.             Prop25          =   &H00400000&
  82.             Prop23          =   8
  83.             BackColor       =   &H00000000&
  84.             ButtonDown      =   2  'Invert 3-D colors
  85.             Caption         =   "Shadows"
  86.             FontColor       =   &H0000C000&
  87.             Height          =   612
  88.             Index           =   3
  89.             Left            =   4080
  90.             SymBackColor    =   &H00800000&
  91.             SymForeColor    =   &H00C00000&
  92.             TabIndex        =   5
  93.             Top             =   120
  94.             Width           =   1212
  95.          End
  96.          Begin BTDEMOButton BTButton1 
  97.             Prop24          =   &H00C000C0&
  98.             Prop25          =   &H00404080&
  99.             Prop23          =   8
  100.             BackColor       =   &H00000000&
  101.             ButtonDown      =   2  'Invert 3-D colors
  102.             Caption         =   "Graphics"
  103.             FontColor       =   &H0000FFFF&
  104.             Height          =   612
  105.             Index           =   2
  106.             Left            =   2760
  107.             SymBackColor    =   &H00800080&
  108.             SymForeColor    =   &H00C000C0&
  109.             TabIndex        =   4
  110.             Top             =   120
  111.             Width           =   1212
  112.          End
  113.          Begin BTDEMOButton BTButton1 
  114.             Prop24          =   &H000000FF&
  115.             Prop25          =   &H00000080&
  116.             Prop23          =   8
  117.             BackColor       =   &H00000000&
  118.             ButtonDown      =   2  'Invert 3-D colors
  119.             Caption         =   "3-D"
  120.             FontColor       =   &H00FFFFFF&
  121.             Height          =   612
  122.             Index           =   1
  123.             Left            =   1440
  124.             SymBackColor    =   &H000000C0&
  125.             SymForeColor    =   &H000000FF&
  126.             TabIndex        =   3
  127.             Top             =   120
  128.             Width           =   1212
  129.          End
  130.          Begin BTDEMOButton BTButton1 
  131.             Prop24          =   &H0000FF00&
  132.             Prop25          =   &H00008000&
  133.             Prop23          =   8
  134.             BackColor       =   &H00000000&
  135.             ButtonDown      =   2  'Invert 3-D colors
  136.             Caption         =   "Symbols"
  137.             FontColor       =   &H00C00000&
  138.             Height          =   612
  139.             Index           =   0
  140.             Left            =   120
  141.             SymBackColor    =   &H0000C000&
  142.             SymForeColor    =   &H0000FF00&
  143.             TabIndex        =   2
  144.             Top             =   120
  145.             Width           =   1212
  146.          End
  147.       End
  148.    End
  149.    Begin Menu FileMenu 
  150.       Caption         =   "&File"
  151.       Begin Menu FielMenuExit 
  152.          Caption         =   "E&xit"
  153.       End
  154.    End
  155.    Begin Menu HelpMenu 
  156.       Caption         =   "&Help"
  157.       Begin Menu HelpMenuAbout 
  158.          Caption         =   "&About"
  159.       End
  160.    End
  161. Sub BTButton1_Click (index As Integer)
  162.     Screen.MousePointer = 11
  163.     If (index = 0) Then
  164.         SymForm.Show
  165.     End If
  166.     If (index = 1) Then
  167.         ThreeDForm.Show
  168.     End If
  169.     If (index = 2) Then
  170.         GrafForm.Show
  171.     End If
  172.     If (index = 3) Then
  173.         ShadForm.Show
  174.     End If
  175.     If (index = 4) Then
  176.         ToggForm.Show
  177.     End If
  178.     If (index = 5) Then
  179.         MiscForm.Show
  180.     End If
  181.     Screen.MousePointer = 0
  182. End Sub
  183. Sub BTButton2_Click ()
  184.     ThreeDForm.Show
  185. End Sub
  186. Sub FielMenuExit_Click ()
  187.     End
  188. End Sub
  189. Sub FileMenuAbout_Click ()
  190.     AboutForm.Show
  191. End Sub
  192. Sub Form_Load ()
  193.     Screen.MousePointer = 11
  194.     MainForm.Show
  195.     AboutForm.Show
  196.     MainForm.Refresh
  197.     AboutForm.Refresh
  198.     Screen.MousePointer = 0
  199. End Sub
  200. Sub HelpMenuAbout_Click ()
  201.     Screen.MousePointer = 11
  202.     AboutForm.Show
  203.     Screen.MousePointer = 0
  204. End Sub
  205. Sub MainButton_Click (index As Integer)
  206.     If (index = 0) Then
  207.         SymForm.Show
  208.     End If
  209.     If (index = 1) Then
  210.         ThreeDForm.Show
  211.     End If
  212.     If (index = 2) Then
  213.         GrafForm.Show
  214.     End If
  215.     If (index = 3) Then
  216.         ShadForm.Show
  217.     End If
  218.     If (index = 4) Then
  219.         ToggForm.Show
  220.     End If
  221.     If (index = 5) Then
  222.         MiscForm.Show
  223.     End If
  224. End Sub
  225.