comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Re: CTRL and SHIFT keys with mouse
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
Re: CTRL and SHIFT keys with mouse [message #38177] Wed, 25 February 2004 01:45
Gapelyuk Andrej is currently offline  Gapelyuk Andrej
Messages: 6
Registered: October 1998
Junior Member
Ingo Salzmann wrote:
>
> Andrej,
> see event.modifiers description in the help about WIDGET_DRAW ... there
> it says:
>
> The value in the MODIFIERS field is generated by OR-ing the following
> values together if a key is depressed.
>
> Bitmask Modifier Key
> 1 Shift
> 2 Control
> 4 Caps Lock
> 8 Alt (See Note following this table.)
>
> --> IF ((event.press EQ 1) AND (event.modifiers EQ 1)) THEN print,
> 'Shift pressed at mouse click'
>
> Regards,
> Ingo
>

Many thanks for your answer and example. It works nice.
Andrej Gapelyuk
Re: CTRL and SHIFT keys with mouse [message #38178 is a reply to message #38177] Wed, 25 February 2004 00:27 Go to previous message
Ingo Salzmann is currently offline  Ingo Salzmann
Messages: 10
Registered: December 2002
Junior Member
Andrej,
see event.modifiers description in the help about WIDGET_DRAW ... there
it says:

The value in the MODIFIERS field is generated by OR-ing the following
values together if a key is depressed.

Bitmask Modifier Key
1 Shift
2 Control
4 Caps Lock
8 Alt (See Note following this table.)

--> IF ((event.press EQ 1) AND (event.modifiers EQ 1)) THEN print,
'Shift pressed at mouse click'

Regards,
Ingo


Andrej Gapelyuk schrieb:

> Hi folks,
>
> How can I recognise in widget event if CTRL or SHIFT key was pressed
> simulteneously with mouse key.
>
> Andrej Gapelyuk
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: CTRL and SHIFT keys with mouse
Next Topic: Re: pointer and structure stuff ...

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Wed Oct 08 11:50:57 PDT 2025

Total time taken to generate the page: 0.04681 seconds