在线咨询 切换到宽版
eetop公众号 创芯大讲堂 创芯人才网

 找回密码
 注册

手机号码,快捷登录

手机号码,快捷登录

搜全文
查看: 55|回复: 3

[求助] Skill gui问题求助:如何通过弹出窗口来展示函数结果?

[复制链接]
发表于 7 小时前 | 显示全部楼层 |阅读模式

马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。

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

×
求助大神:
写了一个对layout做检查的脚本,现在的脚本会输出一个文本格式如下:
(cellName layerName bBox)

....
我想通过弹出一个窗口来展示函数的返回结果,目前只查到了hiCreatRepoetField这个函数。但是实在没读懂他的用法。
希望有大神可以帮忙解答这个问题,十分感谢



发表于 5 小时前 | 显示全部楼层
hiCreateReportField

   

        

                
  1. hiDisplayMenu(hiCreateSimpleMenu(
  2.                 'warnmenu2 "" list("ReadOnly!!!\n" "ReadOnly!!!\n" "ReadOnly!!!\n") list("")))
            

   

    复制代码

函数名打错两个字母
我也没看懂,我这句是能直接用的,也是从别人那里学来的,给你参考一下

点评

辛苦  发表于 1 小时前
回复 支持 反对

使用道具 举报

发表于 3 小时前 | 显示全部楼层
给你一个极简代码,为了简化,也没定义局部变量,实际使用时改改:


   

        

                
  1. reportField = hiCreateReportField(
  2.     ?name 'reportField
  3.     ?title "Report Field Example"
  4.     ?titleAlignment 'center
  5.     ?headers '(
  6.                 ("Cell Name" 150 left string)
  7.                 ("Layer Name" 150 left string)
  8.                 ("Bounding Box" 150 left string)
  9.               )
  10.     ?value nil
  11.     ?choices nil
  12. )
  13. hiCreateAppForm(
  14.   ?name 'HiReportFieldExampleForm
  15.   ?formTitle "Report Field Example"
  16.   ?fields list(
  17.             list(reportField 0:0 454:240 20)
  18.           )
  19.   ?initialSize t
  20. )

  21. hiDisplayForm(HiReportFieldExampleForm)

  22. ; the following code is an example for updating report field's contents
  23. lppInfoList = '(
  24.   ("cellA" ("M1" "drawing") ((0.0 0.0) (100.0 90.0)))
  25.   ("cellB" ("M2" "drawing") ((5.0 4.0) (60.0 80.0)))
  26. )

  27. HiReportFieldExampleForm->reportField->choices =
  28.     foreach(mapcar lppInfo lppInfoList
  29.       lppText = buildString(cadr(lppInfo) " ")
  30.       sprintf(bBoxText "%B" nth(2 lppInfo))
  31.       list(car(lppInfo) lppText bBoxText)
  32.     )
  33. )

  34.         

   

    复制代码
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

关闭

站长推荐 上一条 /2 下一条

手机版| 小黑屋| 关于我们| 联系我们| 用户协议&隐私声明| 版权投诉通道| EETOP 创芯网
( 京ICP备:10050787号 京公网安备:11010502037710 ) |网站地图

GMT+8, 2025-12-23 23:50 , Processed in 0.014256 second(s), 4 queries , Gzip On, Redis On.

eetop公众号 创芯大讲堂 创芯人才网
快速回复 返回顶部 返回列表