Autor Beitrag
Hochhaus
ontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic starofftopic star
Beiträge: 662
Erhaltene Danke: 8

Windows 7
Delphi XE2
BeitragVerfasst: So 08.06.14 15:57 
Hallo allerseits !

wie kann man die Fensterfarbe zuoberst in der Umrandung eines Fensters setzen ? Kann man das unter Delphi überhaupt - oder geht die Auswahl nur in der Windows-Systemsteuerung / Anzeige ?

Danke für jede Antwort !


Hochhaus
Einloggen, um Attachments anzusehen!
jaenicke
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 19315
Erhaltene Danke: 1747

W11 x64 (Chrome, Edge)
Delphi 11 Pro, Oxygene, C# (VS 2022), JS/HTML, Java (NB), PHP, Lazarus
BeitragVerfasst: Mo 09.06.14 09:08 
Mit SetSysColors solltest du weiterkommen. ;-)
msdn.microsoft.com/e...esktop/ms724940.aspx

Für diesen Beitrag haben gedankt: Hochhaus
Hochhaus Threadstarter
ontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic starofftopic star
Beiträge: 662
Erhaltene Danke: 8

Windows 7
Delphi XE2
BeitragVerfasst: Mo 09.06.14 10:56 
Aber setzt das die Fensterfarben nicht im gesamten System ? Ich möchte nur andere Farben in meinem Programm ... !

Hochhaus
WasWeißDennIch
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 653
Erhaltene Danke: 160



BeitragVerfasst: Mo 09.06.14 11:39 
Such doch mal nach WM_NCPAINT, damit müsste es gehen.

Für diesen Beitrag haben gedankt: Hochhaus
Martok
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 3661
Erhaltene Danke: 604

Win 8.1, Win 10 x64
Pascal: Lazarus Snapshot, Delphi 7,2007; PHP, JS: WebStorm
BeitragVerfasst: Mi 11.06.14 09:54 
user profile iconWasWeißDennIch hat folgendes geschrieben Zum zitierten Posting springen:
Such doch mal nach WM_NCPAINT, damit müsste es gehen.

Jupp, Windows malt das mit den im Design eingestellten Daten. Wenn du etwas anderes möchtest, musst du die NonClient-Area selber malen. "Drübermalen" genau genommen, das Windows-eigene Handling passiert, bevor die Message gesendet wird.

_________________
"The phoenix's price isn't inevitable. It's not part of some deep balance built into the universe. It's just the parts of the game where you haven't figured out yet how to cheat."

Für diesen Beitrag haben gedankt: Hochhaus
WasWeißDennIch
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 653
Erhaltene Danke: 160



BeitragVerfasst: Mi 11.06.14 11:37 
Exakt, ein Beispiel von vielen findet sich z.B. hier: delphi.about.com/od/.../draw_captionbar.htm

P.S.: Nenn mich bitte nicht Jupp :lol:

Für diesen Beitrag haben gedankt: Hochhaus
Hochhaus Threadstarter
ontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic starofftopic star
Beiträge: 662
Erhaltene Danke: 8

Windows 7
Delphi XE2
BeitragVerfasst: Mi 11.06.14 13:11 
Danke für das Beispiel !!


Hochhaus
Martok
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 3661
Erhaltene Danke: 604

Win 8.1, Win 10 x64
Pascal: Lazarus Snapshot, Delphi 7,2007; PHP, JS: WebStorm
BeitragVerfasst: Mi 11.06.14 14:06 
user profile iconWasWeißDennIch hat folgendes geschrieben Zum zitierten Posting springen:
P.S.: Nenn mich bitte nicht Jupp :lol:
Okay, dann nenne ich dich ab sofort "Jo". :mrgreen:

_________________
"The phoenix's price isn't inevitable. It's not part of some deep balance built into the universe. It's just the parts of the game where you haven't figured out yet how to cheat."

Für diesen Beitrag haben gedankt: WasWeißDennIch