![]() |
OnKeyDown und shift = ssShift geht nicht
hi,
ich hab das:
Delphi-Quellcode:
aber der Gerät sagt bei
procedure TForm1.ChatBoxKeyDown(Sender: TObject; var Key: Word;
Shift: TShiftState); begin if (Key = VK_RETURN) and (Shift = ssShift) then begin [...]
Delphi-Quellcode:
inkompatible Typen dabei hab ich sogar in die Delphi Hilfe geschaut.
(Shift = ssShift
Was mach ich falsch? Gruß roboter202 |
AW: OnKeyDown und shift = ssShift geht nicht
Entweder
Delphi-Quellcode:
oder
(Shift = [ssShift])
Delphi-Quellcode:
je nachdem, was du erreichen willst.
(ssShift in Shift)
|
AW: OnKeyDown und shift = ssShift geht nicht
Delphi-Quellcode:
oder
if (Key = VK_RETURN) and (ssShift in Shift) then
Delphi-Quellcode:
TShiftState ist eine Menge ;)
if (Key = VK_RETURN) and (Shift = [ssShift]) then
[edit] *Gnarf* wo war der rote Kasten? [/edit] |
AW: OnKeyDown und shift = ssShift geht nicht
achso stimmt es könnten ja mehrer Werte drin sein danke!
|
Alle Zeitangaben in WEZ +1. Es ist jetzt 22:47 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