![]() |
StatusBar FontColor ?
Wenn ich bei meiner StatusBar die Schriftfarbe ändere, wird diese aber nicht angezeigt
Delphi-Quellcode:
:gruebel:
StatusBar1.Font.Color := clRed;
StatusBar1.Panels.Items[1].Text := 'Schrift wird nicht in clRed angezeigt'; |
DP-Maintenance
Dieses Thema wurde von "Matze" von "Sonstige Fragen zu Delphi" nach "VCL / WinForms / Controls" verschoben.
|
Re: StatusBar FontColor ?
Hast du XP-Theming für deine Anwendung aktiviert?
|
Re: StatusBar FontColor ?
was ist XP-Theming ?
|
Re: StatusBar FontColor ?
Das dürfte damit nichts zu tun haben. Eine mögliche Lösung wäre diese hier:
Delphi-Quellcode:
procedure TForm1.FormCreate(Sender: TObject);
begin // Auch im OI einstellbar StatusBar1.Panels[0].Style := psOwnerDraw; StatusBar1.Panels[0].Width := 250; end; procedure TForm1.StatusBar1DrawPanel(StatusBar: TStatusBar; Panel: TStatusPanel; const Rect: TRect); var PanelRect: TRect; begin if Panel = StatusBar1.Panels[0] then begin StatusBar.Canvas.FillRect(Rect); StatusBar1.Font.Color := clRed; StatusBar1.Canvas.TextRect(Rect, Rect.Left + 1, Rect.Top, 'Schrift wird in clRed angezeigt'); end; end; |
Re: StatusBar FontColor ?
Zitat:
Und da wird halt die Systemeinstellung verwendet, es sei denn du zeichnest selber. |
Re: StatusBar FontColor ?
hm kann doch nicht sein ich muss doch font.color ändern können wann immer ich will :gruebel:
|
Re: StatusBar FontColor ?
Zitat:
|
Re: StatusBar FontColor ?
ok thx für eure Hilfe
|
Alle Zeitangaben in WEZ +1. Es ist jetzt 08:31 Uhr. |
Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024-2025 by Thomas Breitkreuz