home *** CD-ROM | disk | FTP | other *** search
/ QBasic & Borland Pascal & C / Delphi5.iso / Basic / Samples / TBTN20 / TBTN20.ZIP / FORM1.FRM (.txt) < prev    next >
Encoding:
Visual Basic Form  |  1994-02-06  |  1.6 KB  |  60 lines

  1. VERSION 2.00
  2. Begin Form Form1 
  3.    Caption         =   "Toolbar Button Demo"
  4.    ClientHeight    =   1884
  5.    ClientLeft      =   1704
  6.    ClientTop       =   1992
  7.    ClientWidth     =   4140
  8.    Height          =   2304
  9.    Left            =   1656
  10.    LinkTopic       =   "Form1"
  11.    ScaleHeight     =   1884
  12.    ScaleWidth      =   4140
  13.    Top             =   1620
  14.    Width           =   4236
  15.    Begin ToolBarButton TBtn1 
  16.       Enabled         =   -1  'True
  17.       Height          =   1452
  18.       Left            =   192
  19.       Picture         =   FORM1.FRX:0000
  20.       Top             =   192
  21.       Width           =   1740
  22.    End
  23.    Begin CommandButton Command2 
  24.       Caption         =   "Hide"
  25.       Height          =   396
  26.       Left            =   2400
  27.       TabIndex        =   1
  28.       Top             =   1056
  29.       Width           =   1260
  30.    End
  31.    Begin CommandButton Command1 
  32.       Caption         =   "Disable"
  33.       Height          =   396
  34.       Left            =   2400
  35.       TabIndex        =   0
  36.       Top             =   480
  37.       Width           =   1260
  38.    End
  39. Sub Command1_Click ()
  40.   If TBtn1.Enabled Then
  41.     TBtn1.Enabled = False
  42.     Command1.Caption = "Enable"
  43.   Else
  44.     TBtn1.Enabled = True
  45.     Command1.Caption = "Disable"
  46.   End If
  47. End Sub
  48. Sub Command2_Click ()
  49.   If TBtn1.Visible Then
  50.     TBtn1.Visible = False
  51.     Command2.Caption = "Unhide"
  52.   Else
  53.     TBtn1.Visible = True
  54.     Command2.Caption = "Hide"
  55.   End If
  56. End Sub
  57. Sub TBtn1_Click ()
  58.   MsgBox "TBtn1_Click", 0, "Click"
  59. End Sub
  60.