Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
ComboBox list opens then closes
Message
 
 
À
08/07/2016 09:16:13
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows 7
Database:
Visual FoxPro
Application:
Desktop
Divers
Thread ID:
01638085
Message ID:
01638133
Vues:
76
>I figured out what is happening, Naomi...
>
>It is the KEYBOARD '{ALT+DNARROW}' - if that is in the GotFocus event, and you SetFocus to the box programmatically, it works fine, but if you click on the little arrow on the box, then it seems to 'double fire' - it will drop down, and then close again, so if you add an IF to the GotFocus to check if the memvar is empty, or not, it will do the Keyboard action if the memvar is empty, so, if you are returning for another choice, the memvar isn't empty, and the list doesn't drop down automatically - it requires your mouse click, and thus is doesn't fire twice.
>
>It has nothing to do with the data source for the box, which I DO agree needs work, but they asked for the box to work properly, and I have made that happen. If they want more work to bring the other stuff in line with better programming conventions, then so be it, but I have corrected what they asked for.

If you want to keep bad code, so be it. I can not force you to fix it.
If it's not broken, fix it until it is.


My Blog
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform