Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to come out of container
Message
From
12/02/2012 18:01:09
 
 
To
12/02/2012 01:42:49
Mk Sharma
Shrishti Solutions
Mumbai, India
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP SP2
Network:
Windows XP
Database:
Visual FoxPro
Application:
Desktop
Miscellaneous
Thread ID:
01535170
Message ID:
01535262
Views:
97
>i have set the TabStop=.F. for all CommandButtons in Container but after this when i press Up/Down arrow to goto next/Previous CommandButton then also it comes out of Container.
>
>may you send me a sample form at :
>mk_common@yahoo.com
>
>Thanks & Warm regards,
>mk.

Hi,

Try with following:

1) Leave TabStop to .T. (default)
2) Set KeyPreview on form to .T.
3) set in Keypress of your Text-, Editboxes and commandButtons in the container following:
Lparameters nKeyCode, nShiftAltCtrl
lnKC = nKeyCode
lnSAC = nShiftAltCtrl
Do Case
	Case m.lnKC = 9 And m.lnSAC = 0
		Nodefault
	Other
		DoDefault()
Endcase
and in the first object :
Lparameters nKeyCode, nShiftAltCtrl
lnKC = nKeyCode
lnSAC = nShiftAltCtrl
Do Case
	Case m.lnKC = 9 And m.lnSAC = 0
		Nodefault
       Case m.lnKC = 24 abd m.lnSAC = 0
                Nodefault
	Other
		DoDefault()
Endcase
Regards,

Koen
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform