Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
UpperCase in EditBox
Message
De
02/01/2002 16:01:57
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00599764
Message ID:
00599953
Vues:
46
This message has been marked as the solution to the initial question of the thread.
Robert,

Interesting...I added another class layer and encountered the same problem as you.

2 options:
* keypress() method
LPARAMETERS nKeyCode, nShiftAltCtrl

if nKeyCode >= 97 and nKeyCode <= 122
    nKeyCode = nKeyCode - 32
    nodefault
    editbox::keypress(nKeyCode, nShiftAltCtrl)  && go straight to base class
endif
Or, in your parent class(es), add some code (all the way up the heirarchy):
LPARAMETERS nKeyCode, nShiftAltCtrl
nodefault
dodefault(nKeyCode, nShiftAltCtrl)
Option 1 is probably the route to go...


>Hi Steve,
>
>Using debug (Set Step ON) it executes each line as expected just does not echo the uppercase character back -- really weird.
>
>I walked the inheritance chain. There is no code in any KeyPress event or Interactive Change or Progammic Change event. Do you have code in your subclass of the editbox that may make it behave differently?
Steve Gibson
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform