Delphi-PRAXiS

Delphi-PRAXiS (https://www.delphipraxis.net/forum.php)
-   GUI-Design mit VCL / FireMonkey / Common Controls (https://www.delphipraxis.net/18-gui-design-mit-vcl-firemonkey-common-controls/)
-   -   Delphi ComboBox soll Standardeintrag anzeigen anstatt leer ... (https://www.delphipraxis.net/8936-combobox-soll-standardeintrag-anzeigen-anstatt-leer.html)

Rapthor 15. Sep 2003 15:47


ComboBox soll Standardeintrag anzeigen anstatt leer ...
 
Wie krieg ich die ComboBox hin, dass sie nicht immer ein leeres Feld anzeigt, sondern ein bestimmtes Item[i] seines Kontingents.
Mit ComboBox1.Text := ComboBox1.Items[i] geht das nicht ... das Feld bleibt leer.

Nalincah 15. Sep 2003 15:50

Re: ComboBox soll Standardeintrag anzeigen anstatt leer ...
 
Hast du Style auf DropDownList?

So wird der erste Eintrag ausgewählt:

Delphi-Quellcode:
ComboBox1.Itemindex := 0


Alle Zeitangaben in WEZ +1. Es ist jetzt 13:24 Uhr.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024 by Thomas Breitkreuz