Autor Beitrag
ALF
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 1085
Erhaltene Danke: 53

WinXP, Win7, Win10
Delphi 7 Enterprise, XE
BeitragVerfasst: So 31.10.10 20:15 
Ich lade die Bilder aus einer res in den Speedbutton. Gibt es nun eine Möglichkeit auszulesen welches Bild da nun im SpeedButton drin ist?
ausblenden Delphi-Quelltext
1:
2:
3:
{$R Btmaps.res}
...
 BtnPlay1.Glyph.LoadFromResourceName(hInstance, 'Bild3');

ich bräuchte sowas wie:
ausblenden Delphi-Quelltext
1:
2:
if  BtnPlay1.Glyph..... = Bild3 then
    //mache was
oder so ähnlich.
Leider finde ich immer nur, wie man ein Bild laden kann, aber nicht andersrum.
Gruss Alf

_________________
Wenn jeder alles kann oder wüsste und keiner hätt' ne Frage mehr, omg, währe dieses Forum leer!
jaenicke
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 19315
Erhaltene Danke: 1747

W11 x64 (Chrome, Edge)
Delphi 11 Pro, Oxygene, C# (VS 2022), JS/HTML, Java (NB), PHP, Lazarus
BeitragVerfasst: So 31.10.10 20:18 
Das musst du dir separat merken, denn laden tust du nur den Inhalt, nicht woher es kommt. ;-)
ALF Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 1085
Erhaltene Danke: 53

WinXP, Win7, Win10
Delphi 7 Enterprise, XE
BeitragVerfasst: So 31.10.10 20:30 
mhh.. hab ich mir fast gedacht, da nix nirgens gefunden.
Naja, setzte den BtnPlay1.Tag 0/1. Sind ja nur 2 Bilder.

Gruss Alf

_________________
Wenn jeder alles kann oder wüsste und keiner hätt' ne Frage mehr, omg, währe dieses Forum leer!