Delphi-PRAXiS

Delphi-PRAXiS (https://www.delphipraxis.net/forum.php)
-   GUI-Design mit VCL / FireMonkey / Common Controls (https://www.delphipraxis.net/18-gui-design-mit-vcl-firemonkey-common-controls/)
-   -   Delphi ActionToolBar -> Items - Transparenz? (https://www.delphipraxis.net/90716-actiontoolbar-items-transparenz.html)

Hafish 22. Apr 2007 17:35


ActionToolBar -> Items - Transparenz?
 
Hi

Ich habe ein Problem mit meiner ActionToolBar. Mein Programm ist folgendermaßen aufgebaut:

Eine TCoolbar
->darauf eine TActionToolbar
->und darauf dann TActionClientItems, also die Actions aus dem ActionManager...

Jetzt habe ich eine PNGImageList, die meinen Actions die Images liefert. Diese Images sind zum Teil transparent (daher png).

Es funktioniert auch alles wunderbar mit der Darstellung, die Images werden transparent angezeigt und meine Actiontoolbar ist auch dank Parentbackground = true richtig dargestellt.
Wenn ich nun allerdings auf eins der ActionsClientItems klicke, um die Action auszulösen, wird die Action nicht mehr transparent dargestellt sondern mit clBtnFace. Die ActionToolBar selbst ändert ihre Farbe allerdings nicht!

Weiß jemand woran das liegt bzw wie man es ändern kann, dass das Items seine Transparenz verliert?

Schonmal Danke für eure Hilfe...

Edit: Achja: Es ist immer nur das zuletzt angeklickte nicht-transparent, sobald ich ein neues anklicke wird das alte wieder richtig dargestellt. Ich verändere aber keine Checked /Enabled Werte oder sowas, es ist lediglich ein Code dahinter der ein Fenster öffnet.


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