Cant find VK_type constants lazarus / 31-LCL ---------------------------------------------------------------------- iru · 2014-01-04 05:40 Gentlefolk, Laz 1.0.14, Win 7, 64Bit. Attempting to use the VK_? constants to match keystrokes. Always undefined. I have added "LCLTypes" to the "uses" statement, that compiles OK. Any suggestions on additional things I need to do, where to find the LCLTypes unit, etc?? Thanks, Ian ---------------------------------------------------------------------- Henppy · 2014-01-04 05:54 Note that it's LCLType, without the 's', and it's located in \lcl\lcltype.pp. EDIT: but then why does it compile? I don't seem to have an LCLTypes. ---------------------------------------------------------------------- iru · 2014-01-04 06:05 Thanks for the response. Typo on my part, it is LCLType on the uses statement. I will chase down through ...\lcl\lcltype. Ian. ---------------------------------------------------------------------- iru · 2014-01-04 09:05 Gentlefolk, uses statement includes "LCLType". Compiles OK but VK_? are undefined. Found ..laz/lcl/lcltype.pp. Changed the name to lcltype-orig.pp. Project still compiled ok but VK_? still undefined. In Project>options>Paths  I added ..laz/lcl. Compile failed in graphics module because the file {$I lcl_defines.inc} could not be found. Something is broken, any suggestions appreciated, Ian. ---------------------------------------------------------------------- taazz · 2014-01-04 09:10 1) this is not delphi, never add the lcl directory to your projects search path nor fcl for that matter. 2) Are you sure that the key you want to use is declared inside lcltype unit? Be specific which key is not working for you ---------------------------------------------------------------------- iru · 2014-01-04 11:28 Thank you for the response, you have the answer. I had used VK_ symbols many years ago so when I wanted to use constants for some control characters I performed a quick google looking for 'lazarus pascal vk_. I had a quick look at a couple of responses and there was VK_ENTER. If I had of looked further I would have seen VK_RETURN and others. I must be getting old and/or sloppy........ Thanks once again, Ian.