Cadence Skill 论坛

 找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索
查看: 4006|回复: 5

请问怎么实现在FOMR关闭时执行一些操作?

[复制链接]
发表于 2014-11-1 10:33:20 | 显示全部楼层 |阅读模式
如题,希望在关闭FORM时Dehighlight所有器件,请问怎么实现?谢谢!
发表于 2014-11-1 11:21:07 | 显示全部楼层
axlDehighlightObject( axlDBGetDesign()->symbols) 在关闭窗口的时候执行这句应该就行了。。。
发表于 2014-11-1 15:28:45 | 显示全部楼层
本帖最后由 這侽孓譙悴丶 于 2014-11-1 15:30 编辑

axlFormClose()
axlDehighlightObject( axlDBGetDesign()->symbols)


 楼主| 发表于 2014-11-3 09:49:15 | 显示全部楼层
這侽孓譙悴丶 发表于 2014-11-1 15:28
axlFormClose()
axlDehighlightObject( axlDBGetDesign()->symbols)

我需要在点击form右上角的叉叉关闭时执行动作,请问怎么把代码写入这个关闭事件中?
发表于 2014-11-4 11:51:57 | 显示全部楼层
在FORM ACTION函数中添加以下内容:
  1. when(form->doneState == 3
  2.         axlUIConfirm("something you want to do.....")
  3. );end when
复制代码


注意以上form为FORM窗口的DBID
发表于 2014-11-4 11:56:06 | 显示全部楼层
The doneState shows 0 for most actions. Selecting a Done or OK button sets the done state. Selecting a Cancel button sets the cancel state. With the done or cancel state set, you use axlFormClose to close the form. Setting the abort state closes the form, even if you do not issue an axlFormClose command.
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

Archiver|手机版|网站地图|Cadence Skill 论坛 ( 蜀ICP备13024417号 )

GMT+8, 2024-4-30 05:42 , Processed in 0.138526 second(s), 15 queries .

Powered by Discuz! X3.4

© 2001-2017 Comsenz Inc.

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