Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Valid in control in grid.
Message
De
11/08/1999 04:13:34
 
 
À
10/08/1999 16:30:30
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00252213
Message ID:
00252386
Vues:
11
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
Fil
Voir

Click here to load this message in the networking platform