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?