Page 1 of 1
Subclass for DCTREEROOT / DCTREEITEM
Posted: Sun Mar 24, 2013 4:50 am
by Wolfgang Ciriack
Hello,
has someone an example for subclassing (ownerdraw) a DCTreeroot/DCTreeItem ?
Ich like to have different fonts and/or background colors for branches.
Re: Subclass for DCTREEROOT / DCTREEITEM
Posted: Sun Mar 24, 2013 7:40 am
by rdonnay
Unfortunately, that would require using Ownerdrawing, which is not supported by the treeview class.
Re: Subclass for DCTREEROOT / DCTREEITEM
Posted: Sun Mar 24, 2013 11:28 am
by Wolfgang Ciriack
Thanks.

Re: Subclass for DCTREEROOT / DCTREEITEM
Posted: Sun Mar 24, 2013 1:51 pm
by Auge_Ohr
Wolfgang Ciriack wrote:has someone an example for subclassing (ownerdraw) a DCTreeroot/DCTreeItem ?
Ich like to have different fonts and/or background colors for branches.
as Roger say Xbase++ does not support XbpTreeView Ownerdraw but you can :
1.) SubClass XbpTreeView() using ot4xb see :
resize TreeView Background Image
ot4xb.public
1. September 2011
2.) use my "native" TreeView Control which can use Ownerdraw ( with API Function to draw )