home *** CD-ROM | disk | FTP | other *** search
/ Programmer 7500 / MAX_PROGRAMMERS.iso / VISUAL_B / CODIGO_2 / VBEMBDMN / MNUEMBED.FRM (.txt) < prev    next >
Encoding:
Visual Basic Form  |  1993-03-01  |  1.6 KB  |  66 lines

  1. VERSION 2.00
  2. Begin Form MenuForm 
  3.    ControlBox      =   0   'False
  4.    Height          =   900
  5.    KeyPreview      =   -1  'True
  6.    Left            =   1095
  7.    LinkTopic       =   "Form1"
  8.    MaxButton       =   0   'False
  9.    MinButton       =   0   'False
  10.    ScaleHeight     =   180
  11.    ScaleWidth      =   2805
  12.    Top             =   1185
  13.    Width           =   2955
  14.    Begin Menu mnuEmbTop 
  15.       Caption         =   "&Embedded Menu"
  16.       Begin Menu mnu1 
  17.          Caption         =   "Item &1"
  18.       End
  19.       Begin Menu mnu2 
  20.          Caption         =   "Item &2"
  21.       End
  22.       Begin Menu mnu3 
  23.          Caption         =   "Item &3"
  24.       End
  25.       Begin Menu sep1 
  26.          Caption         =   "-"
  27.       End
  28.       Begin Menu mnu4 
  29.          Caption         =   "Item &4"
  30.       End
  31.       Begin Menu mnu5 
  32.          Caption         =   "Item &5"
  33.       End
  34.       Begin Menu sep2 
  35.          Caption         =   "-"
  36.       End
  37.       Begin Menu mnuExit 
  38.          Caption         =   "E&xit"
  39.       End
  40.    End
  41. Option Explicit
  42. Sub Form_KeyDown (KeyCode As Integer, Shift As Integer)
  43. Const KEY_ESCAPE = &H1B
  44. If KeyCode = KEY_ESCAPE Then MainWindow.SetFocus
  45. End Sub
  46. Sub mnu1_Click ()
  47.    MainWindow.SetFocus
  48. End Sub
  49. Sub mnu2_Click ()
  50.    MainWindow.SetFocus
  51. End Sub
  52. Sub mnu3_Click ()
  53.    MainWindow.SetFocus
  54. End Sub
  55. Sub mnu4_Click ()
  56.    MainWindow.SetFocus
  57. End Sub
  58. Sub mnu5_Click ()
  59.    MainWindow.SetFocus
  60. End Sub
  61. Sub mnuExit_Click ()
  62.     Unload MenuForm
  63.     Unload MainWindow  'Dumps the VB form.
  64.     End   'Shuts down the VB app.
  65. End Sub
  66.