Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Grid control's MouseWheel event problem
Message
De
23/11/2003 16:51:45
Mike Sue-Ping
Cambridge, Ontario, Canada
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00852801
Message ID:
00852815
Vues:
20
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.
>>
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform