Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Odd form behavior
Message
From
28/09/1998 10:52:37
Chris Crachiolo
Blackmoor Associates Incorporated
New York City, New York, United States
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Troubleshooting
Title:
Odd form behavior
Miscellaneous
Thread ID:
00141457
Message ID:
00141457
Views:
49
I have a form -- mostly a bunch of bound text boxes, some command buttons. It's part of a form set with one other form. Here's the odd behavior: a certain command button seems to retain the focus, even when it doesn't have the focus. Ahem, what I mean is: the outer border of the command button stays highlighted, but the button caption no longer has the dotted line around it -- kind of like a *partial* focus. It also becomes the default action for the form when is pressed, but only when certain other types of controls have the focus. For example, if another command button has the focus, the problem button has no focus at all. If a check box has the focus, the button has partial focus and is activated when is pressed. If a bound text box has the focus, the command button has partial focus, but allows the cursor to advance to the next control (except when the problem button is disabled, in which case basically nothing happens in the text box when is pressed -- which makes sense, since if is associated with the button, and the button is disabled, then should be disabled as well).

I realize that what I am calling "partial focus" is a normal occurrence in Windows interfaces -- a button that is the default action for a form when is pressed, even if the button doesn't have the focus. But this is not my intention, and I know of no way to do this in VFP anyway. I suppose I'm doing something inadvertently, but so far I've been unable to see it. It's making my form interface awkward -- sometimes advances from a text box, sometimes not.

Anybody who can solve this will have my awe.
"Ignorance more frequently begets confidence than does knowledge."
-- Charles Darwin
"I am invincible! Invincible...OWWWWWWWW!"
-- Homer Simpson
Next
Reply
Map
View

Click here to load this message in the networking platform