newer 发表于 2014-12-19 15:30:26

检测DCL对话框是按CANCEL退出的方法

Detecting if cancel was pressed in DCL dialog boxes

Question
I'm using command reactors to detect when certain commands are cancelled, yet
when the command has a dialog box, there is no difference if a user presses
Cancel or OK (only the Editor reactor commndEnded() is called). How can I build
a routine that detects the difference between OK and Cancel when selected from
a dialog box?
Answer
**** Hidden Message *****

/db_自贡黄明儒_ 发表于 2014-12-19 15:35:05

先学lisp,后学DCL,最大的困惑是(action_tile "cancel" "(done_dialog 0)")中这个0传递到了什么地方去了。

/db_自贡黄明儒_ 发表于 2014-12-19 15:38:19

看了涨"姿势"了{:soso_e113:}

牢固 发表于 2014-12-19 15:55:02

/db_自贡黄明儒_ 发表于 2014-12-19 15:35
先学lisp,后学DCL,最大的困惑是(action_tile "cancel" "(done_dialog 0)")中这个0传递到了什么地方去了。

(setq ecode (start_dialog))
(done_dialog 0)中的0就赋给了ecode!

819534890 发表于 2014-12-19 16:03:58

本帖最后由 819534890 于 2014-12-19 16:05 编辑

不错,最近很多知识学习

wzg356 发表于 2014-12-19 19:56:42

不知能否消化啊

lucas3 发表于 2014-12-19 20:53:04

看看是啥方法

HLCAD 发表于 2014-12-20 08:03:02

回复,看贴,谢谢

qyming1996 发表于 2014-12-23 10:05:58

学习.................

sicky111 发表于 2014-12-25 18:24:54

DCL函数。   

lliushaojiang 发表于 2014-12-27 10:55:40

学习学习学习

sachindkini 发表于 2018-8-12 23:18:15

dear sir,
nice code

sachindkini 发表于 2018-8-12 23:26:59

dear sir,
nice code

naruto018 发表于 2019-1-14 16:44:05

来学习一下

laiz3000 发表于 2019-6-25 10:17:19

涨知识{:1_1:}
页: [1] 2
查看完整版本: 检测DCL对话框是按CANCEL退出的方法