Function keys lazarus / 3-General ---------------------------------------------------------------------- nspur · 2008-04-24 19:05 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? ---------------------------------------------------------------------- cyber_python · 2008-04-24 20:14 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 ---------------------------------------------------------------------- nspur · 2008-04-24 20:45 In the Delphi program I did use the virtual key-codes. Maybe I can use the decimal equivalents. ---------------------------------------------------------------------- cyber_python · 2008-04-24 20:55 Please, post back here the results (so that if it works others can find the info on the forum) ---------------------------------------------------------------------- Leledumbo · 2008-04-25 02:08 Quotewhat file do I need to include for the constants? Code: [Select] uses   LCLType; ---------------------------------------------------------------------- nspur · 2008-04-25 10:14 Quote from: "Leledumbo"Quotewhat file do I need to include for the constants? Code: [Select] uses   LCLType; Many thanks for that. I did put the constants I needed into a new unit and that worked as well.