Thema: Delphi Combobox Tastatureingabe

Einzelnen Beitrag anzeigen

marabu

Registriert seit: 6. Apr 2005
10.109 Beiträge
 
#4

Re: Combobox Tastatureingabe

  Alt 28. Sep 2007, 18:32
Hallo,

versuche es so:

Delphi-Quellcode:
procedure TDemoForm.ComboBoxKeyPress(Sender: TObject; var Key: Char);
begin
  case Key of
    #32:
    if GetAsyncKeyState(VK_CONTROL) < 0 then
    begin
      Key := #0;
      // ...
    end;
  end;
end;
Grüße vom marabu
  Mit Zitat antworten Zitat