form1.frm

来自「非常漂亮的VB控件」· FRM 代码 · 共 124 行

FRM
124
字号
VERSION 5.00
Object = "*\AXpStyleMenu.vbp"
Begin VB.Form Form1 
   Caption         =   "Form1"
   ClientHeight    =   3195
   ClientLeft      =   165
   ClientTop       =   735
   ClientWidth     =   4680
   LinkTopic       =   "Form1"
   ScaleHeight     =   3195
   ScaleWidth      =   4680
   StartUpPosition =   3  '窗口缺省
   Begin XPStyleMenu.XPMenu XPMenu1 
      Left            =   1320
      Top             =   1800
      _ExtentX        =   847
      _ExtentY        =   847
      BmpCount        =   4
      Bmp:1           =   "Form1.frx":0000
      Mask:1          =   12632256
      Key:1           =   "#MnuNew"
      Bmp:2           =   "Form1.frx":0352
      Mask:2          =   12632256
      Key:2           =   "#MnuOpen"
      Bmp:3           =   "Form1.frx":06A4
      Mask:3          =   12632256
      Key:3           =   "#MnuSave"
      Bmp:4           =   "Form1.frx":09F6
      Mask:4          =   12632256
      Key:4           =   "#wx:0"
      BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851} 
         Name            =   "宋体"
         Size            =   9
         Charset         =   134
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
   End
   Begin VB.Menu MnuFile 
      Caption         =   "文件(&F)"
      Begin VB.Menu MnuNew 
         Caption         =   "新建(&N)"
         Shortcut        =   ^N
      End
      Begin VB.Menu l01 
         Caption         =   "-"
      End
      Begin VB.Menu MnuOpen 
         Caption         =   "打开(&O)..."
         Shortcut        =   ^O
      End
      Begin VB.Menu l021 
         Caption         =   "-"
      End
      Begin VB.Menu MnuSave 
         Caption         =   "保存(&S)"
         Shortcut        =   ^S
      End
      Begin VB.Menu MnuSaveAs 
         Caption         =   "另存为(&A)..."
      End
      Begin VB.Menu 国12312 
         Caption         =   "-"
      End
      Begin VB.Menu Mnuexit 
         Caption         =   "退出(&X)"
      End
   End
   Begin VB.Menu MnuTest 
      Caption         =   "测试菜单(&T)"
      Begin VB.Menu dx 
         Caption         =   "单选菜单项"
         Checked         =   -1  'True
         Index           =   0
      End
      Begin VB.Menu dx 
         Caption         =   "单选菜单项"
         Index           =   1
      End
      Begin VB.Menu dx 
         Caption         =   "单选菜单项"
         Checked         =   -1  'True
         Index           =   2
      End
      Begin VB.Menu dx 
         Caption         =   "单选菜单项"
         Checked         =   -1  'True
         Index           =   3
      End
      Begin VB.Menu l214 
         Caption         =   "-"
      End
      Begin VB.Menu wx 
         Caption         =   "无效菜单项"
         Enabled         =   0   'False
         Index           =   0
      End
      Begin VB.Menu wx 
         Caption         =   "无效菜单项"
         Enabled         =   0   'False
         Index           =   1
      End
      Begin VB.Menu wx 
         Caption         =   "无效菜单项"
         Index           =   2
      End
      Begin VB.Menu wx 
         Caption         =   "无效菜单项"
         Enabled         =   0   'False
         Index           =   3
      End
   End
End
Attribute VB_Name = "Form1"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub dx_Click(Index As Integer)
dx(Index).Checked = Not dx(Index).Checked
End Sub

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?