General information
Category:
Forms & Form designer
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
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only