Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Using Spinner
Message
 
 
À
29/07/2006 16:49:05
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Versions des environnements
Visual FoxPro:
VFP 9 SP1
Divers
Thread ID:
01141401
Message ID:
01141555
Vues:
19
>
>I'm in the midst of rebuilding my workstation so I don't have VFP9 installed yet to test. But here's one theory:
>
>- A spinner is designed to be clicked on many times. In fact, IIRC if you click and hold an up or down arrow on a spinner it "accelerates".
>
>- If you bind a column to the spinner, and it works as you seem to expect (i.e. updating the underlying column on each .InteractiveChange), then you could be forcing tens of updates per second during accelerated spinning. Also, any code you have in .InteractiveChange will also be called tens of times per second. This could cause a lot of network/DB traffic. Also, if you're using a framework that tracks whether a field's value has changed as a result of user input, any such code will also be heavily exercised.
>
>- Instead, what you *probably* want is to hook code into the MouseUp event of the up or down arrow (or of the whole spinner itself, if either of these events exist) so as soon as you release the mouse button, the related fields get updated once, not during all the intermediate values you don't care about.
>

I think this is an excellent suggestion. And your explanation of why the value of the bound field does not change in InteractiveChange of spinner makes sense.

Thank you very much for your help and suggestions.
"The creative process is nothing but a series of crises." Isaac Bashevis Singer
"My experience is that as soon as people are old enough to know better, they don't know anything at all." Oscar Wilde
"If a nation values anything more than freedom, it will lose its freedom; and the irony of it is that if it is comfort or money that it values more, it will lose that too." W.Somerset Maugham
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform