Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Mousewheel scrolling speed
Message
De
17/04/2013 08:17:17
 
 
À
02/12/2006 09:51:23
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
01174381
Message ID:
01571203
Vues:
91
>I have been snooping through VFP help and have not been able to find a way to scroll a form using the mousewheel. Here is the code that I have in the mousewheel method.
>
>LPARAMETERS nDirection, nShift, nXCoord, nYCoord
>Thisform.SetViewPort( Thisform.ViewPortLeft, Max(0,Thisform.ViewPortTop-Sign(m.nDirection)*16) )
>
>It works fine, I just need it to move the form up or down more quickly. I can find nothing in help that will tell me how to do that. Can you?
>
>I have been playing with the property's VscrollSmallChange value for the form, but doesn't seem to have any effect.
>
>No luck yet. Any ideas?
>
>+++ Grady ---

Try this and it works perfectly.
Thanks for the idea it was a great help for me :)

LPARAMETERS nDirection, nShift, nXCoord, nYCoord
Thisform.SetViewPort( Thisform.ViewPortLeft, Max(0,Thisform.ViewPortTop-Sign(m.nDirection)*thisform.VScrollSmallChange))
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform