Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Refresh order
Message
From
27/03/2006 12:19:56
 
 
To
22/03/2006 16:32:13
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Title:
Miscellaneous
Thread ID:
01106792
Message ID:
01108037
Views:
20
Thanks to those of you who offered insights on this issue. I resolved the issue by moving the calculations out of the refresh events and into custom methods. Then calling them specifically in the order needed. I suspect there may be a little more overhead with this approach but its simpler and more reliable as you suggested.


>>Suppose you have a custom container class which includes a variety of shapes, textboxes, and labels. Some of the properties of these objects are dependant on the values of other objects in the container. Thus we need to control the order in which the controls in the container are refreshed to insure the correct values are picked up. So my question is:
>>
>>How do you control the refresh order of objects within a container?
>>
>>Does the zOrder do this, or the tab order, or something else?
>
>You should try not to rely on the instantiation or refresh order. For example, you could calculate the values in the Refresh() of the parent control - the container in your case.
>
>On the other hand, yes, the ZOrder does change the order, not only of instantiation, but also of refreshing. In other words, simply sending a TextBox to back will ensure that it will be the first one to be refreshed.
Previous
Reply
Map
View

Click here to load this message in the networking platform