>Hi
>
>Just a query - and this is a question regarding performance.
>
>If I had a container that contained 10 (sub-classed) buttons, and the buttons were only enabled on certain conditions. Would it be better to have a SetAll() in the Refresh of the Container, or would it be better to have it in the Refresh() of the Button Class?
>
>Any suggestions? Does it make a real difference where it performs this task?
>
>Thanks
>Kev
Well, if it's primarily about performance, I would say that it makes more sense to put the code in the container. Then VFP just needs to run one method, instead of 10 different REFRESH() methods.
From an OO point of view, if these buttons and the container were forming a self contained control, then i'd use the container REFRESH().