Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Double refresh of textbox using dodefault()
Message
From
16/05/2003 16:31:19
 
 
To
16/05/2003 16:28:06
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
00789482
Message ID:
00789486
Views:
19
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
Previous
Reply
Map
View

Click here to load this message in the networking platform