KeymapD.dpr 637 B

1234567891011121314151617181920212223
  1. (*
  2. Demonstrates how to check pressed keys and allow the user to remap controls.
  3. The panel react to the "key" written in their Caption property, default
  4. captions react to mouse buttons. If a panel is clicked, the user will be
  5. prompted to type a key, this key will then be mapped to the panel, by name.
  6. Note the some keynames are localized and may differ between Windows versions,
  7. this is the case for most control and num keypad keys.
  8. *)
  9. program KeymapD;
  10. uses
  11. Forms,
  12. fKeymapD in 'fKeymapD.pas' {Form1};
  13. {$R *.RES}
  14. begin
  15. Application.Initialize;
  16. Application.CreateForm(TForm1, Form1);
  17. Application.Run;
  18. end.