EDA365电子工程师网

标题: 请教:如何在FORM窗口上加LOGO图片?(已解决) [打印本页]

作者: 长天落彩霞    时间: 2011-11-4 16:22
标题: 请教:如何在FORM窗口上加LOGO图片?(已解决)
本帖最后由 长天落彩霞 于 2011-11-8 09:30 编辑

如何在FORM窗口上加LOGO图片?


[attach]45615[/attach]
作者: SilverJohn    时间: 2011-11-4 16:49
In form file place next component:
FIELD <field_name>
  THUMBNAIL <file_name>
  OPTIONS stretch
  FLOC 4 2
  FSIZE 3 2
ENDFIELD

Then copy your icon (file_name.bmp) to %bmppath%
作者: 长天落彩霞    时间: 2011-11-6 13:07
SilverJohn 发表于 2011-11-4 16:49
In form file place next component:
FIELD
  THUMBNAIL

按您的意思我设置如下:

FIELD logo
  THUMBNAIL "G:/AXLskill/aaa.bmp"
  OPTIONS stretch
  FLOC 50 2
  FSIZE 10 7
ENDFIELD

返回值为:
Skill > axlFormTest("symbol1.form")
field/value "" = nil (int 0
)doneState 3
t

没有加载成功,这是为什么?
作者: SilverJohn    时间: 2011-11-7 23:41
THUMBNAIL aaa.bmp
And place aaa.bmp file to %bmppath%. (defaults are: "." ".../share/local/pcb/icons" ".../share/pcb/text/icons").

Also, I think, you can try:
THUMBNAIL G:/AXLskill/aaa.bmp
But I never use this way.

And finally, you mast reading API documentation and view examples.

作者: 长天落彩霞    时间: 2011-11-8 09:29
SilverJohn 发表于 2011-11-7 23:41
THUMBNAIL aaa.bmp
And place aaa.bmp file to %bmppath%. (defaults are: "." ".../share/local/pcb/icon ...

{:soso_e100:}  明白了,谢谢啊!~




欢迎光临 EDA365电子工程师网 (https://bbs.elecnest.cn/) Powered by Discuz! X3.2