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

done和cancel需要点两次才能结束skill

[复制链接]
  • TA的每日心情
    慵懒
    2023-6-19 15:30
  • 签到天数: 6 天

    [LV.2]偶尔看看I

    跳转到指定楼层
    1#
    发表于 2021-3-5 09:55 | 只看该作者 |只看大图 回帖奖励 |倒序浏览 |阅读模式

    EDA365欢迎您登录!

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

    x
    axlCmdRegister("as" 'aotuSpacing ?cmdType "interactive" ?doneCmd 'myDone ?cancelCmd 'myCancel)
    procedure(aotuSpacing()
            mypopup = axlUIPopupDefine(nil list(
                    (list "Done" 'myDone)
                    (list "Cancel" 'myCancel)
            ))
            axlUIPopupSet(mypopup)
            notdone = t
            axlClearSelSet()
            while(notdone
                    axlSetFindFilter(?enabled "CLINESEGS" ?onButtons "CLINESEGS")
                    box = axlEnterBox()
                    axlSingleSelectBox(box)
            )
    )

    procedure(myDone()
            notdone = nil
            axlFinishEnteRFun()
    )

    procedure(myCancel()
            notdone = nil
            axlCancelEnterFun()
    )

    1.png (43.61 KB, 下载次数: 1)

    1.png
  • TA的每日心情
    开心
    2022-12-27 15:46
  • 签到天数: 4 天

    [LV.2]偶尔看看I

    2#
    发表于 2021-3-5 11:18 | 只看该作者
    没碰到过这种情况
  • TA的每日心情
    开心
    2022-5-6 15:29
  • 签到天数: 34 天

    [LV.5]常住居民I

    3#
    发表于 2021-3-9 11:27 | 只看该作者
    box = axlEnterBox()
    axlSingleSelectBox(box)
    在取消输入的时候,box = axlEnterBox(),返回的是nil,也就是 box 的值是 nil
    所以axlSingleSelectBox(box) 实际上就是axlSingleSelectBox(nil)
    会再次弹出输入坐标的需求
    所以需要done或者cancel 两次

    直接axlSingleSelectBox() 就行了 ,不需要增加 box = axlEnterBox() 这个步骤
    您需要登录后才可以回帖 登录 | 注册

    本版积分规则

    关闭

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

    EDA365公众号

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

    GMT+8, 2025-6-9 06:18 , Processed in 0.078125 second(s), 27 queries , Gzip On.

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

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

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