Originally posted by: China man
what a stupid example! and so many programer say great to it! pardon my poor english
Originally posted by: Aleko Boychev
Hi!
If you change the attributs of item with italic style for example, when you select the item, these attributs are lost, until selchange to another item. How can this be avoided? How can remain the attributes of the selected item the same, as defined in the LOGFONT structure for this item?
Any help appreciated,
Best, Aleko
Originally posted by: Monika Fuerch
The code is about four years old - I do not know, whether you ever will read my comment on it - but if: "Thank you".
Wonderful, Great!
Regards
Monika
Originally posted by: RABIA
it is a nice piece. i m trying to change the background color of any item. plz provide me help h to do tht?
ReplyOriginally posted by: Mike Philis
Check this out: http://www.exontrol.com/sg.jsp?content=products/extree
Features include:
Mike
Are you looking for a cool tree control?
ActiveX hosting, events from contained components are fired through to your program using the exact same model used in VB6 for components added at run time, data bounding, multiple columns, and more
www.exontrol.com
Originally posted by: Jason Mohyla
I like this alot, but I am having an issue with the tree when you scroll up or down with the scroll bar, the text is losing the color assinged to it.
By clicking on the the text and then moving to another item the color comes back. I have tried to define my own OnVScroll function, but that has no effect.
Thx
Jason
Originally posted by: Gabriel Fleseriu
Great article. Thnks.
Any ideas how to make selected items to keep their font (e.g normal coloring - white on blue - but still, say, italic) ?
Gabriel
ReplyOriginally posted by: Sree Hari Krishnan
This is really good.
ReplyOriginally posted by: Peter Loer
If you've adjusted your itemheight, the following line in OnPaint will need to either have its constants adjusted or modified to calcululate them dynamically.
memDC.TextOut( rect.left+2, rect.top+1, sItem );
ReplyOriginally posted by: Binh
Hello,
I used your sample and was successfully created a dual color tree. Thanks!
But for some reason, when I select an item and click the mouse somewhere else from the control. Then, the selected item changed color.
Samething happend when I have 2 different colors in the tree, and I try to select one and then select another one.
Seem as if when the item has focus, it use the color that was last mapped to the color structure. When a new item is selected, the old selected item has a focus rectangle around it and the color of the text in side that focus rectangle is not the color i want, how do i specify the color of the text inside that focus rectangle.
Help, I tried almost a week and cannot figure this out.
Thanks in advance for any suggestions.
Binh