标题: 请教Pro/Tookit中几个关于菜单的概念问题 [打印本页] 作者: ksall 时间: 2005-7-9 09:53 标题: 请教Pro/Tookit中几个关于菜单的概念问题 本人接触Pro/tookit才几天,手头上也没有中文的关于pro/e二次开发的工具书,只好自己参详《 Pro/TOOLKIT User's Guide 》,自己英文水准一般,看起来比较费劲,有些概念看了两天还是很模糊,下面我把原文和我的理解写在下面,请师兄师姐们帮我矫正。
(1)Menu bar--The top level horizontal bar in the Pro/ENGINEER UI, containing the main menus like File, Edit, and Applications.——这个问题不大,Menu bar指得是界面上的那个菜单栏
(2)Menu bar menu--A menu, such as the File menu, or a sub-menu, such as the Export menu under the File menu.——个人认为,Menu bar menu指得是菜单栏中的菜单,以及菜单下面的子菜单
(3)Push button--A named item in a menu bar menu that is used to launch a set of instructions. An example is the Exit button in the File menu.
Check button--An item in a menu bar menu that may be toggled on and off. An example is the Model Tree toggle in the View menu.——这个Check button-指得是菜单上的开关按钮
Radio group--An item in a menu bar menu that may be set to one and only one of any number of options. An example is the group of windows listed in the bottom of the Window menu which allow you to switch between different windows..——这个指得是菜单上的单选按钮
另外我还有如下的认识:
菜单包括子菜单和按钮,其中按钮分为命令按钮(Push button)、单选按钮(Check button)和开关按钮(Check button)
作者: ksall 时间: 2005-7-9 10:11
下面的几段原文我翻译如下,不知道对不对。
To find the name of an action command (not a menu button), click the corresponding icon on the toolbar (not the button in the menu bar) and then check the last entry in the trail file. For example, for the save icon, the trail file will have the corresponding entry:——为了找到动作的名称(并非菜单按钮的名称),单击工具条上相应的图标(不是菜单上的按钮),然后查看最新的trail文件,例如,对于“保存”图标,trail上面会有相应的条目
~ Activate `main_dlg_cur` `ProCmdModelSave.file`
The Action name for the save button is "roCmdModelSave". This string can be used as input to ProCmdCmdIdFind() to get the command ID. ——“保存”按钮的的动作名称是ProCmdModelSave,该字符串可以作为ProCmdCmdIdFind() 的参数来查找相应的命令句柄。
In order to find the name of a menu button (used to the determine the placement of new menu buttons), click on the menu bar menu button (not the icon) and then check the trail file. For example, for the Auxiliary Applications button, the trail file will have the following entry: :——为了找到菜单按钮的名称(用来确定如何放置新的菜单按钮),单击菜单上的按钮(不是图标),然后查看最新的trail文件,例如,对于“辅助应用程序”图标,trail上面会有如下的条目:
~ Select `main_dlg_cur` `MenuBar1` \
1 `Utilities`
~ Close `main_dlg_cur` `MenuBar1`
~ Activate `main_dlg_cur` `Utilities.psh_util_aux`
The menu name selected is Utilities, and the menu button name is Utilities.psh_util_aux. ——由此可知,所选菜单的名称是Utilities,而菜单按钮的名称是Utilities.psh_util_aux.作者: TONY88 时间: 2005-7-10 14:25
楼主你那资料是哪找到的?作者: ksall 时间: 2005-7-15 16:40
概念问题我自己搞清楚了。
上述资料就是用户开发手册啊,装了pro/tookit后就有。文件名叫 tkuse.pdf,我的是在D:\proeWildfire 2.0\protoolkit目录下。作者: nevermakeup 时间: 2010-8-9 16:25 4#