Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
UpperCase in EditBox
Message
From
02/01/2002 16:01:57
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00599764
Message ID:
00599953
Views:
45
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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform