Re: Detecting shift/alt keys



On Thu, 21 Apr 2005 20:16:48 +0200, "Maarten Wiltink"
<maarten@xxxxxxxxxxxxxxxxxx> waffled on about something:

>"Peter" <peter@xxxxxxxxxxx> wrote in message
>news:qkef619mjb6forlu2fbks7t83d8r19s0k5@xxxxxxxxxx
>> On Thu, 21 Apr 2005 14:24:54 +0100, Dodgy
>> <Dodgy@xxxxxxxxxxxxxxxxxxxxx> wrote:
>[...]
>>> if HiWord(GetKeyState(vk_shift))<>0 then
>>> // it's down
>>> else
>>> // it's up
>>>
>>>The alt key is vk_menu
>[...]
>> What I don't understand is where I should be checking. Form.onkeydown
>> and form.onkeypress don't seem to do anything.
>
>Link the controls to an action and check in the OnUpdate handler.
>
>Groetjes,
>Maarten Wiltink

Oh you evil man, pointing a newbie to use actions... I bet you're
waiting for the day he accidentally double clicks one of the events on
him menu bar and then wonders why his action suddenly stops working!
Unless they've improved that little headache since D5.

Dodgy.
--
MUSHROOMS ARE THE OPIATE OF THE MOOSES
.



Relevant Pages