Hi Sergey,
I was trying to provide the user with a way to change the fontsize in the grid by using the mousewheel to enlarge or reduce the size. I wanted to use Shift + wheel so as to preserve the default behaviour of the mousewheel in a grid (ie to scroll the grid's contents).
I've tried successfully to do what I need if I don't try to trap the Shift key. The grid's contents grow or shrink when I spin the mousewheel. It just doesn't want to work if I test for nShift :(
Mike
>Hi Mike,
>
>Sorry, I tried it but not with a grid. I found that with a grid MouseWheel scroll doesn't work when CTRL or SHIFT key've been hold down. That's why MouseWheel event never fires in this case.
>What're you trying to do?
>
>>Sergey,
>>
>>I put your code into a grid's MouseWheel event and replaced the commented line to
>>
>>
WAIT WINDOW "Shift is down"
>>
>>The wait window never shows. What gives? Have you tried this?
>>
>>Thanks for the suggestion.
>>