Information générale
Catégorie:
Gestionnaire d'écran & Écrans
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
Précédent
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement