![]() |
delphi TadvGlowbutton
hello , i have question about TadvGlowbutton Tms component i try to show an transparent buttons with Timagelist icons but even i set the button to transparent i stil got gray background around the button how can i make the adbutton fully transparent iam using BMP images inside Timagelist
|
AW: delphi TadvGlowbutton
I've had them have black corners before, and didn't know what caused this. Placing them on a TPanel solved it. I have not investigated any further, but maybe that could be a workaround for you.
|
AW: delphi TadvGlowbutton
Zitat:
|
AW: delphi TadvGlowbutton
Don't mention it :)
|
AW: delphi TadvGlowbutton
i have other question i know you will save me also i set on click event to create parent form like this
Delphi-Quellcode:
i want if i click on the same button again the parented form hide
procedure TMAIN.btnVolClick(Sender: TObject);
var Rect: TRect; volfrm : Tvolfrm; begin volfrm := Tvolfrm.Create(nil); try GetWindowRect(btnVol.Handle, Rect); if not Assigned(volfrm) then begin volfrm:= Tvolfrm.CreateParented(0); volfrm.FormStyle := fsStayOnTop; end; volfrm.Left := Rect.Left; volfrm.top := Rect.Top - volfrm.Height; finally volfrm.Show; end; end; |
AW: delphi TadvGlowbutton
You need to keep a reference to the form in a higher scope than the procedure, since local variables are not preserved during multiple calls of a procedure. A suitable place could be a member in your TMAIN class. You could then check if the form exists and is visible, and hide it if that is the case.
Please make a new thread for questions unrelated to the initial one in the future. That is a forum rule here, with the purpose of keeping topics easy to access with the search function and maintain a certain level of order. |
AW: delphi TadvGlowbutton
Zitat:
|
Alle Zeitangaben in WEZ +1. Es ist jetzt 20:09 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