![]() |
OnKeyPress
wie mache ich das nochmal mit den Tasten
Wenn ich bei gleichzeitig shift, Großschreib und T- Taste was auslösen will
Delphi-Quellcode:
procedure KeyPress(Sender: TObject; var Key: Char);
begin If Key = (Key = VK_CONTROL) and (key = VK_T) then begin // mach was end; end; |
Re: OnKeyPress
Nimm KeyDown und Werte Shift aus.
|
Re: OnKeyPress
Okn und was stimmt an dem T nicht
Delphi-Quellcode:
If ((Shift = [ssCtrl])and (Key = VK_T) then
begin // mach was end; end; |
Re: OnKeyPress
Delphi-Quellcode:
procedure TForm1.FormKeyDown(Sender: TObject; var Key: Word;
Shift: TShiftState); begin if (Shift = [ssCtrl]) and (Key = Ord('T')) then ShowMessage('Mööp'); end; |
Re: OnKeyPress
irgendwie geht das nicht im StringGrid kann das sein??
|
Re: OnKeyPress
Was meinst du mit Großschreib-Taste?
|
Re: OnKeyPress
Zitat:
|
Re: OnKeyPress
Ja shift natürlich 1. Strg+shift und dann T
|
Re: OnKeyPress
:wall: :wall: :wall: Ok ich sollte auch mal die richtigen Tasten drücken
|
Alle Zeitangaben in WEZ +1. Es ist jetzt 10:24 Uhr. |
Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024-2025 by Thomas Breitkreuz