Autor Beitrag
Miri
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 657


Delphi 3 Prof., Delphi 2005 PE
BeitragVerfasst: Fr 21.10.05 14:02 
Hi,

ich kämpfe noch so ein bisschen mit meinen ComboBoxen...
Die Inhalte lade ich aus einer Datenbank und will nicht, dass der User da manuell etwas dran ändern kann. Nun hat die Combobox aber keine ReadOnly Eigenschaft. Den Style auf csDropDownList setzten möchte ich auch nicht, da ich sehr viel mit Combobox.Text arbeite. Nun habe ich mir überlegt, dass ich prinzipiell erstmal mit den Eigenschaften OnKeyDown bzw. OnKeyPress ne Fehlermeldung rausgeben könnte. Klappt auch, allerdings schreibt sich die Taste trotzdem rein, kann man das irgendwie umgehen??

Gruß,
Miri
digi_c
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 1905

W98, XP
D7 PE, Lazarus, WinAVR
BeitragVerfasst: Fr 21.10.05 14:16 
Du kannst doch Key=0 setzen in den Ereignissen
Miri Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 657


Delphi 3 Prof., Delphi 2005 PE
BeitragVerfasst: Fr 21.10.05 14:29 
Danke, funktioniert!! :)