Autor Beitrag
SandTarnFarbe
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 26

Win XP, Win 2003 Server
D7 Pers
BeitragVerfasst: Sa 26.03.05 23:54 
Hallo,
ich habe eine Anwendung mit Datenbankanbindung und einer LookupListBox. Wenn ich nun über einen seperaten Button einen anderen Datensatz auswähle, bleibt in der ListBox allerdings der letzte über die ListBox ausgewählte Eintrag eingefärbt - wie kann ich nun den richtigen Eintrag einfärben?
wulfskin
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 1349
Erhaltene Danke: 1

Win XP
D5 Pers (SSL), D2005 Pro, C, C#
BeitragVerfasst: So 27.03.05 00:18 
Hallo,

dafür brauchst du die Eigenschaft ItemINdex.

Gruß Hape!

_________________
Manche antworten um ihren Beitragszähler zu erhöhen, andere um zu Helfen.
SandTarnFarbe Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 26

Win XP, Win 2003 Server
D7 Pers
BeitragVerfasst: So 27.03.05 00:25 
Für eine normale ListBox funktioniert das auch, nur bei der LookupListBox fehlt die Eigenschaft, oder?
Harry M.
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 754

Win 2000, XP
D2005
BeitragVerfasst: So 27.03.05 00:32 
was ist den eine lookuplistbox und wo find ich die denn?
SandTarnFarbe Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 26

Win XP, Win 2003 Server
D7 Pers
BeitragVerfasst: So 27.03.05 00:36 
Ist eine Komponente die dir eine gesammte Tabellespalte anzeigen kann, und der Benutzer dann den gewünschten Eintrag auswählt: Z. B. Nachnamen aus einer Adressdatenbank, du musst dann nicht jeden Eintrag durchsuchen sondern sieht direkt untereinander stehen: Müller, Meier, Schulz etc.
Harry M.
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 754

Win 2000, XP
D2005
BeitragVerfasst: So 27.03.05 01:16 
das es ne kompo ist weiß ich auch. die ist aber nicht standartmäßig in delphi vorhanden?
LCS
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 1305
Erhaltene Danke: 1

WIN 7, WIN 8
Delphi XE5, Delphi XE, Delphi 2007
BeitragVerfasst: So 27.03.05 04:24 
Hallo
du kannst einfach die Eigenschaft KeyValue der LookupListBox mit dem Schlüsselwert des aktuellen Datensatzes füllen.

Gruss Lothar

_________________
Der BH ist für die Brust, der Plan ist für'n Ar...