Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Misbehaving dropdown list
Message
 
 
À
04/02/2008 19:09:15
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 8 SP1
OS:
Windows 2000 SP4
Network:
Windows 2003 Server
Database:
Visual FoxPro
Divers
Thread ID:
01289375
Message ID:
01289377
Vues:
12
I don't think you need This.Setfocus()
* GotFocus
KEYBOARD "{F4}" PLAIN CLEAR
>I've got a combo that I wish to drop down automagically on focus. In VFP8, a simple:
>
>THIS.SETFOCUS
>KEYBOARD '{F4}'
>
>in the GotFocus method worked nicely. In VFP9 (no SP at this moment), it drops with the top item in the list seemingly selected. Make a selection and it sticks fine, move away and back to the combo, and it is back to highlighting the top item. Removing the GotFocus code and operating interactively, either F4 or the ALT+DOWN ARROW combination works as I'd expect, meaning my last selection is highlighted, and not the top of the list. FWIW, it works the same in SP2. And removing the THIS.SETFOCUS also breaks it in VFP8.
>
>Anyone have a workaround?
--sb--
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform