Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
NODEFAULT doesn't work in all events?
Message
De
23/12/2001 13:22:02
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00597789
Message ID:
00597825
Vues:
13
Tom,

I think that a NODEFAULT() in the form *should* suppress the native behavior of refreshing again ... but I haven't tested that. Maybe I'll play with it ....

~~Bonnie



>>>I have 2 events that where I try to suppress VFP's native behavior with DODEFAULT, and it doesn't work.
>>> 1. In a form.Refresh method
>>> 2. In a combo.DropDown event... I want to invoke a mover box instead.
>>>
>>>In the first case, I put some specific code in my form (the SCX) plus a DODEFAULT() to execute the standard code in my form class. What happens, is the DODEFAULT() executes the class code and then refreshes the form, and then the code in my form finishes and refreshes the form again. Since refreshing is a slow process, I don't want to do it twice. I tried putting NODEFAULT in the form as well as in the class, but it doesn't work. I tried MyFormClass::Refresh() instead, but that still refreshes twice.
>>>
>>>I could always create a "REFRESH_CODE" in my class, or (worse) I could copy the class code to my form and completely defeat the principle of OOP.
>>>
>>>Am I missing something obvious, or is it that NODEFAULT only works in specific methods where the documentation specifies it?
>----------------
>Hmmm. I see that no one understands my question. First of all, I meant to write NODEFAULT in the previous sentence above. (My original version of this message had DOdefault there.) Sorry for that confusion.
>
>Let me put it this way. I have refresh event code in my SCX. I also have refresh event code in my form class. How do I get them to both execute, without executing the Refresh method in all my objects on the form more than once? This should be simple, no?
Bonnie Berent DeWitt
NET/C# MVP since 2003

http://geek-goddess-bonnie.blogspot.com
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform