Autor Beitrag
kabizolis
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 86



BeitragVerfasst: Fr 31.03.06 10:44 
wie kann ich bei ComboBoxen trotz Eigenschaft "csDropDownList" einen String übergeben... bis jetzt habe ich die Eigenschaft "csDropDown" verwendet und einen Wert übergeben mit z.B.:
ausblenden Delphi-Quelltext
1:
ComboBox1.text := String;					


wie kann ich das jetzt tun?

mir geht's einfach darum, dass niemand etwas "sinnloses" eingeben kann...
mkinzler
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 4106
Erhaltene Danke: 13


Delphi 2010 Pro; Delphi.Prism 2011 pro
BeitragVerfasst: Fr 31.03.06 10:46 
Willst du der Liste einen Eintrag hinzufügen oder einen vorhandenen anhand eines Strings auswählen?

_________________
Markus Kinzler.
kabizolis Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 86



BeitragVerfasst: Fr 31.03.06 12:00 
einen neuen "hinzufügen"....
mkinzler
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 4106
Erhaltene Danke: 13


Delphi 2010 Pro; Delphi.Prism 2011 pro
BeitragVerfasst: Fr 31.03.06 12:02 
ausblenden Delphi-Quelltext
1:
.Items.Add(<string>);					

_________________
Markus Kinzler.
kabizolis Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 86



BeitragVerfasst: Fr 31.03.06 12:06 
das problem dabei ist aber, dass sie dann während der gesamten laufzeit drin bleiben...
mkinzler
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 4106
Erhaltene Danke: 13


Delphi 2010 Pro; Delphi.Prism 2011 pro
BeitragVerfasst: Fr 31.03.06 12:08 
Ist doch auch der Sinn, Oder?

_________________
Markus Kinzler.
Kroko
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 1284

W98 W2k WXP
Turbo D
BeitragVerfasst: Fr 31.03.06 12:13 
dann mache zwei Proc
ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
const
  coMyItems = 'Text1,Text2,Text3';

procedure Dazu (const NewItem: String);
begin
  ComboBox.Items.DelimitedText := coMyItems+','+NewItem;
end;

procedure WechDamit;
begin
  ComboBox.Items.DelimitedText := coMyItems;
end;

_________________
Die F1-Taste steht nicht unter Naturschutz und darf somit regelmäßig und oft benutzt werden! oder Wer lesen kann, ist klar im Vorteil!