Autor Beitrag
noctua
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 170



BeitragVerfasst: Mi 10.11.04 17:06 
also ich hab da ma ne freg .. ;)

wie kann ich nur den ausgewählten text aus meiner Combobox1. holen?

_________________
Am ende sterben eh alle ................
.Chef
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 1112



BeitragVerfasst: Mi 10.11.04 17:24 
ausblenden Delphi-Quelltext
1:
ComboBox.SelText					

Gruß,
Jörg

_________________
Die Antworten auf die 5 häufigsten Fragen:
1. Copy(), Pos(), Length() --- 2. DoubleBuffered:=True; --- 3. Application.ProcessMessages bzw. TThread --- 4. ShellExecute() --- 5. Keine Vergleiche von Real-Typen mit "="!
noctua Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 170



BeitragVerfasst: Mi 10.11.04 17:28 
sowas kennt mein delphi 7 leider nicht

_________________
Am ende sterben eh alle ................
.Chef
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 1112



BeitragVerfasst: Mi 10.11.04 17:34 
Wundert mich aber.
ausblenden Delphi-Quelltext
1:
2:
with ComboBox do
  s:=Copy(Text,SelStart,SelLength);

_________________
Die Antworten auf die 5 häufigsten Fragen:
1. Copy(), Pos(), Length() --- 2. DoubleBuffered:=True; --- 3. Application.ProcessMessages bzw. TThread --- 4. ShellExecute() --- 5. Keine Vergleiche von Real-Typen mit "="!
noctua Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 170



BeitragVerfasst: Do 18.11.04 17:44 
hmmm ok mit ner combobox geht das aber mit einer Listbox leider nicht ... weiss jemand wie ich auch dort einen ausgewählten namen anzeigen kann?


danke :D

_________________
Am ende sterben eh alle ................
noctua Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 170



BeitragVerfasst: Do 18.11.04 18:14 
hat sich erledigt .. ich mach das einfach mit

ausblenden Delphi-Quelltext
1:
2:
if ListBox1.ItemIndex > -1 then 
    Label1.Caption := ListBox1.Items[ListBox1.ItemIndex]



fals das noch jemand ma gebraucht hat .... loooool

Moderiert von user profile iconChristian S.: Code- durch Delphi-Tags ersetzt.

_________________
Am ende sterben eh alle ................
.Chef
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 1112



BeitragVerfasst: Do 18.11.04 19:11 
noctua hat folgendes geschrieben:
hmmm ok mit ner combobox geht das aber mit einer Listbox leider nicht ...

Natürlich konnte das nicht funktionieren, da eine ListBox ja kein Eingabefeld hat ... oh mann ... :roll:

_________________
Die Antworten auf die 5 häufigsten Fragen:
1. Copy(), Pos(), Length() --- 2. DoubleBuffered:=True; --- 3. Application.ProcessMessages bzw. TThread --- 4. ShellExecute() --- 5. Keine Vergleiche von Real-Typen mit "="!
IngoD7
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 629


D7
BeitragVerfasst: Do 18.11.04 20:01 
.Chef hat folgendes geschrieben:
noctua hat folgendes geschrieben:
hmmm ok mit ner combobox geht das aber mit einer Listbox leider nicht ...

Natürlich konnte das nicht funktionieren, da eine ListBox ja kein Eingabefeld hat ... oh mann ... :roll:


Ich denke allerdings - zu Gunsten des Angeklagten 8) -, dass er die ganze Zeit Items gesucht hat. Die Antworten hier, die auf den markierten Text des Eingabefeldes zielten, zielten irgendwie etwas an seinem Anliegen vorbei. :wink: