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 Image für Desktopalert.Button (https://www.delphipraxis.net/108853-image-fuer-desktopalert-button.html)

moperswings 20. Feb 2008 12:56


Image für Desktopalert.Button
 
Hallo,

ich möchte in DesktopAlert-Buttons Bilder einfügen - und kriege es nicht hin!
Die Buttons funktionieren, aber man sieht sie halt nur über mouse_over!
Vielleicht kann mir ja jemand helfen und sieht, wo es happert!
Delphi-Quellcode:
DA := TJVdesktopAlert.Create(self);
for j := 0 to ImageList1.Count - 1 do
begin
  with DA.Buttons.Add do
  begin
    ImageIndex := ImageList1.Count;
    tag := j;
    OnClick := meine_procedure;
  end;
end;

moperswings 20. Feb 2008 15:49

Re: Image für Desktopalert.Button
 
Lösung für zwei Schalterbuttons:
Delphi-Quellcode:
JvDesktopAlert1.Images := ImageList1;
JvDesktopAlert1.Buttons.Items[0].ImageIndex := ImageList1.Count - 2;
JvDesktopAlert1.Buttons.Items[1].ImageIndex := ImageList1.Count - 1;


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