chuchiwolong 发表于 2014-11-1 10:33:20

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

如题,希望在关闭FORM时Dehighlight所有器件,请问怎么实现?谢谢!

vivienluo 发表于 2014-11-1 11:21:07

axlDehighlightObject( axlDBGetDesign()->symbols) 在关闭窗口的时候执行这句应该就行了。。。

這侽孓譙悴丶 发表于 2014-11-1 15:28:45

本帖最后由 這侽孓譙悴丶 于 2014-11-1 15:30 编辑

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


chuchiwolong 发表于 2014-11-3 09:49:15

這侽孓譙悴丶 发表于 2014-11-1 15:28
axlFormClose()
axlDehighlightObject( axlDBGetDesign()->symbols)

我需要在点击form右上角的叉叉关闭时执行动作,请问怎么把代码写入这个关闭事件中?

vivienluo 发表于 2014-11-4 11:51:57

在FORM ACTION函数中添加以下内容:
when(form->doneState == 3
        axlUIConfirm("something you want to do.....")
);end when

注意以上form为FORM窗口的DBID

vivienluo 发表于 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.
页: [1]
查看完整版本: 请问怎么实现在FOMR关闭时执行一些操作?