Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Grid control's MouseWheel event problem
Message
From
23/11/2003 16:51:45
Mike Sue-Ping
Cambridge, Ontario, Canada
 
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00852801
Message ID:
00852815
Views:
19
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.
>>
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform