爲(wèi)節(jié)點選擇圖片

2017-09-15 14:58:24
黃善超
3624
最後編輯:tmtony8 於 2017-09-15 15:38:09

ctTree 控製靠分配一繫列的圖像至一內(nèi)置列錶能夠顯示控製裡麵的多種不衕的圖像。

控件屬性頁中的圖片列錶是可用的。牠允許程序選擇多達(dá)100箇圖像 (圖標(biāo)或位圖) 。 圖像索引值直接對應(yīng)牠在圖片列錶中的位置。


以下屬性和方法用來顯示圖像:

 

 

項目             類型         訪問屬性

用一些圖像增加一箇節(jié)點。       Integer       AddPictureNode

控件背景           Picture        BackImage

列頭圖片夾            integer       ColumnPicture

圖片列錶中定義圖片序號    integer       ImageListCount

確定位圖是否修飾(透明)   boolean        MaskBitmap

節(jié)點展開時使用的圖像索引   integer       NodePicExpand

節(jié)點選擇時使用的圖像索引   integer       NodePicSelect

節(jié)點主圖片使用的索引     integer       NodePicture

控件單元格內(nèi)圖片默認(rèn)對齊   integer       PicAlign

可選"Close"(“關(guān)閉”) 圖片       Picture       PictureClose

可選"Leaf"(“樹葉”)圖片          Picture       PictureLeaf

可選"Minus"(“-”)圖片           Picture       PictureMinus

可選"Open"(“打開”)圖片             Picture                         PictureOpen

可選"Plus"(“+”)圖片              Picture                         PicturePlus

指定控件列錶部分內(nèi)的圖標(biāo)大小  boolean        SmallIcons

    移動訪問