Autor Beitrag
JRegier
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Beiträge: 1268

Win XP Home, Prof, 2003 Server
D6 Enterprise
BeitragVerfasst: Fr 29.07.05 15:19 
Hi, normalerweise sollte das TreeView bei StateIndex = -1 kein Image Anzeigen aber der
zeigt bei mir auch nicht bei StateIndex = 0 an! Bei 1 und 2 schon! Muß ich da was einstellen
das der auch bei StateIndex = 0 das Image aus der ImageList an Position 0 anzeigt?
sahib
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 117

Win 2000 SP4+
Delphi 5 Prof.
BeitragVerfasst: Fr 29.07.05 17:33 
Hi.

Wenn ich richtig liege, hat Delphi (zumindest mein v5) da einen Fehler. Es klappt nur mit StateIndex := -1, 1, 2, ...

Statt des Nullten (richtigen) Bildes nimmste einfach ein leeres Bild und fängst bei Deinen Bildern mit 1 an zu zählen. So klappt es bei mir.

Christian
JRegier Threadstarter
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Beiträge: 1268

Win XP Home, Prof, 2003 Server
D6 Enterprise
BeitragVerfasst: Fr 29.07.05 18:02 
user profile iconsahib hat folgendes geschrieben:
Hi.

Wenn ich richtig liege, hat Delphi (zumindest mein v5) da einen Fehler. Es klappt nur mit StateIndex := -1, 1, 2, ...

Statt des Nullten (richtigen) Bildes nimmste einfach ein leeres Bild und fängst bei Deinen Bildern mit 1 an zu zählen. So klappt es bei mir.

Christian


Vielen Dank! Hab das eigentlich auch schon so gemacht!