home *** CD-ROM | disk | FTP | other *** search
/ DP Tool Club 22 / CD_ASCQ_22_0695.iso / win / prg / psmmm11.exe / SAMPLE.ENU / BMPMNU / BASIC / BMPMNU.FRM < prev    next >
Text File  |  1995-04-02  |  6KB  |  198 lines

  1. VERSION 2.00
  2. Begin Form Form1 
  3.    BackColor       =   &H00C0C0C0&
  4.    BorderStyle     =   1  'Fixed Single
  5.    Caption         =   "Other fonts in menu"
  6.    ClientHeight    =   1665
  7.    ClientLeft      =   1605
  8.    ClientTop       =   3225
  9.    ClientWidth     =   3615
  10.    FillColor       =   &H00FFFFFF&
  11.    ForeColor       =   &H00C0C0C0&
  12.    Height          =   2355
  13.    Icon            =   BMPMNU.FRX:0000
  14.    Left            =   1545
  15.    LinkTopic       =   "Form1"
  16.    MaxButton       =   0   'False
  17.    ScaleHeight     =   1665
  18.    ScaleWidth      =   3615
  19.    Top             =   2595
  20.    Width           =   3735
  21.    Begin Label txtWarning 
  22.       BackColor       =   &H00FFFFFF&
  23.       BackStyle       =   0  'Transparent
  24.       Caption         =   "This example shows how you can display other font than the system one in a menu using bitmap menus. "
  25.       FontBold        =   0   'False
  26.       FontItalic      =   0   'False
  27.       FontName        =   "MS Sans Serif"
  28.       FontSize        =   8.25
  29.       FontStrikethru  =   0   'False
  30.       FontUnderline   =   0   'False
  31.       ForeColor       =   &H00000000&
  32.       Height          =   660
  33.       Index           =   1
  34.       Left            =   135
  35.       TabIndex        =   1
  36.       Top             =   105
  37.       Width           =   3360
  38.    End
  39.    Begin Label txtWarning 
  40.       BackColor       =   &H00C0C0C0&
  41.       BackStyle       =   0  'Transparent
  42.       Caption         =   "WARNING: Quit the program with the Visual Basic ""stop button"" may cause the loss of a large amount of resource !"
  43.       FontBold        =   0   'False
  44.       FontItalic      =   0   'False
  45.       FontName        =   "MS Sans Serif"
  46.       FontSize        =   8.25
  47.       FontStrikethru  =   0   'False
  48.       FontUnderline   =   0   'False
  49.       ForeColor       =   &H000000C0&
  50.       Height          =   645
  51.       Index           =   0
  52.       Left            =   120
  53.       TabIndex        =   0
  54.       Top             =   945
  55.       Width           =   3375
  56.    End
  57.    Begin Shape Shape1 
  58.       BackStyle       =   1  'Opaque
  59.       Height          =   705
  60.       Index           =   0
  61.       Left            =   75
  62.       Top             =   900
  63.       Width           =   3480
  64.    End
  65.    Begin Shape Shape1 
  66.       BackStyle       =   1  'Opaque
  67.       Height          =   780
  68.       Index           =   1
  69.       Left            =   75
  70.       Top             =   60
  71.       Width           =   3465
  72.    End
  73.    Begin Menu Main 
  74.       Caption         =   "File"
  75.       Index           =   1
  76.       Begin Menu Fichier 
  77.          Caption         =   "Open"
  78.          Index           =   11
  79.       End
  80.       Begin Menu Fichier 
  81.          Caption         =   "Save"
  82.          Index           =   12
  83.       End
  84.       Begin Menu Fichier 
  85.          Caption         =   "Save as..."
  86.          Index           =   13
  87.       End
  88.       Begin Menu Fichier 
  89.          Caption         =   "Close"
  90.          Index           =   14
  91.       End
  92.       Begin Menu File 
  93.          Caption         =   "-"
  94.          Index           =   15
  95.       End
  96.       Begin Menu File 
  97.          Caption         =   "Exit"
  98.          Index           =   16
  99.       End
  100.    End
  101.    Begin Menu Main 
  102.       Caption         =   "Edit"
  103.       Index           =   2
  104.       Begin Menu Edit 
  105.          Caption         =   "Cut"
  106.          Index           =   21
  107.       End
  108.       Begin Menu Edit 
  109.          Caption         =   "Copy"
  110.          Index           =   22
  111.       End
  112.       Begin Menu Edit 
  113.          Caption         =   "Past"
  114.          Enabled         =   0   'False
  115.          Index           =   23
  116.       End
  117.       Begin Menu Edit 
  118.          Caption         =   "Delete"
  119.          Enabled         =   0   'False
  120.          Index           =   24
  121.       End
  122.    End
  123.    Begin Menu Main 
  124.       Caption         =   "Option"
  125.       Index           =   3
  126.       Begin Menu Option 
  127.          Caption         =   "Environment..."
  128.          Index           =   31
  129.       End
  130.       Begin Menu Option 
  131.          Caption         =   "Color"
  132.          Index           =   32
  133.          Begin Menu Color 
  134.             Caption         =   "Red"
  135.             Index           =   321
  136.          End
  137.          Begin Menu Color 
  138.             Caption         =   "Green"
  139.             Index           =   322
  140.          End
  141.          Begin Menu Color 
  142.             Caption         =   "Blue"
  143.             Index           =   323
  144.          End
  145.          Begin Menu Color 
  146.             Caption         =   "Black"
  147.             Index           =   324
  148.          End
  149.       End
  150.    End
  151.    Begin Menu Main 
  152.       Caption         =   "Help"
  153.       Index           =   4
  154.       Begin Menu Help 
  155.          Caption         =   "About..."
  156.          Index           =   41
  157.       End
  158.    End
  159. End
  160. Dim TxtColor(4) As Long
  161.  
  162. Sub Fichier_Click (Index As Integer)
  163.     
  164.     Select Case Index
  165.         Case 11
  166.             Fichier(Index).Checked = Not Fichier(Index).Checked
  167.             Fichier(12).Enabled = Not Fichier(12).Enabled
  168.             Fichier(13).Enabled = Not Fichier(13).Enabled
  169.             Fichier(14).Enabled = Not Fichier(14).Enabled
  170.     End Select
  171.  
  172. End Sub
  173.  
  174. Sub File_Click (Index As Integer)
  175.     
  176.     Unload Form1
  177.  
  178. End Sub
  179.  
  180. Sub Form_Load ()
  181.     
  182.     Call TranslateAllMenu((Form1.hWnd), "Arial")
  183.  
  184. End Sub
  185.  
  186. Sub Form_Unload (Cancel As Integer)
  187.     
  188.     Call CleanBitmapMenu
  189.  
  190. End Sub
  191.  
  192. Sub Help_Click (Index As Integer)
  193.     
  194.     frmAbout.Show 1
  195.     
  196. End Sub
  197.  
  198.