Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Grid Acting Strange Second Time
Message
De
22/01/2002 08:34:31
Jay Johengen
Altamahaw-Ossipee, Caroline du Nord, États-Unis
 
 
À
17/01/2002 13:47:10
Jay Johengen
Altamahaw-Ossipee, Caroline du Nord, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00606256
Message ID:
00608334
Vues:
19
>Grid on a Page of a PageFrame. The 1st time the page is Activated the grid looks fine. The 2nd (and subsequent) time it has problems. Multiple cells are highlighted when the row or column or changed. Mouse or arrows cause the same behaviour. I've compared EventTracking output files between the 1st and 2nd times and the only major differences are that the 2nd time there are a lot of UIEnable calls done whereas there are none the 1st time through. Any ideas?
>
>Regards, Renoir

Found the solution late on Friday. It's an old nemisis of mine - SetFocus. In a button on Page1 was a SetFocus call to an object on another page, but the processing would be handed back to Page1 as there was still code after the call. Foxpro was becoming confused as to what page the focus should be. Since the SetFocus was superfluous anyway because I use ActivePage and set focus as needed on the other page, just removing the call in Page1 resolved the issue.

The joys of legacy code...

Renoir
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform