Objects Are Refreshed in the Order They Were Added to the FormID: Q134879 The information in this article applies to:
SUMMARYWhen you add objects to a form, the objects are referenced in the order they were added to the form. Therefore, a refresh causes the objects to be refreshed in the same order they were added to the form. It is not possible to alter this order from the form itself, other than by removing the objects and placing them back onto the form in the order desired.
MORE INFORMATION
Steps to Demonstrate Behavior1. Create a new form in Visual FoxPro. 2. Add 2 text boxes and a command button. 3. In the refresh method for Text1, enter this code:
4. In the refresh method for Text2, enter this code:
5. In the click event of the command button, add this code:
6. Run the form. You will see the WAIT WINDOW for Text1 fire, then the WAIT
7. Modify the form, and click the Text1 box. Select the edit menu and
8. Select edit and paste, or press CTRL+V. The Text1 box reappears.
9. Run the form again, and notice that the refresh events of the text boxes It is possible to modify the .SCX file, and move records around to affect
the order that objects are refreshed. The memo field "objname" in the .SCX
file contains the names of the objects. Moving the records containing the
objects on the form affects the refresh order.
Additional reference words: 3.00 VFoxWin KBCategory: kbprg KBSubcategory: FxprgGeneral |
Last Reviewed: August 15, 1995 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |