Flex – ProgressBar 隱藏 Label 的方法

當 Application 在跟 Server 擷取資料時,一般都會使用 Busy Indicator 來告知有動作正在執行,但使用 Flex 建立 Web Application 時並沒有提供此 component,故可以使用 ProgressBar 來達到此效果.

一般 ProgressBar 中包含了 Label 這個 Component,那如果把它給 hidden 呢?可以使用下面的屬性來設定讓它 Hidden(紅色所mask的部份).

<mx:ProgressBar id="progressBar" indeterminate="true" width="100%"
                       label="" labelPlacement="right" labelWidth="0" horizontalGap="0" />

效果如下所示:

image

留言

這個網誌中的熱門文章

WPF - 深入 Style

C# – M$ Chart Control 自定 ToolTip 的顯示

Vue.js - 基礎介紹教學