Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2010-09

Key codes

9 messages · 4 people · –

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

dmitry boyarintsev
to Alexander du Plessis

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

Reply by email

Alexander du Plessis
to dmitry boyarintsev
dmitry boyarintsev wrote 20 lines
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 -- _______________________________________________ Lazarus mailing list http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

Thank you Dmitry, that helped.

Regards

Alex du Plessis -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20100909/8e3067a3/attachment.html>

Reply by email

Marc Weustink
to dmitry boyarintsev: 2010/9/9 Alexander du Plessis : LCLType unit. You could found in your self. Type any VK_…
dmitry boyarintsev wrote 9 lines
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.

Except if you don't have the LCLType unit in your uses clause yet ;)

Marc

Reply by email

Alexander du Plessis
to dmitry boyarintsev
dmitry boyarintsev wrote 12 lines
On Thu, Sep 9, 2010 at 9:47 PM, Marc Weustink wrote: > Except if you don't have the LCLType unit in your uses clause yet ;) Yeah! good point :) -- _______________________________________________ Lazarus mailing list http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

Thanks evryone, I have the codes and the code is running nicely. The pointers you gave made all the difference

Regards

Alex du Plessis -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20100910/6c0ccac1/attachment.html>

Reply by email

Kjow
to Alexander du Plessis: Where do I find the VK_ keycode constant definitions that could be used in KeyDown events?

2010/9/9 Alexander du Plessis :

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

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!

Reply by email

Marc Weustink
to Kjow
Kjow wrote 10 lines
2010/9/9 Alexander du Plessis: > Hi List, > > Where do I find the VK_ keycode constant definitions that could be used in > KeyDown events? > > Thanks in advance 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.)

for the most of them there are VK codes defined.

Marc

Reply by email

Kjow
to Marc Weustink

2010/9/10 Marc Weustink :

Show quoted text 6 lines
> 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.) for the most of them there are VK codes defined. Marc

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

Reply by email