Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Double refresh of textbox using dodefault()
Message
De
16/05/2003 16:31:19
 
 
À
16/05/2003 16:28:06
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Divers
Thread ID:
00789482
Message ID:
00789486
Vues:
18
How bout:

1) Create a method in your base class called MyRefresh and put the code in ther that you currently have in the Refresh method.

2) In your Refresh method call This.MyRefresh()

3) In your subclass remove all code in the Refresh method and put it in the MyRefresh method, making sure you call DODEFAULT()

>I have a class that contains a label and a textbox. This class is then subclassed and both the class and subclass have code in the container refresh. To get the original class refresh code to run, I put a dodefault() in subclass refresh. When I issue a thisform.refresh on a form with the subclass on it, the textbox refreshes twice. This isn't too bad until the classes are nested 2 or 3 deep, then the textbox refreshes 4 to 8 times. Using VFP6.
>
>Am I doing something wrong, or is there a way around this behavior?
>
>Thanks in advance,
Thanks,
Dan Jurden
djurden@outlook.com
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform