Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to prevent exiting a text box...
Message
From
16/05/2002 12:16:06
 
 
To
16/05/2002 10:51:04
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00657372
Message ID:
00657556
Views:
23
Dominic,

In your textbox class, do something like this:
*keypress() method
LPARAMETERS nKeyCode, nShiftAltCtrl

&& backspace or left arrow will not exit textbox
if (this.selStart = 0)
	if nKeyCode = 127 or nKeyCode = 19 or (nKeyCode = 52 and nShiftCtrl = 1)
		noDefault
	endif
endif
>What about when using backspace - this jumps to the previous control, in non Windows standard behaviour?
>
>>>When you type text in a text box if you reach the end of the field size you will jup to the next text box like the tab key.
>>>
>>>I like to prevent juping to the next text box when you reach the end of the text box.
>>>How can I do that?
>>
>>Set confirm on
>>Cetin
Steve Gibson
Previous
Reply
Map
View

Click here to load this message in the networking platform