Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Combobox On Select method
Message
De
05/05/2017 11:28:30
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
01650871
Message ID:
01650874
Vues:
40
>>>Hi,
>>>
>>>Which method of combobox fires when a user selects an item from the drop-down list? I need to set up some other controls based on the user selection. And I know that I should know this but simply forgot.
>>>TIA
>>>
>>>Update: I believe it is Valid() method. Somehow I didn't see this method when I was looking at the property sheet.
>>
>>InteractiveChange should also work.
>
>Wouldn't the InteractiveChange fire every time user changes the item in the drop-down? It may (if I understand correctly) fire "my changes" too many times. Whereas the Valid() only fires once. Am I correct?

That will depend on your application. Sometimes people want to see the changes while scrolling, sometimes not. If for instance you have one combo for State and one for Cities, people may get confused if they see Miami while the state combo momentarily shows Texas. Personally I have a timer running while people scroll. During scrolling the other elements are shown as disabled, once they stop scrolling for a short while the screen is updated.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform