Lazarus
Installation => General => Topic started by: nspur on April 24, 2008, 09:05:55 pm
-
The keyboard on my i386 machine has function keys. I've just started looking at Lazarus for Windows and Ubuntu and have ported a small Delphi app which functions after a fashion. BUT it reles to an extent on the user being able to use the function keys. Obviously I can't use the Windows constants (VK_F1 etc) but is there any way to trap the pressing of a function key? And if so what file do I need to include for the constants?
-
Maybe you can use some info from here(don't really know if these codes work) : http://delphi.about.com/od/objectpascalide/l/blvkc.htm
-
In the Delphi program I did use the virtual key-codes. Maybe I can use the decimal equivalents.
-
Please, post back here the results (so that if it works others can find the info on the forum)
-
what file do I need to include for the constants?
uses
LCLType;
-
what file do I need to include for the constants?
uses
LCLType;
Many thanks for that. I did put the constants I needed into a new unit and that worked as well.