ウィンドウ - タイトルバー
ウィンドウのアイコンを変更したい
フレームウィンドウのアイコンは、FrameWindowオブジェクトのiconプロパティで変更が可能です。
Form from1 { width = 401; height = 201; button button1 { x = 32; y = 72; width = 296; height = 88; title = "タイトルバーのアイコン設定"; acceptDrop = DisplayObject.DROP_FILE; Function onDropped(e) { if( e.type == DisplayObject.DROP_FILE ){ var img = new Image(e.Data); /*フレームウィンドウを取得*/ var wd = //.getFrameWindow(); /*フレームウィンドウのアイコンを変更*/ wd.icon = img; } } } Label label1 { x = 24; y = 16; width = 320; height = 40; value = "以下にアイコン画像をドラッグ&ドロップしてください"; } if (!Application.DESIGNTIME) { /*タブ非表示*/ //.getFrameWindow().tabAutoHide = true; } }
Biz-Collections Bizの宝箱 トップへ
Biz/Browser DT・Biz/Designer DT TIPS集 トップへ