Delphi-PRAXiS

Delphi-PRAXiS (https://www.delphipraxis.net/forum.php)
-   Sonstige Fragen zu Delphi (https://www.delphipraxis.net/19-sonstige-fragen-zu-delphi/)
-   -   Delphi Icon aus ImageList als Glyph in Speedbutton (https://www.delphipraxis.net/52871-icon-aus-imagelist-als-glyph-speedbutton.html)

quakergod 5. Sep 2005 22:32


Icon aus ImageList als Glyph in Speedbutton
 
hi, ich habe einige codeschnippsel gefunden wie ich ein Icon in ein Speedbutton bekomme, leider nur per Pfadangabe,
weiss jemand wie ich ein Icon aus einer ImageList einem Speedbutton als Glyph zuweisen kann?

greetz :)

turboPASCAL 5. Sep 2005 22:51

Re: Icon aus ImageList als Glyph in Speedbutton
 
Ja.

Code:
ImageListX.GetBitmap([color=green][i]ListID[/i][/color], SpeedButtonX.Glyph);

quakergod 6. Sep 2005 10:37

Re: Icon aus ImageList als Glyph in Speedbutton
 
hui, das ging ja einfach ^^
nur eine sache stört noch, ich habe ein 32x32 icon in der ImageList aber auf dem speedbutton wird es auf 16x16 verkleinert.. gibt es da eine lösung?

greetz

turboPASCAL 6. Sep 2005 10:58

Re: Icon aus ImageList als Glyph in Speedbutton
 
Du must im OI die grösse der Bilder in der Imagelistbox ( Width, Height ) einstellen zB. auf 32x32.
Diese Grösse wird dann vom Button übernommen.


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