Jay Johengen
Altamahaw-Ossipee, Caroline du Nord, États-Unis
Jay Johengen
Altamahaw-Ossipee, Caroline du Nord, États-Unis
Information générale
Catégorie:
Gestionnaire d'écran & Écrans
>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
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