- 1 控件的不衕部分
- 2 添加控件節(jié)點
- 3 當(dāng)父節(jié)點處於展開狀態(tài)時添加節(jié)點
- 4 刪除控件節(jié)點
- 5 展開與收縮節(jié)點
- 6 爲(wèi)節(jié)點選擇圖片
- 7 實現(xiàn)拖放
- 8 給控件增加一列
- 9 定義列數(shù)據(jù)類型
- 10 顯示工具條
- 11 添加節(jié)點副文本
- 12 在一箇節(jié)點內(nèi)編輯文本
- 13 樹型控件排序
- 14 給節(jié)點添加檢查框與選項按鈕
- 15 虛模式
- 16 錯誤信息
- 17 事件
- 18 方法
- 19 屬性
爲(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