タブ - インジケータ
インジケータの表示位置を変更したい
インジケータの表示位置や表示・非表示は、Rootクラスのindicatorプロパティで設定を行います。indicatorプロパティには表示のタイプと処理状態の2点を組み合わせて設定します。
表示位置と表示・非表示は、タイプ(INDTYPE_xxx)で設定を行います。
○
定数
INDTYPE_STD
… タブアイコン部分に表示
INDTYPE_STATUSBAR
… ステータスバー上に表示
INDTYPE_WINDOW
… ウィンドウ上に表示
INDTYPE_SILENT
… 非表示
Form form1 { width = 561; height = 369; OptionButton optType { x = 40; y = 80; Width = 257; Height = 106; OptionItem OptionItem1[4] { height = 25; Width = 254; this[0].Title = "INDTYPE_STD (タブアイコン部分)"; this[0].value == root.INDTYPE_STD; this[1].Title = "INDTYPE_STATUSBAR (ステータスバー)"; this[1].value = root.INDTYPE_STATUSBAR; this[2].Title = "INDTYPE_WINDOW (ウィンドウ上)"; this[2].value = root.INDTYPE_WINDOW; this[3].Title = "INDTYPE_SILENT (表示なし)"; this[3].value = root.INDTYPE_SILENT; Function OnTouch( e ) { /*選択された状態をインジケータに反映*/ //.indicator = root.INDSTAT_ALL + e.from.value; } } value = 0; } Button button1 { x = 40; y = 208; width = 256; height = 88; title = "処理開始"; function onTouch(e) { this.title = "処理中"; Application.sleep(5); this.title = "処理終了"; } } Label label1 { x = 32; y = 32; width = 384; height = 40; value = "インジケータの表示状態を選択して、ボタンを押下してください"; font = new Font("MS UI Gothic", 10, true, false, false, false); verticalAlign = ALIGN_MIDDLE; } }
Biz-Collections Bizの宝箱 トップへ
Biz/Browser DT・Biz/Designer DT TIPS集 トップへ