|
Appreciate David’s clear explanation and form design tip – thank you!
However, to assure my understanding, have a question. I have a form with a scrolling region and 3 enhanced speed buttons and 2 office buttons outside the region. While the speed buttons “do not take focus” the office buttons can be assigned a tab order, therefore can take focus, right?
In any case, an on after start eep hides 1 office button, appends the scrolling region with a blank row and sets focus on desired DB Edit field in the appended row.
Is this an exception to David’s experience in form design?
The underlying reason for my question is regarding prior failed attempts to get “a button” inside a scrolling region to display an image file relevant to the row. I continue the quest via alternate means. . .
-Brad Davidson
-----Original Message-----
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 ----- Original Message ----- From: [EMAIL PROTECTED] Sent: Friday, November 05, 2004 4:14 PM Subject: [RBG7-L] - Re: Cursor in first field in region on open form
PROPERTY Region1 SET_FOCUS 'Enabled'
|
