Hello,
has someone an example for subclassing (ownerdraw) a DCTreeroot/DCTreeItem ?
Ich like to have different fonts and/or background colors for branches.
Subclass for DCTREEROOT / DCTREEITEM
-
- Posts: 484
- Joined: Wed Jan 27, 2010 10:25 pm
- Location: Berlin Germany
Subclass for DCTREEROOT / DCTREEITEM
_______________________
Best Regards
Wolfgang
Best Regards
Wolfgang
Re: Subclass for DCTREEROOT / DCTREEITEM
Unfortunately, that would require using Ownerdrawing, which is not supported by the treeview class.
The eXpress train is coming - and it has more cars.
-
- Posts: 484
- Joined: Wed Jan 27, 2010 10:25 pm
- Location: Berlin Germany
Re: Subclass for DCTREEROOT / DCTREEITEM
as Roger say Xbase++ does not support XbpTreeView Ownerdraw but you can :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.
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 )
greetings by OHR
Jimmy
Jimmy