Autor Beitrag
AlexBegin
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 39



BeitragVerfasst: Mi 19.12.07 12:32 
In meinem Programm soll sich das Bild des SpeedButtons nach einem klick auf einen anderen Button ändern. Gibt es ein Befehl der während der Laufzeit eine BMP-Datei in den SpeedButton laden kann?
Hier im Forum habe ich nur das Ändern über den Objektinspektor/Eigenschaften/Glyph gefunden. Das hilft mir aber leider nicht.

Bis dann Alex
Gausi
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 8549
Erhaltene Danke: 478

Windows 7, Windows 10
D7 PE, Delphi XE3 Prof, Delphi 10.3 CE
BeitragVerfasst: Mi 19.12.07 12:37 
Das sollte so gehen:
ausblenden Delphi-Quelltext
1:
Speedbutton1.Glyph.LoadFromFile({...});					

_________________
We are, we were and will not be.
AlexBegin Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 39



BeitragVerfasst: Mi 19.12.07 14:10 
Hat wunderbar funktioniert. Nochmals Danke für die schnelle Hilfe.

Bis dann Alex