Luar's Flash Playground:再談修改Tree組件
新聞(100)
觀點或評論(93)
Flash書(63)
教程(65)
Design Patterns(3)
FlashCom筆記(45)
Flash Remoting筆記(27)
Flex筆記(11)
Flash Lite筆記(14)
PHP資訊(22)
Ajax筆記(9)
習作(47)
組件(15)
酷站(31)
學習資源(28)
書籍推介(15)
本站與我(90)
RSS瀏覽器
聯絡
熱愛鑽研
Ajax
ActionScript
Flash
Flash Lite
Flex
Flash Remoting
FlashCom
Director
Lingo
PHP
Multiplayer Game

搜尋
VCASMO
再談修改Tree組件 (31-05-2003)

在《修改Tree組件支持中文》一文中提到刪除水平Scroll Bar的修改,我發覺這樣做太過Hard Code,正確做法應該修改為自動偵測Tree高度和寬度,自動出現或隱藏Scroll Bar。打開Library,修改Flash UI Components>Tree

ftree05.gif

Layer "Actions : Class",第27行,將:
this.permaScrollBar = true;

轉為:
this.permaScrollBar = false;

ftree06.gif

注意
如果之前作了刪除水平Scroll Bar的修改,請還原,才進行這修改。

補充(15-8-2003 追加)
都怪自己水平太低,沒有看清楚幫助文檔,原來FTree早有Method提供:
FTree.setAutoHideScrollBar(true);

本文章由luar發表。
意見
  • 请luar收一下邮件,帮助解答关于FLASHCOM的白板功能扩充功能时遇到的问题。
    QQ:130225057

    sytxlm於08-06-2003發表

  • 灭世狂舞

    由tt於15-03-2004發表

同組文章

Movable Type 3.15系統支持,Luar's Production版權所有。