Delphi-PRAXiS

Delphi-PRAXiS (https://www.delphipraxis.net/forum.php)
-   Sonstige Fragen zu Delphi (https://www.delphipraxis.net/19-sonstige-fragen-zu-delphi/)
-   -   TComboBox.Color, csDropDownList klappt ab Vista nicht mehr (https://www.delphipraxis.net/165116-tcombobox-color-csdropdownlist-klappt-ab-vista-nicht-mehr.html)

hoika 15. Dez 2011 08:18

TComboBox.Color, csDropDownList klappt ab Vista nicht mehr
 
Hallo,

die Farbe der ComboBox wird nicth gesetzt,
erst wenn ich die ComboBox aufklappte, zeigt er mir die Farbe an.

Auch TAdvCombobox (TMS) geht nicht).
Bei TAdvOfficeCmboBox kann ich zumindestens die BorderColor setzen.

Unter XP ging das noch ...

Kennt jemand eine Lösung ?

Danke


Heiko

Bummi 15. Dez 2011 09:39

AW: TComboBox.Color, csDropDownList klappt ab Vista nicht mehr
 
Delphi-Quellcode:
uses uxTheme;

{$R *.dfm}

procedure TForm2.FormCreate(Sender: TObject);
begin
SetWindowTheme(ComboBox1.Handle,'','');
end;


Alle Zeitangaben in WEZ +1. Es ist jetzt 00:34 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