Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Inheritance some of the time but not all of the time?
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Divers
Thread ID:
00186503
Message ID:
00186542
Vues:
16
Hi Jim,

Actually, originally I had something like this. But when the combobox is in a grid, the user wants to be moved to the next/previous line and this wouldn't do the trick, so I came up with the code I have now.

My biggest concern though is that if the code works in a combobox, why doesn't it work when the code is in the combobox class? Is this a bug?

>Colin,
>
>Try this instead.
>
>
>.KeyPress Event
>IF This.Style=2 AND This.mlListLikeCombo
>   IF nKeyCode=5 &&UPARROW or DNARROW DropDown Combo
>      KEYBOARD "{BACKTAB}"
>      NODEFAULT
>   ENDIF
>   IF nKeyCode=24
>      KEYBOARD "{TAB}"
>      NODEFAULT
>   ENDIF
>ENDIF
>
>
>You won't need the Valid code anyore because you aren't changing the style for the combo.
Colin Magee
Team Leader, Systems Development
Metroland Media Group Ltd.
Mississauga, Ontario, Canada

cmagee@metroland.com

Never mistake having a career with having a life.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform