Autor Beitrag
Nomis
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 72



BeitragVerfasst: Mi 04.09.02 13:53 
Möcht, daß eine Combobox nur als Auswahlfeld genutzt wird, so daß man nicht selbst was reinschreiben kann, habe schon unheimlich viel versucht geht das über dern Objektinspektor ??
Danke schon mal für eure Antwort
Tino
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Veteran
Beiträge: 9839
Erhaltene Danke: 45

Windows 8.1
Delphi XE4
BeitragVerfasst: Mi 04.09.02 13:55 
Schau Dir mal die Eigenschaft Style im Objektinspektor an :shock:

Gruß
TINO :D
Klabautermann
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Veteran
Beiträge: 6366
Erhaltene Danke: 60

Windows 7, Ubuntu
Delphi 7 Prof.
BeitragVerfasst: Mi 04.09.02 13:56 
Nomis hat folgendes geschrieben:
geht das über dern Objektinspektor ??


Ja,
einfach die Eigenschaft Style auf csDropDownList setzen.

Gruß
Klabautermann
Klabautermann
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Veteran
Beiträge: 6366
Erhaltene Danke: 60

Windows 7, Ubuntu
Delphi 7 Prof.
BeitragVerfasst: Mi 04.09.02 13:57 
@Tino: Mal wieder die berühmte Minute ;).
Tino
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Veteran
Beiträge: 9839
Erhaltene Danke: 45

Windows 8.1
Delphi XE4
BeitragVerfasst: Mi 04.09.02 13:59 
@Klabautermann: Jupp! :D
Nomis Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 72



BeitragVerfasst: Mi 04.09.02 14:43 
Ist schon mal ganz gut Danke jetzt hab ich nur das Problem, daß er ein Leeres Feld anzeigt, wenn ich die Das Programm aufrufe, Vorher hatte ich einfach in Text den ersten wert aus der Item liste geschrieben. Wie kann er ihn jetzt beim Starten anzeigen ??Dann zeigt er aber
Klabautermann
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Veteran
Beiträge: 6366
Erhaltene Danke: 60

Windows 7, Ubuntu
Delphi 7 Prof.
BeitragVerfasst: Mi 04.09.02 14:46 
Hallo,

du kanst im OnCraeate deines Forms (oder sonst einer strategisch günstigen stelle) einfach
ausblenden Quelltext
1:
Combobox1.ItemIndex := 0;					

zuweisen.

Gruß
Klabautermann
Nomis Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 72



BeitragVerfasst: Mi 04.09.02 15:18 
Tausend Dank
Peter2002
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 103

Win XP, Win 7
Delphi 2007 / XE3
BeitragVerfasst: Mi 04.09.02 16:56 
oder im OnKeyPress key:=#0;