是否可以显示内嵌图像?

时间:2013-04-19 18:08:06

标签: textbox livecode

文章http://runrev.com/newsletter/june/issue135/newsletter4.php显示了如何在文本字段中显示表格。是否也可以显示内嵌图像?

2 个答案:

答案 0 :(得分:1)

你必须弄乱该字段的htmltext才能插入在线图像,但是可以这样做。将字段的htmltext放入变量中,然后插入一行html,如

put "<img src=" & quote & "http://www.site.com/image.png" & quote & ">" after line x of tHtmlText

然后将字段的htmltext设置回tHtmlText

答案 1 :(得分:0)

如果图像在您的堆栈中,您可以使用

put "%" into fld 1
set the imageSource of char 1 of fld 1 to 1014

其中%是任意字符,1014是任意图像的图像id。您可以在字段中设置任何字符的imageSource。

相关问题