下面是最低限度的工作代码:
require("iuplua")
require( "iupluacontrols" )
require("iupluaimglib")
label_1 = iup.label {title = "The label "}
label_2 = iup.label {image = "IUP_ActionOk"}
-- NOT WORK
--label_3 = iup.AnimatedLabel(NULL);
--iup.SetAttribute(label, "ANIMATION", "IUP_CircleProgressAnimation");
--iup.SetAttribute(label, "START", "Yes");
vbox = iup.vbox{
label_1
,label_2
--, label_3
}
dlg = iup.dialog{
vbox
}
dlg:showxy(iup.CENTER,iup.CENTER)
dlg.usersize = nil
-- to be able to run this script inside another context
if (iup.MainLoopLevel()==0) then
iup.MainLoop()
iup.Close()
end这个例子取自“帮助”,但不幸的是,所评论的内容不起作用。
发布于 2018-02-19 19:45:56
使用以下代码:
label_3 = iup.animatedlabel{}
label_3.animation = "IUP_CircleProgressAnimation"
label_3.start = "Yes"刚刚做了测试你的样本成功了。
https://stackoverflow.com/questions/48618486
复制相似问题