Add to a form the pageframe1 with 3 pages (page1 page2 page3).
Add the Button1 into page1
Add the Button3 into page3
Insert ACTIVEX MicrosoftChartControl 6.0 (SP4) into page2.
Add the Button2 into page2 with the command THIS.parent.page1.setfocus()
into button2.click event.

Now run the form and you see button1.
Click page2. You see the chart and button2 OK!
Click Button2. You see now button1 AND the chart!!!!
Click page3. You see now button3 AND the chart!!!!

Only if you click page2 again and then page1 or page3 everything its OK
again...
_vfp.autoyield=.t./.f. does not matter.

Is it a bug?
Are there any work around?

TIA
Have a nice day (or night),
Nick Pofiris,
ErmisPliroforiki
Athens-Greece
www.ermis-pliroforiki.com.gr

Re: VFP6.0 still displays the MSChart ActiveX control, when programmatically SETFOCUS() to another page of the pageframe by AA

AA
Mon Oct 23 04:29:36 CDT 2006

What if you change pages the way we're supposed to: oPageFrame.ActivePage=
1|2|3
-Anders

"Nick Porfiris" <nickpor@ermis-pliroforiki.com.gr> skrev i meddelandet
news:%23$%239Rpj9GHA.3760@TK2MSFTNGP02.phx.gbl...
> Add to a form the pageframe1 with 3 pages (page1 page2 page3).
> Add the Button1 into page1
> Add the Button3 into page3
> Insert ACTIVEX MicrosoftChartControl 6.0 (SP4) into page2.
> Add the Button2 into page2 with the command THIS.parent.page1.setfocus()
> into button2.click event.
>
> Now run the form and you see button1.
> Click page2. You see the chart and button2 OK!
> Click Button2. You see now button1 AND the chart!!!!
> Click page3. You see now button3 AND the chart!!!!
>
> Only if you click page2 again and then page1 or page3 everything its OK
> again...
> _vfp.autoyield=.t./.f. does not matter.
>
> Is it a bug?
> Are there any work around?
>
> TIA
> Have a nice day (or night),
> Nick Pofiris,
> ErmisPliroforiki
> Athens-Greece
> www.ermis-pliroforiki.com.gr
>
>