Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Refresh of grid sometimes fails
Message
De
14/06/2021 15:58:20
John Ryan
Captain-Cooker Appreciation Society
Taumata Whakatangi ..., Nouvelle Zélande
 
 
À
11/06/2021 17:51:10
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
01677764
Message ID:
01681197
Vues:
108
J'aime (1)
>>I wanted to follow up on this again - if you don't mind explaining further, it seems really odd to set focus to some other object offscreen and then setting it back - what was the reasoning behind changing the focus? Does this force VFP to refresh the grid?

Hi Albert,

This was all done years back, so recollection shaky- but it was to do with resequencing or refreshing after recno() change while the grid has focus. I recall that the grid could go "blank" after a drag-drop meaning no visible content intermittently, or selected row might jump despite explicit GO to maintain current record, or various other anomalies especially if you need to SCAN or locate in the recordsource whenever edits are made. Moving focus elsewhere and then restoring after everything finished, seems to have prevented these glitches. This doesn't seem to be reported by others but if grid refresh anomalies are experienced, losing and restoring focus may be a very low-cost experiment/remedy.
"... They ne'er cared for us
yet: suffer us to famish, and their store-houses
crammed with grain; make edicts for usury, to
support usurers; repeal daily any wholesome act
established against the rich, and provide more
piercing statutes daily, to chain up and restrain
the poor. If the wars eat us not up, they will; and
there's all the love they bear us.
"
-- Shakespeare: Coriolanus, Act 1, scene 1
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform