為節(jié)點選擇圖片

2017-09-15 14:58:24
黃善超
3623
最后編輯:tmtony8 于 2017-09-15 15:38:09

ctTree 控制靠分配一系列的圖像至一內(nèi)置列表能夠顯示控制里面的多種不同的圖像。

控件屬性頁中的圖片列表是可用的。它允許程序選擇多達100個圖像 (圖標或位圖) 。 圖像索引值直接對應它在圖片列表中的位置。


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

 

 

項目             類型         訪問屬性

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

控件背景           Picture        BackImage

列頭圖片夾            integer       ColumnPicture

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

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

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

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

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

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

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

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

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

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

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

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

    移動訪問