Autor Beitrag
Experience1986
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 192

Win XP Pro SP2
Delphi 7
BeitragVerfasst: So 28.05.06 20:44 
Hi,

ich überarbeite derzeit meine Software AutostartAdministrator. Um die Anwendung etwas ansehlicher zu gestalten habe ich beschlossen ein TListView selbst zu zeichnen...

Nun nehme ich unter bestimmten Bedingungen eine bestimmte Grafik aus einer TImageList. Diese Zeichne ich dann auf ein Item der TListBox.

ausblenden Delphi-Quelltext
1:
2:
3:
      tmp.Picture.Icon.Handle:=0; // Vorherige Abbildung löschen
      MainImgList.GetBitmap(23, tmp.Picture.Bitmap); // Grafike aus ImageList extportieren
      lbAutostarts.Canvas.Draw(Rect.Right-MainImgList.Width-10, Rect.Top+trunc((th/2)-(MainImgList.Height/2)), tmp.Picture.Graphic); // An entsprechende Stelle zeichnen


Nun habe ich das Problem das um die Grafik (Der rot umrandete, grüne Pfeil) nicht rundherum transparent ist. Daher sieht man einen weißen Rand...

user defined image

Ich hab schon versucht die TImage "tmp" mit der Eigenschaft Transparent=true zu versehen, allerdings schafft das keine Abhilfe...

Könnt ihr mir da weiterhelfen?
Narses
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Administrator
Beiträge: 10185
Erhaltene Danke: 1261

W11x64
TP3 .. D7pro .. D10.2CE
BeitragVerfasst: So 28.05.06 22:18 
Moin!

Guckst du hier, vielleicht hilft das. ;)

cu
Narses

_________________
There are 10 types of people - those who understand binary and those who don´t.
Experience1986 Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 192

Win XP Pro SP2
Delphi 7
BeitragVerfasst: So 28.05.06 22:56 
Ein rießen groses Dankeschön...
Wie man sehen kann, hats geklappt. Und endlich weiß ich auch wie man den schwarze Rahmen Effekt bei XP Symbolen umgeht...
Narses
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Administrator
Beiträge: 10185
Erhaltene Danke: 1261

W11x64
TP3 .. D7pro .. D10.2CE
BeitragVerfasst: So 28.05.06 22:59 
Moin!

Markierst du den Thread entsprechend, wenn dein Problem gelöst ist? Danke. ;)

cu
Narses

_________________
There are 10 types of people - those who understand binary and those who don´t.