Hi List,
Where do I find the VK_ keycode constant definitions that could be used in KeyDown events?
Thanks in advance

Mailing lists / lazarus / 2010-09
9 messages · 4 people · –
Reply by email Subscribe to this list Your subscription
Read-only archive. Use j and k to move between messages.
Hi List,
Where do I find the VK_ keycode constant definitions that could be used in KeyDown events?
Thanks in advance
2010/9/9 Alexander du Plessis :
Where do I find the VK_ keycode constant definitions that could be used in KeyDown events?
LCLType unit.
You could found in your self. Type any VK_ constant, i.e. VK_UP. Right click on the VK_UP and select Find Declaration in the context menu. This will bring you to the constants list.
thanks,
dmitry
Thank you Dmitry, that helped.
Regards
2010/9/9 Alexander du Plessis : LCLType unit. You could found in your self. Type any VK_…
Except if you don't have the LCLType unit in your uses clause yet ;)
Marc
Marc Weustink wroteExcept if you don't have the LCLType unit in your uses clause yet ;)
Yeah! good point :)
Thanks evryone, I have the codes and the code is running nicely. The pointers you gave made all the difference
Regards
Where do I find the VK_ keycode constant definitions that could be used in KeyDown events?
2010/9/9 Alexander du Plessis :
I appended to the request to ask if it's possible to grab special keys (like the media ones or dedicated to office, zoom, etc.)
I would to see the keycode of some keys to remap these.
Thanks!
for the most of them there are VK codes defined.
Marc
2010/9/10 Marc Weustink :
Not for my Keyboard :)
I have a Microsoft Office Keyboard. One of best keyboard ever... IMHO :p But in Windows 64Bit from Vista to Seven there aren't ways to install drivers... the "beautiful" thing is that a "mini-program" that comes with 32Bit drivers, works on 64Bit and it shows that it recognizes correctly some special keys that doesn't work in any other way.
These special "keys" are the equivalent of ALT-TAB (back and forward), Back and Forward of browsers and the most important for me: the scroll wheel! No other keyboard have a scroll wheel like this... I really miss it :p
So, seeing the program that comes with 32Bit recognizes the scroll wheel in 64Bit OS, maybe I could grab its VK on lazarus... this is the idea :)
Regards,
Kjow