Autor Beitrag
delphimike
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 117



BeitragVerfasst: Do 15.09.05 10:33 
Hallo

wir kann ich das angezeigte Bitmap auf einem TToolbotton zur Laufzeit ändern ?
Auf ein anderes imageindex setzen funktioniert leider nicht

Gruß Mike

_________________
kaum macht man was richtig, schon gehts!
matze
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 4613
Erhaltene Danke: 24

XP home, prof
Delphi 2009 Prof,
BeitragVerfasst: Do 15.09.05 10:48 
zeig mal deinen quellcode. das muss mit imageindex gehen !

_________________
In the beginning was the word.
And the word was content-type: text/plain.
delphimike Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 117



BeitragVerfasst: Do 15.09.05 11:33 
...

ausblenden Delphi-Quelltext
1:
2:
if Artsort.down then TB.imageindex:=2 else TB.imageindex:=3;
evt. TB.invalidate


Vielleicht sollte ich noch sagen, daß der bestehende Toolbutton geändert werden soll.
Er soll abhängig vom Button Artsort sein passendes Bild bekommen.

Moderiert von user profile iconmatze: Code- durch Delphi-Tags ersetzt.

_________________
kaum macht man was richtig, schon gehts!
matze
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 4613
Erhaltene Danke: 24

XP home, prof
Delphi 2009 Prof,
BeitragVerfasst: Do 15.09.05 12:00 
und du bist sicher, dass der code auch ausgeführt wird ?
hat die imagelist überhaupt 4 images, sodass du das mit dem index 3 zuweisen kannst ?

denn eigendlich ist der code ja korrekt !

_________________
In the beginning was the word.
And the word was content-type: text/plain.
delphimike Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 117



BeitragVerfasst: Do 15.09.05 14:14 
... frag mich nicht warum aber auf ein mal gehts ?????
danke für die Hilfe....

_________________
kaum macht man was richtig, schon gehts!