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 - Grundsätzliche Hilfe gesucht (https://www.delphipraxis.net/19450-combobox-grundsaetzliche-hilfe-gesucht.html)

Whistler 3. Apr 2004 16:55


ComboBox - Grundsätzliche Hilfe gesucht
 
Hallo,

ich hätte da ein paar Fragen zur "ComboBox", die mir die Delphi 7 Hilfe nicht beantwortet (zumindest nicht so, dass ich sie verstehe):

Was ich haben will:
Der Benutzer sieht ein einfaches Fenster vor sich, mit einer ComboBox und einem Button. Er soll in der Box etwas auswählen und wenn er den Button drückt, soll eine Meldung kommen "xyz ausgewählt".

Was ich bisher gemacht habe:
Eine ComboBox erstellt. Im OI unter "Items" die "Punkte" niedergeschrieben (Option1, Option2, Option3 steht dort untereinander). Wenn das Programm läuft, kann ich entsprechende Punkte wählen.
Doch wie jetzt weiter?
Kann ich den Items evtl. "IDs" geben, so dass ich später prüfe "If ComboBox.Item = 2 then beginn..."?!

Vielen Dank im Voraus!

MathiasSimmack 3. Apr 2004 16:58

Re: ComboBox - Grundsätzliche Hilfe gesucht
 
Die Items haben bereits "IDs" (wenn du´s so nennen willst).
Schau mal in der Hilfe unter "ItemIndex".

Whistler 3. Apr 2004 17:20

Re: ComboBox - Grundsätzliche Hilfe gesucht
 
Guten Abend,

vielen Dank! Das hat weitergeholfen. Frage somit geklärt.


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