Home » U++ Library support » TreeCtrl » Changing tree control style
Re: Changing tree control style [message #29753 is a reply to message #29752] |
Sun, 14 November 2010 16:57 |
|
Hi Graeme
All you need to change is in TreeCtrl::Paint(). There is no DrawLine simply because the lines are drawn using DrawRect with width (or height) of 1. Paint() is virtual, so the easiest way to get the behavior you want is to make an inherited class MyTreeCtrl:public Tree and override its Paint().
The only problem you might encounter is actually how to draw the dotted line, if I remember correctly there is no simple function to draw a line with pattern using Draw. So you will probably have to draw the dots somehow yourself.
Best regards,
Honza
|
|
|
Goto Forum:
Current Time: Tue May 07 14:51:51 CEST 2024
Total time taken to generate the page: 0.02327 seconds
|