PRB: Controls in a Page Frame Are Not RefreshedLast reviewed: July 28, 1995Article ID: Q132179 |
The information in this article applies to:
SYMPTOMSIn a page frame, you observe that only the controls placed on the active page are refreshed when data changes. Controls in underlying pages are not refreshed until they receive the focus.
CAUSEFor performance reasons, only the active page in a page frame is refreshed when a form is refreshed. This is by design.
WORKAROUNDAlternatives include explicitly calling the Refresh method for each page that is to be refreshed. For example, it is possible to define a method that loops through the pages in a page frame and refreshes all the pages. The following code sample illustrates this method.
Code Sample* Call this method ,and pass the name of the page frame as a * parameter. * For example, * Thisform.RefreshAllPages('PageFrame1') * PROCEDURE RefreshAllPages PARAMETER tcPageFrameName oRef=EVAL('thisform.'+tcPageFrameName) FOR I=1 TO oRef.PageCount oRef.Pages(I).RefreshENDFOR Thisform.Refresh
Alternative WorkaroundAnother alternative is to refresh a page when it becomes active. To accomplish this, place the following code in the method associated with the activate event of the page:
This.Refresh STATUSThis behavior is by design.
MORE INFORMATION
Steps to Reproduce Behavior
|
Additional reference words: 3.00 VFoxWin
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |