爲節點選擇圖片

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

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

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


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

 

 

項目             類型         訪問屬性

用一些圖像增加一箇節點。       Integer       AddPictureNode

控件背景           Picture        BackImage

列頭圖片夾            integer       ColumnPicture

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

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

節點展開時使用的圖像索引   integer       NodePicExpand

節點選擇時使用的圖像索引   integer       NodePicSelect

節點主圖片使用的索引     integer       NodePicture

控件單元格內圖片默認對齊   integer       PicAlign

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

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

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

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

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

指定控件列錶部分內的圖標大小  boolean        SmallIcons