BUG: Show Event Calls Refresh Despite NODEFAULT in SubclassLast reviewed: April 24, 1997Article ID: Q156739 |
The information in this article applies to:
SYMPTOMSWhen an instance of a form subclass has its Show() method called, if its Refresh() method calls the parentclass Refresh(), a NODEFAULT in the subclass Refresh() will be ignored and the Refresh() method for each control on the form will be called twice.
WORKAROUNDConditionally issue a NODEFAULT in the parent class Refresh() method.
STATUSMicrosoft has confirmed this to be a problem in the Microsoft products listed at the beginning of this article. We are researching this problem and will post new information here in the Microsoft Knowledge Base as it becomes available.
MORE INFORMATIONNormally, this behavior will not create much of a problem because it will result in the Refresh() for each control getting called twice by the Show() only if the conditions in SYMPTOMS section are met. In the rare case that this actually causes a problem, the steps described below in Demonstration of Workaround can be utilized. Steps to Reproduce Problem
Demonstration of WorkaroundRationale - Set a flag in the Show() that causes the parent class Refresh() to conditionally execute a NODEFAULT and not carry out its default behavior of calling the refresh of all controls on the form.
|
Keywords : buglist5.00 FxprgClassoop FxtoolFormdes kbprg VFoxWin vfpbug5.0a kbbuglist kbprg
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |