ERLEDIGT
JA
JA
ANTWORTEN
2
2
ZUGRIFFE
443
443
EMPFEHLEN
-
Hallo zusammen,
hab ein kleines Problem.
Ich habe eine ComboBox in die ich zwei Namen
geschreiben habe.
Als Beispiel:
Alexandra
Fred
Nun will ich das der Spieler einen dieser Namen auswählt und
in einem leeren Imagefeld die Grafik "Alexandra" lädt und anzeigt.
Wie bekomme ich das hin?
Danke euch für Hilfe.
Gruß Sticky
-
Hallo,
Code :1 2 3 4 5 6 7 8 9
void __fastcall TForm1::ComboBox1Click(TObject *Sender) { if(ComboBox1->ItemIndex==0){ Image1->Picture->LoadFromFile("Dateiname");//z.B.: C:\\Alexandra.bmp } else if(ComboBox1->ItemIndex==1){ Image1->Picture->LoadFromFile("Dateiname");//z.B.: C:\\Fred.bmp } }
es geht so nur im BMP-Format.
Gruß stimon
-
hi,
danke dir es geht *freu*
Bis denn denn
Gruß Sticky
Ähnliche Themen
-
ComboBox problem
Von iced-angel im Forum Swing, Java2D/3D, SWT, JFaceAntworten: 0Letzter Beitrag: 08.05.08, 20:38 -
Problem bei ComboBox
Von Supervreni im Forum Visual Basic 6.0Antworten: 2Letzter Beitrag: 26.10.07, 08:16 -
Problem mit ComboBox
Von FuMe im Forum .NET Windows FormsAntworten: 10Letzter Beitrag: 08.09.05, 08:39 -
ComboBox problem {MX}
Von skatos im Forum Flash PlattformAntworten: 1Letzter Beitrag: 28.04.04, 17:38 -
Problem mit Combobox
Von encom im Forum PHPAntworten: 9Letzter Beitrag: 07.12.03, 00:42





Zitieren
Login






