Autor Beitrag
cromos
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 219


Delphi 7
BeitragVerfasst: Do 28.08.03 18:49 
Hallo,

weiss jemand wie man ein Hintergrundbild in ein TreeView bekommt?

Gruss
Cromos
CenBells
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 1547

Win 7
Delphi XE5 Pro
BeitragVerfasst: Do 28.08.03 19:34 
hallo,

ja, du musst das bild selber zeiten. Am besten machst du es bevor die items gezeichnet werden.

Gruß
Ken

_________________
Eine Klasse beschreibt die Struktur und das Verhalten einer Menge gleichartiger Objekte.
cromos Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 219


Delphi 7
BeitragVerfasst: Do 28.08.03 19:55 
Wie meinst du das. Selber Zeichnen. Ich möchte ein Bitmap als Hintergrund für die TreeView haben.
CenBells
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 1547

Win 7
Delphi XE5 Pro
BeitragVerfasst: Do 28.08.03 20:10 
Hallo,

schau dir mal das ereignis TreeView.OnAdvancedCustomDraw in der Hilfe näher an. Damit kannst du vor dem zeichnen der items den hintergrund pinseln.

Ein Bitmap kannst du dann malen, indem du es in ein TBitmap lädst und dann paintTo aufrufst...

Gruß
Ken

_________________
Eine Klasse beschreibt die Struktur und das Verhalten einer Menge gleichartiger Objekte.
cromos Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 219


Delphi 7
BeitragVerfasst: Sa 30.08.03 11:19 
Jo, danke, hab es hinbekommen.

Gruss

Cromos
Terra23
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 872

Win 8
Delphi 7
BeitragVerfasst: Do 08.10.09 15:48 
user profile iconcromos hat folgendes geschrieben Zum zitierten Posting springen:
Jo, danke, hab es hinbekommen.

Gruss

Cromos


Darf ich fragen, wie du das hinbekommen hast? Ich kann mir aus der Hilfe leider eigenständig nichts herleiten.

Terra

_________________
Hasta La Victoria Siempre