Re: Welche Windows-Events zum Zeichnen eines Buttons
Hab das Problem gefunden. Der ThemeManager muss auf dem Formular liegen, dann gehts.
Allerdings sollte in DefaultDrawBackground folgendes entfernt werden:
Delphi-Quellcode:
und folgendes abgeändert:
{ Note that changing the background color with active
visual styles will *NOT* look good in most cases! } if (Brush.Color <> clBtnFace) and (Brush.Color <> clNone) then begin InflateRect(Rect, -1, -1); FillRect(Canvas.Handle, Rect, Brush.Handle); InflateRect(Rect, 1, 1); end;
Delphi-Quellcode:
in
if Brush.Color <> clNone then
FillRect(Canvas.Handle, Rect, Brush.Handle);
Delphi-Quellcode:
So wird das "normale" Verhalten von Windows erzeugt.
FillRect(Canvas.Handle, Rect, GetSysColorBrush(COLOR_BTNFACE));Rect, Brush.Handle);
Ich nutze teilweise andersfarbige Hintergründe. |
Alle Zeitangaben in WEZ +1. Es ist jetzt 14:14 Uhr. |
Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024 by Thomas Breitkreuz