为节点选择图片

2017-09-15 14:58:24
黄善超
3174
最后编辑: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