2013-03-07 69 views

回答

2

这个问题被问到一个LiveCode列表服务器,我在这里回答,因为其他人可能会觉得它有用。

不,它不可能做到这一点,但很容易创建一个自定义进度栏,您可以设置颜色如何你喜欢。

创建两个图形。一个用于边界,一个用于酒吧。无论你喜欢如何设置颜色和图形效果。对它们进行分组,然后将以下内容添加到组脚本中:

setProp uPercent pPercent -- 0..100 
    put the rect of grc "border" of me into tRect 
    put round(item 1 of tRect+(item 3 of tRect-item 1 of tRect)*pPercent/100) into item 3 of tRect 
    set the rect of grc "bar" of me to tRect 
end uPercent