📄 car.mpr
字号:
* *********************************************************
* *
* * 08/06/1998 CAR.MPR 11:09:01
* *
* *********************************************************
* *
* * 作者姓名
* *
* * 版权(C) 1998 公司名
* * 地址
* * 城市, 邮政编码
* * 国家/地区
* *
* * 说明:
* * 本程序由 GENMENU 自动生成。
* *
* *********************************************************
* To attach this menu to your Top-Level form,
* call it from the Init event of the form:
* Syntax: DO <mprname> WITH <oFormRef> [,<cMenuname>|<lRename>][<lUniquePopups>]
* oFormRef - form object reference (THIS)
* cMenuname - name for menu (this is required for Append menus - see below)
* lRename - renames Name property of your form
* lUniquePopups - determines whether to generate unique ids for popup names
* example:
* PROCEDURE Init
* DO mymenu.mpr WITH THIS,.T.
* ENDPROC
* Use the optional 2nd parameter if you plan on running multiple instances of your
* Top-Level form. The logical lRename parameter will change the name property
* of your form to the same name given the menu and may cause conflicts in your
* code if you directly reference the form by name.
* You will also need to remove the menu when the form is destroyed so that it does
* not remain in memory unless you wish to reactivate it later in a new form.
* If you passed the optional lRename parameter as .T. as in the above example,
* you can easily remove the menu in the form's Destroy event as shown below.
* This strategy is ideal when using multiple instances of Top-Level forms.
* example:
* PROCEDURE Destroy
* RELEASE MENU (THIS.Name) EXTENDED
* ENDPROC
* Using Append/Before/After location options:
* You might want to append a menu to an existing Top-Level form by setting
* the Location option in the General Options dialog. In order to do this, you
* must pass the name of the menu in which to attach the new one. The second
* parameter is required here. If you originally created the menu with the lRename
* parameter = .T., then you can update the menu with code similar to the following:
* example:
* DO mymenu2.mpr WITH THISFORM,THISFORM.name
*
* Using lUniquePopups:
* If you are running this menu multiple times in your application, such as in multiple
* instances of the same top-level form, you should pass .T. to the lUniquePopups
* parameter so that unique popup names are generated to avoid possible conflicts.
* example:
* PROCEDURE Init
* DO mymenu.mpr WITH THIS,.T.,.T.
* ENDPROC
*
* Note: Parm4-Parm9 are not reserved and freely available for use with your menu code.
*
LPARAMETERS oFormRef, getMenuName, lUniquePopups, parm4, parm5, parm6, parm7, parm8, parm9
LOCAL cMenuName, nTotPops, a_menupops
IF TYPE("m.oFormRef") # "O" OR ;
LOWER(m.oFormRef.BaseClass) # 'form' OR ;
m.oFormRef.ShowWindow # 2
MESSAGEBOX([此菜单只能被顶层表单调用。确定你的表单的ShowWindow属性被设置为2。 阅读此菜单的MPR文件的头部分以获取详细资料。])
RETURN
ENDIF
m.cMenuName = IIF(TYPE("m.getMenuName")="C",m.getMenuName,SYS(2015))
IF TYPE("m.getMenuName")="L" AND m.getMenuName
m.oFormRef.Name = m.cMenuName
ENDIF
DIMENSION a_menupops[5]
IF TYPE("m.lUniquePopups")="L" AND m.lUniquePopups
FOR nTotPops = 1 TO ALEN(a_menupops)
a_menupops[m.nTotPops]= SYS(2015)
ENDFOR
ELSE
a_menupops[1]="名片c"
a_menupops[2]="编辑e"
a_menupops[3]="功能f"
a_menupops[4]="查看v"
a_menupops[5]="帮助h"
ENDIF
* *********************************************************
* *
* * 菜单定义
* *
* *********************************************************
*
DEFINE MENU (m.cMenuName) IN (m.oFormRef.Name) BAR
DEFINE PAD _rx40nwdqy OF (m.cMenuName) PROMPT "名片(\<C)" COLOR SCHEME 3 ;
KEY ALT+C, ""
DEFINE PAD _rx40nwdr2 OF (m.cMenuName) PROMPT "编辑(\<E)" COLOR SCHEME 3 ;
KEY ALT+E, ""
DEFINE PAD _rx40nwdr6 OF (m.cMenuName) PROMPT "功能(\<F)" COLOR SCHEME 3 ;
KEY ALT+F, ""
DEFINE PAD _rx40nwdr9 OF (m.cMenuName) PROMPT "查看(\<V)" COLOR SCHEME 3 ;
KEY ALT+V, ""
DEFINE PAD _rx40nwdrd OF (m.cMenuName) PROMPT "帮助(\<H)" COLOR SCHEME 3 ;
KEY ALT+H, ""
ON PAD _rx40nwdqy OF (m.cMenuName) ACTIVATE POPUP (a_menupops[1])
ON PAD _rx40nwdr2 OF (m.cMenuName) ACTIVATE POPUP (a_menupops[2])
ON PAD _rx40nwdr6 OF (m.cMenuName) ACTIVATE POPUP (a_menupops[3])
ON PAD _rx40nwdr9 OF (m.cMenuName) ACTIVATE POPUP (a_menupops[4])
ON PAD _rx40nwdrd OF (m.cMenuName) ACTIVATE POPUP (a_menupops[5])
DEFINE POPUP (a_menupops[1]) MARGIN RELATIVE SHADOW COLOR SCHEME 4
DEFINE BAR 1 OF (a_menupops[1]) PROMPT "新增名片(\<N)"
DEFINE BAR 2 OF (a_menupops[1]) PROMPT "修改名片"
DEFINE BAR 3 OF (a_menupops[1]) PROMPT "删除名片"
DEFINE BAR 4 OF (a_menupops[1]) PROMPT "新名片夹"
DEFINE BAR 5 OF (a_menupops[1]) PROMPT "打印机设置"
DEFINE BAR 6 OF (a_menupops[1]) PROMPT "打印"
DEFINE BAR 7 OF (a_menupops[1]) PROMPT "返回系统"
ON SELECTION BAR 7 OF (a_menupops[1]) release thisform
DEFINE POPUP (a_menupops[2]) MARGIN RELATIVE SHADOW COLOR SCHEME 4
DEFINE BAR 1 OF (a_menupops[2]) PROMPT "查询"
DEFINE BAR 2 OF (a_menupops[2]) PROMPT "显示附注信息"
DEFINE BAR 3 OF (a_menupops[2]) PROMPT "类别分配"
DEFINE POPUP (a_menupops[3]) MARGIN RELATIVE SHADOW COLOR SCHEME 4
DEFINE BAR 1 OF (a_menupops[3]) PROMPT "电话拔号"
DEFINE BAR 2 OF (a_menupops[3]) PROMPT "发出E-Mail"
DEFINE BAR 3 OF (a_menupops[3]) PROMPT "数据备份"
DEFINE BAR 4 OF (a_menupops[3]) PROMPT "数据恢复"
DEFINE BAR 5 OF (a_menupops[3]) PROMPT "查看电话记录"
DEFINE BAR 6 OF (a_menupops[3]) PROMPT "辅助选项"
DEFINE BAR 7 OF (a_menupops[3]) PROMPT "MP3播放器"
DEFINE POPUP (a_menupops[4]) MARGIN RELATIVE SHADOW COLOR SCHEME 4
DEFINE BAR 1 OF (a_menupops[4]) PROMPT "名片方式显示"
DEFINE BAR 2 OF (a_menupops[4]) PROMPT "多功能工具条"
DEFINE BAR 3 OF (a_menupops[4]) PROMPT "数据安全工具"
DEFINE POPUP (a_menupops[5]) MARGIN RELATIVE SHADOW COLOR SCHEME 4
DEFINE BAR 1 OF (a_menupops[5]) PROMPT "帮助"
DEFINE BAR 2 OF (a_menupops[5]) PROMPT "软件注册"
DEFINE BAR 3 OF (a_menupops[5]) PROMPT "关于"
ACTIVATE MENU (m.cMenuName) NOWAIT
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -