2013-03-07 73 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