Autor Beitrag
Andreas Pfau
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 997



BeitragVerfasst: Mi 29.01.03 18:55 
Hallo,

ich wollet grade ein mit Delphi6 erstelltes Projekt mit delphi7 compilieren, um das XP-Style zu übernehmen. Das Problem: Ich verwende dort mehrere TPanel-Komponenten, bei denen ich die Eigenschaft Color ändere, um eine Art Farb-Setup darzustellen. Aber wenn zur Laufzeit erscheinen alle Panels Grau. Gibt es eine Möglichkeit, Panels auch unter XP farbig darzustellen?
kampfkoloss23
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 96



BeitragVerfasst: Mi 29.01.03 23:16 
Ich versteh das Prob nicht, das Verstellen der Farbe von
Panels geht unter XP und Delphi 6 einwandfrei. (Zumindest bei mir)
Bei ausgefalleren Farben kannst du doch dann einfach ein Bitmap
auf das Panel setzen.
Andreas Pfau Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 997



BeitragVerfasst: Sa 01.02.03 13:33 
Hallo,

klar, mit D6 klappt's. Ich habe mir grade ein PCMagazin gekauft, da steht des rätsels Lösung: Der Fehler tritt nur auf, wenn man D6-Porjekte mit D7 bkompilieren will. so hebelt man das Prob aus:
- ParentBackground = True
- Speichern, compilieren
- ParentBackground = False
- Speichern, compilieren
Dann werden die Farben richtig dargestellt.