Forum: GUI-Design mit VCL / FireMonkey / Common Controls
Delphi
by Delphi.Narium,
31. Jan 2018
Es gibt auch in Delphi 7 die Komponente TApplicationEvents. Die pappt man auf's Formular und nutzt das Ereignis OnShortcut.
Forum: GUI-Design mit VCL / FireMonkey / Common Controls
Delphi
by Delphi.Narium,
30. Jan 2018
Eventuell im Form KeyPreview auf True und dann im OnKeyDown des Forms bei Return Key auf 0 setzen?
procedure TForm1.FormCreate(Sender: TObject);
begin
KeyPreview := True; // Kann man auch im Objektinspektor setzen.
end;
procedure TForm1.FormKeyDown(Sender: TObject; var Key: Word; Shift: TShiftState);
begin
case key of
// Windows.VK_SPACE : ZeigeWas; // ist nicht erforderlich, da...