Autor Beitrag
O'rallY
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 563



BeitragVerfasst: Di 27.08.02 21:14 
Ich würde gerne verschiedenen Nodes in verschiedenen Farben anzeigen lassen oder sie farbig hinterlegen. Ist das möglich?
Als Beispiel:

-Node1 (blau)
|-SubNode1 (rot)
|-SubNode2 (rot)
-Node2 (blau)
|-SubNode1 (rot)
Indeterminatus
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 47



BeitragVerfasst: Mi 28.08.02 11:40 
Du könntest es einmal probieren über die CustomDraw-Methode ...

Du musst zwar alles händisch eintippen, aber es funktioniert aller Wahrscheinlichkeit nach ...

Es kann natürlich sein, dass es einen viel bequemeren und einfacheren Weg gibt, um dieses Problem zu lösen, ich hätte das eben auf diese Art und Weise getan ...

Hoffe, dass ich Dir helfen konnte ...

Indeterminatus.

_________________
_______________________________________
Indeterminatus

---=si tacuisses, philosophus mansisses=---
O'rallY Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 563



BeitragVerfasst: Mi 28.08.02 13:39 
Könntes du vielleicht ein Beispiel geben? Ich habe mich zwar schon in der Delphi Hilfe umgeschaut, eine "TCustomTreeView.CustomDraw" gefunden, aber ich komme damit nicht klar.
Tino
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Veteran
Beiträge: 9839
Erhaltene Danke: 45

Windows 8.1
Delphi XE4
BeitragVerfasst: Mi 28.08.02 13:59 
Ich würde dafür das OnCustomDrawItem Event benutzen. Schau mal in der Hilfe nach. Dort befindet sich auch ein relativ gutes Beispiel.

Gruß
TINO