Bruno
You wrote in message news:9haqnu$d84k8$
[hidden email]...
>
> Is there any way to change dynamically the icons in a TreeView (we do not
> want to use the class icons neither to change it) ?
This is the purpose of the #getImageBlock: aspect of the TreeView. The
argument to the block is the object being drawn. The block should evaluate
to the integer representing the image to be used, where that integer is the
index of the icon in the TreeView's image list. This index is easily
acquired by sending any Icon the #imageIndex messsage. Return 0 if you don't
want to display an image against a particular item.
Regards
Blair