TA的每日心情 | 奋斗 2025-9-24 15:41 |
|---|
签到天数: 86 天 [LV.6]常住居民II
|
推荐
发表于 2022-2-22 12:21
本帖最后由 db-_- 于 2022-2-22 12:26 编辑
应该可以捕获事件,但我觉得没必要,我一般都在这里处理。
Notes:
The doneState shows 0 for most actions. If a button with Done or Ok is pushed, then the done state is set. A button with the Cancel label sets the cancel state. In either the Done or Cancel state, you need to close the form with axlFormClose. If the abort state is set, the form closes even if you do not issue an axlFormClose.
以下代码摘自x:\Cadence_SPB_17.2-2016\share\pcb\examples\skill\form\basic目录下的axlform.il
- (defun _afCallback (fw)
- (prog (t1 item field cnt)
-
- ; support for active help (like in enved cmd) - must enable capability by
- ; calling axlFormSetMouseActive after form is opened
- when(fw->mouseActive
- axlFormSetField(fw "active_help" sprintf(nil "Help for %s" fw->curField))
- return(t)
- )
- (printf "field/value %L = %L (int %L\n)"
- fw->curField fw->curValue, fw->curValueInt )
- (printf "doneState %L\n" fw->doneState )
- case(fw->curField
- ("tab"
- f1s_lastTab = fw->curValue)
- )
-
- if((nequal fw->doneState 0) then
- axlFormClose(fw)
- ;;;;在这里添加
-
- )
- return()
- ))
复制代码 |
|