[Gambas-user] Highlight Editor - Capslock Key State

Stefano Palmeri rospolosco at ...152...
Wed Feb 13 19:19:48 CET 2008


Alle 12:53, mercoledì 13 febbraio 2008, MaxVK ha scritto:
> Hi there, I'm using the Highlight editor in Gambas2 and have added a status
> bar at the bottom of the editor window. I would like to be able to display
> the state of the capslock key there, but the problem I have is that while I
> can detect when capslock has been pressed, I cant seem to determine its
> state before the keypress.
>
> In other words I cant tell the state of the capslock key when the program
> is started, so I cant accurately display its state within the program
> because I have to make an assumption about its state in the first place.
>
> Can anyone point me in the right direction please?
>
> Thanks
>
> Max

Hi,

the attached example shows a raw dirty way to know
if the capslock key is on/off on startup.
Use at your own risk :-)

Bye,

Stefano 


-------------- next part --------------
A non-text attachment was scrubbed...
Name: capslock-0.0.1.tar.gz
Type: application/x-tgz
Size: 7924 bytes
Desc: not available
URL: <http://lists.gambas-basic.org/pipermail/user/attachments/20080213/9e150535/attachment.bin>


More information about the User mailing list