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 Bild aus ImageList in Statusbar anzeigen? (https://www.delphipraxis.net/17899-bild-aus-imagelist-statusbar-anzeigen.html)

Sharky 11. Mär 2004 08:01


Bild aus ImageList in Statusbar anzeigen?
 
Hai,

ist es möglich ein Bild aus einer TImageList in einem Pannel einer Statusbar anzeigen zu lassen?

toms 11. Mär 2004 08:18

Re: Bild aus ImageList in Statusbar anzeigen?
 
Hi,

Das ist möglich:

Delphi-Quellcode:
procedure TForm1.StatusBar1DrawPanel(StatusBar: TStatusBar;
  Panel: TStatusPanel; const Rect: TRect);
begin
  if Panel.Index=0 then
       ImageList1.Draw(Statusbar1.Canvas,Rect.Left,Rect.Top,0);
end;

procedure TForm1.FormCreate(Sender: TObject);
begin
  StatusBar1.Panels[0].Style := psOwnerDraw; // Oder über Objektinspektor einstellen
end;

PS: unter http://groups.google.com/ hättest du nach TImageList statusbar suchen können,
wo's schon Millionen von PAQs gibt!


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