Best way to catch keystrokes?
Publicado: Vie Oct 12, 2007 11:33 pm
> I forgot to say that it is possible to make the code a little cleaner:
>
> IF LGetKeyState( VK_CONTROL )
> // Handle CTRL + key strokes
> DO CASE
> CASE nKey == VK_F2
> ...
> CASE nKey == VK_F3
> ELSEIF LGetKeyState( VK_SHIFT )
> // Handle SHIFT + key strokes
> DO CASE
> CASE nKey == VK_F2
> ...
> CASE nKey == VK_F3
> ENDIF
Thanks, I saw this in an answer you wrote in local.<something>.spanish, it's
a clean and easy way.
>> To avoid questions about this, at least from old Clipper-heads, I suggest
>> you put something about this in the Xailer help file. .....
> This is used on many of the samples included in Xailer. Anyhow I'm
> thinking on adding some grep alike tool so anybody can search in all
> xailer's code base to solve doubts.
Non-spesific samples scattered around here and there is in my oppinion not
"analogous" with the standards of Xailer
I have deep-searched the
newsgroups and translated (through Babelfish) many spanish answers you and
Ignacio have written and copied them to a small document for reference.
It's not much and just fragments, but it's enough to get me started without
bothering you. The time you spend on documenting this I'm sure you'll save
in the long run.
A grep-tool would be a great tool for everyone, and I'm sure also save you
guys a lot of newsgroup-time in the future.
Again, thanks.
Paal
>
> IF LGetKeyState( VK_CONTROL )
> // Handle CTRL + key strokes
> DO CASE
> CASE nKey == VK_F2
> ...
> CASE nKey == VK_F3
> ELSEIF LGetKeyState( VK_SHIFT )
> // Handle SHIFT + key strokes
> DO CASE
> CASE nKey == VK_F2
> ...
> CASE nKey == VK_F3
> ENDIF
Thanks, I saw this in an answer you wrote in local.<something>.spanish, it's
a clean and easy way.
>> To avoid questions about this, at least from old Clipper-heads, I suggest
>> you put something about this in the Xailer help file. .....
> This is used on many of the samples included in Xailer. Anyhow I'm
> thinking on adding some grep alike tool so anybody can search in all
> xailer's code base to solve doubts.
Non-spesific samples scattered around here and there is in my oppinion not
"analogous" with the standards of Xailer

newsgroups and translated (through Babelfish) many spanish answers you and
Ignacio have written and copied them to a small document for reference.
It's not much and just fragments, but it's enough to get me started without
bothering you. The time you spend on documenting this I'm sure you'll save
in the long run.
A grep-tool would be a great tool for everyone, and I'm sure also save you
guys a lot of newsgroup-time in the future.
Again, thanks.
Paal