Subclass for DCTREEROOT / DCTREEITEM

This forum is for eXpress++ general support.
Post Reply
Message
Author
Wolfgang Ciriack
Posts: 479
Joined: Wed Jan 27, 2010 10:25 pm
Location: Berlin Germany

Subclass for DCTREEROOT / DCTREEITEM

#1 Post 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.
_______________________
Best Regards
Wolfgang

User avatar
rdonnay
Site Admin
Posts: 4729
Joined: Wed Jan 27, 2010 6:58 pm
Location: Boise, Idaho USA
Contact:

Re: Subclass for DCTREEROOT / DCTREEITEM

#2 Post by rdonnay »

Unfortunately, that would require using Ownerdrawing, which is not supported by the treeview class.
The eXpress train is coming - and it has more cars.

Wolfgang Ciriack
Posts: 479
Joined: Wed Jan 27, 2010 10:25 pm
Location: Berlin Germany

Re: Subclass for DCTREEROOT / DCTREEITEM

#3 Post by Wolfgang Ciriack »

Thanks. :(
_______________________
Best Regards
Wolfgang

User avatar
Auge_Ohr
Posts: 1407
Joined: Wed Feb 24, 2010 3:44 pm

Re: Subclass for DCTREEROOT / DCTREEITEM

#4 Post 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 )
greetings by OHR
Jimmy

Post Reply