Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Do I need DoDefault() in Refresh()?
Message
De
10/03/2021 09:34:43
Lutz Scheffler
Lutz Scheffler Software Ingenieurbüro
Dresden, Allemagne
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
01678879
Message ID:
01678888
Vues:
30
>>>>I think, only if they have a ControlSource bound to the cursor. Those must, because they change. But this is a guess only. Test would need code in any objects refresh and eventlogging.
>>>
>>>In my case all controls are bound to the cursor. So, this must be what causes the Refresh to fire. I will double check.
>>>I had so many Refresh() in my form (quite loaded form with a pageframe and multiple containers) and I saw that one of the container's Refresh was firing many times. I am trying to get it down to have it fired one time only. You input helps.
>>>Thank you.
>>
>>Labels, for example, do not own ControSource. But refresh :)
>
>I was just thinking of that too. I have Labels that change the Caption when a record moves, and they refresh.

But then there must be code doing this. This might be the right place for any work on change of record pointer, do you trace this via refresh?

off topic
Have you considered to use textbox instead of label? ReadOnly, no frame and so on could look like a label ... Just RETURN .F. in WHEN, and you have a label that alters text on record change ...
Words are given to man to enable him to conceal his true feelings.
Charles Maurice de Talleyrand-Périgord

Weeks of programming can save you hours of planning.

Off

There is no place like [::1]
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform