找回密码
 注册
关于网站域名变更的通知
查看: 2041|回复: 3
打印 上一主题 下一主题

求axlTriggerSet用法

[复制链接]

该用户从未签到

跳转到指定楼层
1#
发表于 2014-7-16 13:44 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式

EDA365欢迎您登录!

您需要 登录 才可以下载或查看,没有帐号?注册

x
我用 axlUIMenuFind()axlUIMenuInsert() 命令写了自动添加菜单的 il 文档
虽在加载ilinit文件时运行成功,但之后又被加载allegro.men,菜单给还原了。无法实现自动添加菜单
我想知道axlTriggerSet用法,越祥越好。

下面是我找到的资料
添加菜单的几种方式:
MENU CUSTOMIZATION METHODS
Provide your own customization menu via CDS_SITE. Replace the cadence provided menu (.men file) with your own.

Advantages: Relatively easy and no skill programming required.

Disadvantages: For new releases need to merge your menu changes with new Cadence menus. May need to modify multiple menus
Overload your menu customizations on Cadence menus via Skill axlUIMenuRegister.

Advantages: Relatively easy with minimal Skill programming. Depending on your site's additions may be immune to many Cadence menu changes.

Disadvantages: Cannot delete Cadence menu items or restrict your changes to a one Cadence menu.
Register a axl menu Trigger notification via axlTriggerSet.

Advantages: Almost as much flexibility as overriding the default menu file including targeting specific menus.

Disadvantages: Need to examine your Skill code with new Cadence releases. Requires much more Skill programming knowledge.


Description

This allows you to register menu items to be loaded when Allegro loads a new menu. It is a combination of axlUIMenuFind and axlUIMenuInsert.

If more elaborate menu configuration is required consider calling axlTriggerSet directly.

我想知道axlTriggerSet用法,越祥越好。最好能帮我解决在allegro启动时,就自动添加菜单的方法,

该用户从未签到

2#
发表于 2014-7-16 16:03 | 只看该作者

该用户从未签到

3#
 楼主| 发表于 2014-7-17 13:54 | 只看该作者
本帖最后由 pallayout 于 2014-7-17 14:02 编辑

   (axlTriggerSet ‘menu ‘loadMyMenu)
调试通过,就是不知怎么调用,没有看到菜单
Function loadMyMenu already registered for 'menu trigger

该用户从未签到

4#
 楼主| 发表于 2014-7-17 14:33 | 只看该作者
调试通过了,谢谢betamelody,您是我的老师
您需要登录后才可以回帖 登录 | 注册

本版积分规则

关闭

推荐内容上一条 /1 下一条

EDA365公众号

关于我们|手机版|EDA365电子论坛网 ( 粤ICP备18020198号-1 )

GMT+8, 2025-6-23 17:34 , Processed in 0.093750 second(s), 23 queries , Gzip On.

深圳市墨知创新科技有限公司

地址:深圳市南山区科技生态园2栋A座805 电话:19926409050

快速回复 返回顶部 返回列表