Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Tab order of controls in container
Message
 
To
20/05/2004 02:44:59
Randy Wessels
Screentek Business Solutions, Llc.
Phoenix, Arizona, United States
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00905061
Message ID:
00905678
Views:
11
Hi Randy,

Put the following code in the keypress event of the textbox of the last column:
This will help you tab down to the next row:
LPARAMETERS nKeyCode, nShiftAltCtrl
IF m.nKeyCode=9 OR ; && Tab key pressed
	m.nKeyCode=4 ; && Right Arrow key pressed
THEN 
	KEYBOARD '{DNARROW}' PLAIN 
ENDIF 
Put the following code in the keypress event of the textbox of the first column:
This will help you tab up to the previous row:
LPARAMETERS nKeyCode, nShiftAltCtrl
IF (m.nShiftAltCtrl=1 AND ; && Shift pressed 
	m.nKeyCode=15) OR ; && tab pressed 
	m.nKeyCode=19 ; && Left arrow key pressed 
THEN 
	KEYBOARD '{UPARROW}' PLAIN 
ENDIF 
This works perfectly for me.

Hope this helps,

Dawa

>What if that control is a grid and you want to control the tab order of the cells in the grid?
>
>For example, I have a grid that is tabbing from left to right on each row and the client wants it to tab from top to bottom starting in the first column and then move to the column to the right.
>
>Is there any way to do that?
>
>Randy
Dawa Tsering


"Do not let any unwholesome talk come out of your mouths,
but only what is helpful for building others up according to their needs,
that it may benefit those who listen."

- Ephesians 4:29-30 NIV

Dare to Question -- Care to Answer

Time is like water in a sponge, as long as you are willing you can always squeeze some.

--Lu Xun, Father of Modern Chinese Literature

Previous
Reply
Map
View

Click here to load this message in the networking platform