R:Base folks
 
My thanks to Karen, Javier, CHarlie and others who weighed in on the issues I raised. I thought I'd share what I learned.
 
To review, my form had a scrolling region with 6 DB Edit controls and one Bit button; only one of the DBEdits was enabled. The form had 5 bit buttons outside the region.
 
My goal was to have the form come up with the cursor IN the enabled DBEdit control.
 
I got it to work by making two changes:
 
1.  I replaced the 5 bit buttons outside the region with speed buttons, which do  not take focus.
2.  I tried to replace the bit button in the region with a speed button, but Speed buttons are not allowed in regions. So I placed the button OUTSIDE the region.
 
Voila - the form comes up just like I want it to, with focus in the region.  The buttons all work fine.
 
I learned:
 
1.  To get focus to BEGIN in a scrolling region on a form, it appears you must have all controls OUTSIDE the region be those that will not accept focus, which cannot be assigned a Tab order.
 
2. No speed buttons in regions!
 
3.  Put together the collective minds of the great folks on this list and you'll get your solution!
 
 
David Blocker
[EMAIL PROTECTED]
781-784-1919
Fax: 781-784-1860
Cell: 339-206-0261
----- Original Message -----
Sent: Friday, November 05, 2004 4:14 PM
Subject: [RBG7-L] - Re: Cursor in first field in region on open form


David:

Remember, the first TABORDER is '0',  not '1'!

Karen


PROPERTY Region1 SET_FOCUS 'Enabled'
PROPERTY Region1 SHOWFOCUS 'True'
PROPERTY Region1 TABORDER '1'



Reply via email to