Hi David ---
In a perfect world, I couldn't agree with you more. There are a lot more sophisticated and efficient ways to deal with these types of problems. Generally, when I post a "cheezy" solution, I'm trying to post a minimist solution to the problem to open up the eyes and brains of the original poster so that he/she has a base point from which to explore. In short, I'm not trying to guide them from Point A to Point B, just trying to teach them how to read a map :-) Please note that I always drop the "cheezy" phrase into these types of situations.
Hope that makes sense.
John
>It's just a matter of performance. The PageRefresher class only fires the Refresh() as the page gets focus. VFP doesn't refresh no visible pages because there is little point to updating the controls that have a low probability of even being seen. I admit it would have been nice if VFP kept it's own PageIsDirty flag and handled it internally, but OOP allows us to easily fix this once and never have to worry about it again.
>
>>Hi guys --- considering that I am "Cheezy Solutions R Us" I have a real mozzarella for you:
>>
>>In the Refresh method of the PageFrame, put the following code:
>>
>>LOCAL i
>>FOR i = 1 TO THIS.PageCount
>> THIS.Pages(i).Refresh()
>>ENDFOR
>>
>>If you really want to get slick, wrap the Refresh in an IF..ENDIF to ensure that Refresh isn't fired for ActivePage (to avoid double refresh)
------------------------------------------------
John Koziol, ex-MVP, ex-MS, ex-FoxTeam. Just call me "X"
"When the going gets weird, the weird turn pro" - Hunter Thompson (Gonzo) RIP 2/19/05