Autor Beitrag
7GFIGW
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Beiträge: 27



BeitragVerfasst: Fr 22.07.05 10:50 
Hi,


wenn ich in D7 die XP Komponente aufs Form ziehe, sind zwar meine Panels wie in der Vorschau blau. Sobald ich aber das Programm ausführe sind Sie grau!

Was kann ich tun, damit sie auch wirklich im Programm blau sind?
AXMD
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 4006
Erhaltene Danke: 7

Windows 10 64 bit
C# (Visual Studio 2019 Express)
BeitragVerfasst: Fr 22.07.05 10:53 
Grau? Blau? Häää? :lol: Ich versteh irgendwie dein Problem nicht zumal das Panel grau vom grauen XP-Theme oder grau vom Standard(2000)-Theme sein kann :?

AXMD
7GFIGW Threadstarter
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Beiträge: 27



BeitragVerfasst: Fr 22.07.05 10:57 
Ich habe das Panel Blau gemacht...doch wenn ich es mit XPManifest starte ist es im Programm selber grau! Ich wills aber blau haben!
AXMD
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 4006
Erhaltene Danke: 7

Windows 10 64 bit
C# (Visual Studio 2019 Express)
BeitragVerfasst: Fr 22.07.05 11:00 
user profile icon7GFIGW hat folgendes geschrieben:
Ich habe das Panel Blau gemacht...doch wenn ich es mit XPManifest starte ist es im Programm selber grau! Ich wills aber blau haben!


Tja... entweder Manifest oder eigene Farbe ;) Das Manifest ist ja dazu da, eine einheitliche Farbgebung zu bewirken. Du kannst höchstens die Paint-Message abfangen...

AXMD
7GFIGW Threadstarter
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Beiträge: 27



BeitragVerfasst: Fr 22.07.05 11:03 
ja aber im explorer ist links die seite auch blau!
retnyg
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 2754

SNES, GB, GBA, CPC, A500, 486/66, P4/3.0HT: NintendOS, AmigaOS, DoS
Delphi 5, Delphi 7
BeitragVerfasst: Fr 22.07.05 11:07 
nimm einen farbwert ala $000000FF und nicht sowas wie ClButtonColor oder so, weil sich diese Konstanten auf systemfarben beziehen,

_________________
es gibt leute, die sind genetisch nicht zum programmieren geschaffen.
in der regel haben diese leute die regel...
7GFIGW Threadstarter
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Beiträge: 27



BeitragVerfasst: Fr 22.07.05 11:13 
funktioniert auch nicht!
AXMD
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 4006
Erhaltene Danke: 7

Windows 10 64 bit
C# (Visual Studio 2019 Express)
BeitragVerfasst: Fr 22.07.05 11:14 
user profile icon7GFIGW hat folgendes geschrieben:
funktioniert auch nicht!


Logisch. Grund hab ich oben schon genannt -_-

AXMD
Stefan-W
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 475

Win 7 SP1
D2005 PE
BeitragVerfasst: Fr 22.07.05 13:27 
es gibt da eine lösung !!! hab ich in mein Mausmenü auch eingebaut.

und wenn mich nicht alles teuscht müsste das schon alles sein...
ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
6:
7:
8:
9:
Procedure TF_Main.FormCreate(Sender: TObject);
Var
    I: Integer;
Begin
    For I := 0 To ComponentCount - 1 Do
        If Components[I] Is TPanel Then
            (Components[I] As TPanel).ParentBackground := False;
    {...}
End;

(wenns nicht geht bitte bescheitsagen ich hab da noch paar codschnipsel die ich durchsehen kann)
Fabian W.
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 1766

Win 7
D7 PE
BeitragVerfasst: Fr 22.07.05 13:29 
Ein Panel kennt viele Parant- Eigenschaften, -Color, -Background, usw.
Mit denen geht das ganze.