Delphi-PRAXiS

Delphi-PRAXiS (https://www.delphipraxis.net/forum.php)
-   Sonstige Fragen zu Delphi (https://www.delphipraxis.net/19-sonstige-fragen-zu-delphi/)
-   -   Delphi Problem mit ComboBox (https://www.delphipraxis.net/129480-problem-mit-combobox.html)

AlexII 19. Feb 2009 21:07


Problem mit ComboBox
 
Hallo,

wenn ich Style von ComboBox auf "csDropDownList" stelle verschwindet der Text der ComboBox, also ComboBox1.Text:=leer
Wie füge ich den Text doch hinzu? :gruebel:

jaenicke 19. Feb 2009 21:20

Re: Problem mit ComboBox
 
Indem du den ItemIndex setzt. Dieser Stil ist dafür gedacht, dass du nur die bestehenden Einträge auswählen kannst.

Damit du später einfach nur den ItemIndex abfragen kannst statt mühsam und aufwendig den Text zu vergleichen.

AlexII 19. Feb 2009 23:49

Re: Problem mit ComboBox
 
Ok, thx, hab's gelöst. :thumb:


Alle Zeitangaben in WEZ +1. Es ist jetzt 05:25 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