Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Valid in control in grid.
Message
From
11/08/1999 04:13:34
 
 
To
10/08/1999 16:30:30
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00252213
Message ID:
00252386
Views:
12
Hi Joel.

>> This works fine if the user attempts to move around within the grid; however, if the user clicks on the command button outside of the grid, the command button gets the focus even though the textbox's valid returns false (and even though the textbox's lostfocus never gets called).
Is there anyway for control inside a grid to keep the focus regardless of where the user clicks? <<

This is a known bug. From the knowledge base:

PSS ID Number: Q191686

WINDOWS:3.0,3.0b,5.0,5.0a,6.0


SYMPTOMS
========

In a grid, focus leaves the text box control to go to the control you are
clicking even though the Valid method of the text box returns .F. or 0.
However, the focus remains unchanged in the text box control when you are
tabbing out to move to a different control.

A workaround is to add a property to the grid to flag that the valid of the text box has returned false and then put code in the grid's valid that checks for the flag and returns false if it is set.

Marcia
Previous
Reply
Map
View

Click here to load this message in the networking platform