Cadence Skill 论坛

 找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索
查看: 4883|回复: 0

谁知道这个SKILL是什么功能

[复制链接]
发表于 2013-8-18 23:34:36 | 显示全部楼层 |阅读模式
(defun cal ()
aa=nil
bb=nil
cc=nil
dd=nil
ee=nil
ff=nil

createmyform()
myconvertform()

)

(defun myconvertform ()

myform=axlFormCreate( (gensym) mymainformfile nil 'myConv_Action t)
axlFormDisplay(myform)
t
)

(defun createmyform ()

drain()
mymainformfile = "myconv.form"
myform = outfile(mymainformfile "w")
fprintf(myform "FILE_TYPE=FORM_DEFN VERSION=2\n")
fprintf(myform "FORM\n")
fprintf(myform "FIXED\n")
fprintf(myform "PORT 45 45\n")
fprintf(myform "HEADER \"Quick Cal V1.0\"\n")
fprintf(myform "TILE\n")

fprintf(myform "FIELD aa\n")
fprintf(myform "FLOC 3 1\n")
fprintf(myform "STRFILLIN 10 10 \n")
fprintf(myform "ENDFIELD\n")
fprintf(myform "\n")

fprintf(myform "TEXT \"+ \"\n")
fprintf(myform "TLOC 15 1\n")
fprintf(myform "ENDTEXT\n")

fprintf(myform "FIELD bb\n")
fprintf(myform "FLOC 16 1\n")
fprintf(myform "STRFILLIN 10 10 \n")
fprintf(myform "ENDFIELD\n")
fprintf(myform "\n")

fprintf(myform "FIELD add\n")
fprintf(myform "FLOC 28 1\n")
fprintf(myform "MENUBUTTON \"=\" 3 3\n")
fprintf(myform "ENDFIELD\n")

fprintf(myform "FIELD cc\n")
fprintf(myform "FLOC 32 1\n")
fprintf(myform "STRFILLIN 10 10 \n")
fprintf(myform "ENDFIELD\n")
fprintf(myform "\n")

fprintf(myform "FIELD dd\n")
fprintf(myform "FLOC 3 3\n")
fprintf(myform "STRFILLIN 10 10 \n")
fprintf(myform "ENDFIELD\n")
fprintf(myform "\n")

fprintf(myform "TEXT \"- \"\n")
fprintf(myform "TLOC 15 3\n")
fprintf(myform "ENDTEXT\n")

fprintf(myform "FIELD ee\n")
fprintf(myform "FLOC 16 3\n")
fprintf(myform "STRFILLIN 10 10 \n")
fprintf(myform "ENDFIELD\n")
fprintf(myform "\n")

fprintf(myform "FIELD red\n")
fprintf(myform "FLOC 28 3\n")
fprintf(myform "MENUBUTTON \"=\" 3 3\n")
fprintf(myform "ENDFIELD\n")

fprintf(myform "FIELD ff\n")
fprintf(myform "FLOC 32 3\n")
fprintf(myform "STRFILLIN 10 10 \n")
fprintf(myform "ENDFIELD\n")
fprintf(myform "\n")

fprintf(myform "FIELD reset\n")
fprintf(myform "FLOC 9 6\n")
fprintf(myform "MENUBUTTON \"Clear\" 8 3\n")
fprintf(myform "ENDFIELD\n")

fprintf(myform "FIELD exit\n")
fprintf(myform "FLOC 30 6\n")
fprintf(myform "MENUBUTTON \"Exit\" 8 3\n")
fprintf(myform "ENDFIELD\n")


fprintf(myform "\n")
fprintf(myform "ENDTILE\n")
fprintf(myform "\n")
fprintf(myform "ENDFORM\n")
close( myform)

)

(defun myConv_Action (myform)
        aa=evalstring(axlFormGetField(myform "aa"))
        bb=evalstring(axlFormGetField(myform "bb"))
        dd=evalstring(axlFormGetField(myform "dd"))
        ee=evalstring(axlFormGetField(myform "ee"))
(case myform->curField
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

Archiver|手机版|网站地图|Cadence Skill 论坛 ( 蜀ICP备13024417号 )

GMT+8, 2024-11-23 20:12 , Processed in 0.159131 second(s), 15 queries .

Powered by Discuz! X3.4

© 2001-2017 Comsenz Inc.

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