Autor Beitrag
King_Crasher
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 37

WIN XP
Delphi 2003
BeitragVerfasst: Mo 27.03.06 14:28 
Hallo,

Ich habe ein Probelm, und zwar will ich ein Prog schreiben wo man eine ComboBox anklickt.
Jetzt soll die ComboBox ihre Einträge auflisten. Beim Klick auf so einen Eintrag soll dann etwas passieren. Mein Problem: Wie bekomme ich Einträge in die ComboBox???
Ich hab schon probiert ein PopupMenu mit einzubinden, ging aber auch nicht. Beim Test konnte man die ComboBox zwar anklicken, sie zeigte aber keine Einträge an.


Moderiert von user profile iconTino: Topic aus Delphi Language (Object-Pascal) / CLX verschoben am Mi 29.03.2006 um 10:27
Luckie
Ehemaliges Mitglied
Erhaltene Danke: 1



BeitragVerfasst: Mo 27.03.06 14:30 
Im OI die Eigenschaft Items anklicken. Zur Laufzeit Items.Add benutzen.
King_Crasher Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 37

WIN XP
Delphi 2003
BeitragVerfasst: Mo 27.03.06 14:34 
"Items.add" und dann??? mehr nicht??? ich dachte man muss das popupmenu auch noch irgendwo einbinden
Miri
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 657


Delphi 3 Prof., Delphi 2005 PE
BeitragVerfasst: Mo 27.03.06 14:39 
ausblenden Delphi-Quelltext
1:
2:
3:
combobox1.items.add('eintrag1');
combobox1.items.add('eintrag2');
...


wozu willst du da ein drop-down-menü?
gegebenenfalls hilfts dir vielleicht auch, mal in der onlinehilfe zu gucken, was da über die komponente, die du suchst, steht... ;)
King_Crasher Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 37

WIN XP
Delphi 2003
BeitragVerfasst: Mo 27.03.06 14:41 
Das dropdownmenü ist dazu da um etwas auszuwählen.(dachte ich)
Und beim klick auf das ausgewählte soll etwas passieren.
Miri
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 657


Delphi 3 Prof., Delphi 2005 PE
BeitragVerfasst: Mo 27.03.06 14:42 
aber ... das ist was ich meinte... wenn du dir die combobox etwas näher anschaust, siehst du, dass das drop-down gleich dazu gehört... sonst könnteste ja auch n edit-feld nehmen ;)
King_Crasher Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 37

WIN XP
Delphi 2003
BeitragVerfasst: Mo 27.03.06 14:45 
Ja das seh ich ja auch. Vielleich war meine Frage ja auch nicht präzise genug.
Aber wie bekomme ich den Nun einträge in die Liste die bei anklciken auch etwas bewirken???
Luckie
Ehemaliges Mitglied
Erhaltene Danke: 1



BeitragVerfasst: Mo 27.03.06 14:50 
In dem du den Text der Combobox im OnChange der selbigen entsprechend auswertest.
King_Crasher Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 37

WIN XP
Delphi 2003
BeitragVerfasst: Mi 29.03.06 09:25 
Jo danke.
Habs gefunden.
Und es funzt auch