Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Workaround for a bug
Message
De
14/06/2001 15:03:42
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00519598
Message ID:
00519642
Vues:
16
>>We have found a small bug in Visual FoxPro when the cursor sits on a column of a grid and when we do a refresh. Occasionnaly, the grid won't be refreshed. When that happens, and that only happens occasionnaly, we just put the cursor on another control, outside of the grid, and the next refresh will be ok.
>>
>>We would like to update the framework to put the cursor out of a grid control, if we are on one of them, when we navigate or save for example. What would be the best approach for that? There is no SetFocus() at the form level. So, we need to rely on something else that will always work no matter what type of form we have.
>
>How about adding a textbox to your form class? You need to set its Visible property to .t. and TabStop to .F. In the Init put This.Top = -30 so it is not visible to the user, but its visible property must be .t. Now you can set focus to that control for refreshes.

I did force a SetFocus() on one of my control whenever I call the Refresh() method. This solves the problem.

I was wondering, instead of adding a control, is there a way to detect the control #1 in the tab sequence so we can focus on that?
Michel Fournier
Level Extreme Inc.
Designer, architect, owner of the Level Extreme Platform
Subscribe to the site at https://www.levelextreme.com/Home/DataEntry?Activator=55&NoStore=303
Subscription benefits https://www.levelextreme.com/Home/ViewPage?Activator=7&ID=52
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform