Autor Beitrag
Speedy112
Hält's aus hier
Beiträge: 10


Delphi 5
BeitragVerfasst: Sa 17.04.04 19:08 
Hallo!

Ich hab Delphi 5 und würde gerne in einen Button zusätzlich zum Text ein Icon einblenden.

Kann mir jemand da helfen?

Gruß

Sven
StefanH
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 1144

Win XP
D5 Standard, D7 Pers, D2005 Pers
BeitragVerfasst: Sa 17.04.04 19:21 
SpeedButton kann Bitmaps... :roll:

_________________
"Als es noch keine Computer gab, war das Programmieren noch relativ einfach."(Edsger W. Dijkstra)
"Ich bin nicht von Sinnen, sondern ich rede wahre und vernünftige Worte." (Paulus)
MartinPb
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 698



BeitragVerfasst: Sa 17.04.04 20:28 
BitBtn kann auch Bitmaps... :twisted:

_________________
Gruß
Martin
Speedy112 Threadstarter
Hält's aus hier
Beiträge: 10


Delphi 5
BeitragVerfasst: Sa 17.04.04 21:43 
Titel: Können nur bmp
die komponenten können aber nur bmp und nicht ico. habe abe rne ico sammlung. wenn ich die nun in bmp konvertiere,ist der hintergrund nicht mehr transparent
MartinPb
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 698



BeitragVerfasst: Sa 17.04.04 22:07 
Was sollen wir jetzt machen? Sollen sich alle im Forum im Kreis zusammentun und bitte, bitte, bitte, bitte, bitte, bitte, bitte, bitte rufen - vielleicht kommt eine gute Fee und zaubert eine Button für Icons. Es geht nun mal nur mit Bitmaps. Vielleicht gibt es auch im Internet Buttonkomponenten die auch Icons darstellen können, aber im normalen Delphi geht das nicht.

Aber Icons kannst du in Bitmap konvertieren und Bitmap kann auch mit einer transprenten Farbe dargestellt werden. Dazu gibt es Transparent und TransparentColor. Wenn du nur Transparen := True wählst, dann wird eine Farbe automatisch gewählt.

_________________
Gruß
Martin
schitho
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 288

XP Home SP2
D2005 Prof
BeitragVerfasst: Sa 17.04.04 23:29 
Hi,

kopier die Icons über die Zwischenablage hinein. Das sollte gehen (wenn ich mich recht erinnere) :roll:

Gruß
Thomas

_________________
(Sorry! Leider ewiger Delphi-Neuling)
MartinPb
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 698



BeitragVerfasst: Sa 17.04.04 23:33 
Guck dir Canvas.Draw an. Ico in eine 32x32 große Bitmap zeichnen.

_________________
Gruß
Martin