![]() |
_Icon_ in SpeedButton?
Moin,
wie bekomme ich ein Icon in ein SpeedButton? Ich habe es bisher so versucht;
Delphi-Quellcode:
gibt aber eine AV.
Icon.Handle := LoadImage(hInstance, MAKEINTRESOURCE(1002), IMAGE_ICON, 32, 32, LR_DEFAULTCOLOR);
SpeedButton1.Glyph.Assign(Icon); Jemand ne Idee? |
Re: _Icon_ in SpeedButton?
Hast du auch vorher Icon:=TIcon.Create gemacht?
|
Re: _Icon_ in SpeedButton?
moin jim,
jo habe ich, der Fehler tritt beim "Assign" auf |
Re: _Icon_ in SpeedButton?
"Glyph" ist vom Typ "TBitmap", du müsstest dein Icon also erst umwandeln ;)
MfG Pr0g |
Alle Zeitangaben in WEZ +1. Es ist jetzt 01:02 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