comp.lang.idl-pvwave archive - RDF feed
type: channel
description: Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado
items: Re: CTRL and SHIFT keys with mouse

Re: CTRL and SHIFT keys with mouse
type: item
description: 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
creator: Ingo Salzmann
date: 2004-02-25T08:27:45-00:00

Re: CTRL and SHIFT keys with mouse
type: item
description: 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
creator: Gapelyuk Andrej
date: 2004-02-25T09:45:24-00:00