Autor Beitrag
hedie
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 249

WIN XP WIN 2000 WIN Longhorn
D7 Pers D2005 Architect Vollversion
BeitragVerfasst: Sa 23.04.05 09:03 
Hallo zusammen

Ich habe ein paar brobleme mit der Combobox

1.
Wie muss ich das machen
ausblenden Delphi-Quelltext
1:
2:
3:
4:
procedure TForm1.FormCreate(Sender: TObject);
begin
 Label1.Caption IntToStr :=  ComboBox1.Items.Count;
end;


2.
Wie kann ich wenn mann in dercombobox etwas ausgewählt hat darauf reagieren (text eifügen lassen)?

grüsse hedie

_________________
Grüsse hedie
hört auf traurig zusein hört lieber radio Basilisk
Tobias1
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 454

Win 98, XP Prof
D3 Prof, D2005 Prof
BeitragVerfasst: Sa 23.04.05 09:06 
ausblenden Delphi-Quelltext
1:
Label1.Caption  :=  IntToStr(ComboBox1.Items.Count);					


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

_________________
Auch das schlechteste Buch hat seine gute Seite: die letzte. (John Osborne)
hedie Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 249

WIN XP WIN 2000 WIN Longhorn
D7 Pers D2005 Architect Vollversion
BeitragVerfasst: Sa 23.04.05 09:08 
vielen dank und die andere frage :?: :wink:

_________________
Grüsse hedie
hört auf traurig zusein hört lieber radio Basilisk
Tobias1
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 454

Win 98, XP Prof
D3 Prof, D2005 Prof
BeitragVerfasst: Sa 23.04.05 09:09 
Wie kann ich wenn mann in dercombobox etwas ausgewählt hat darauf reagieren --> OnChange
(text eifügen lassen) --> Wo in der Listbox? -> combobox1.Items.Add

_________________
Auch das schlechteste Buch hat seine gute Seite: die letzte. (John Osborne)
Fabian W.
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 1766

Win 7
D7 PE
BeitragVerfasst: Sa 23.04.05 09:09 
itemindex
hedie Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 249

WIN XP WIN 2000 WIN Longhorn
D7 Pers D2005 Architect Vollversion
BeitragVerfasst: Sa 23.04.05 09:14 
könnt ihr mir ein beispiel code schreiben? tschege es irgendwie nicht :oops:

_________________
Grüsse hedie
hört auf traurig zusein hört lieber radio Basilisk
Fabian W.
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 1766

Win 7
D7 PE
BeitragVerfasst: Sa 23.04.05 09:15 
Möchtets du auf ein ereignis in der Combobox reagiren oder eien weitere Zeile in die CB einfügen?
Tobias1
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 454

Win 98, XP Prof
D3 Prof, D2005 Prof
BeitragVerfasst: Sa 23.04.05 09:15 
Möchtest du was in der ComboBox einfügen, wenn man dort was ausgewählt hat, oder was???

_________________
Auch das schlechteste Buch hat seine gute Seite: die letzte. (John Osborne)
hedie Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 249

WIN XP WIN 2000 WIN Longhorn
D7 Pers D2005 Architect Vollversion
BeitragVerfasst: Sa 23.04.05 09:16 
auf die auswahl in der combobox reagieren z.b. wenn mann hallo auswählt das dan in eine memo hallo
geschrieben wird aber ohne den gesamten inhalt der memo zu löschen :wink:

_________________
Grüsse hedie
hört auf traurig zusein hört lieber radio Basilisk
Fabian W.
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 1766

Win 7
D7 PE
BeitragVerfasst: Sa 23.04.05 09:17 
Label1.caption := ListBox1.items[itemindex] //itemindex ausgewähltes Feld
Tobias1
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 454

Win 98, XP Prof
D3 Prof, D2005 Prof
BeitragVerfasst: Sa 23.04.05 09:18 
ausblenden Delphi-Quelltext
1:
memo1.lines.text:=memo1.lines.text+combobox1.items.strings[combobox1.itemindex];					


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

_________________
Auch das schlechteste Buch hat seine gute Seite: die letzte. (John Osborne)
Fabian W.
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 1766

Win 7
D7 PE
BeitragVerfasst: Sa 23.04.05 09:18 
Memo1.lines.add(ListBox.items[item...

EDIT: Hups ich war grade bei einer ListBox müsste aber auch so gehen...


Zuletzt bearbeitet von Fabian W. am Sa 23.04.05 09:21, insgesamt 1-mal bearbeitet
hedie Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 249

WIN XP WIN 2000 WIN Longhorn
D7 Pers D2005 Architect Vollversion
BeitragVerfasst: Sa 23.04.05 09:20 
weshalb list box ich brauche combobox

_________________
Grüsse hedie
hört auf traurig zusein hört lieber radio Basilisk
Tobias1
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 454

Win 98, XP Prof
D3 Prof, D2005 Prof
BeitragVerfasst: Sa 23.04.05 09:20 
Was soll das bringen??? Geht nicht!
user profile iconFabian W. hat folgendes geschrieben:
Label1.caption := ListBox1.items[itemindex] //itemindex ausgewähltes Feld

_________________
Auch das schlechteste Buch hat seine gute Seite: die letzte. (John Osborne)
hedie Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 249

WIN XP WIN 2000 WIN Longhorn
D7 Pers D2005 Architect Vollversion
BeitragVerfasst: Sa 23.04.05 09:22 
vielen dank tobias es hat geklappt dafür bekommst du auch meine software wenn sie fertig ist wenn du willst

_________________
Grüsse hedie
hört auf traurig zusein hört lieber radio Basilisk
Fabian W.
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 1766

Win 7
D7 PE
BeitragVerfasst: Sa 23.04.05 09:22 
Ich war grade bei der ListBox, weil ich im Moment grade was mit der mache, tschuldigung