On 2018-08-22 11:21, Richard Kaye wrote:
Is the chart container magically zooming when you activate the 2nd page? If so, what code is executing at that time?
I used EVENTTRACKING to tell me. I set ET on in the pag1.Deactivate and turned it back off in the pag1.Activate (so when I navigated back to page1 it would shut off). Here's the pickup from page2's tracking:
41830.801, frmhelpdeskcharts.pgf.pag2.Activate() 41830.802, frmhelpdeskcharts.pgf.pag2.mychart.title.UIEnable(.T.) 41830.802, frmhelpdeskcharts.pgf.pag2.mychart.subtitle.UIEnable(.T.) 41830.802, frmhelpdeskcharts.pgf.pag2.mychart.xaxis.UIEnable(.T.) 41830.802, frmhelpdeskcharts.pgf.pag2.mychart.yaxis.UIEnable(.T.) 41830.802, frmhelpdeskcharts.pgf.pag2.mychart.scalelegend.UIEnable(.T.) 41830.802, frmhelpdeskcharts.pgf.pag2.mychart.axislegend2.UIEnable(.T.) 41830.802, frmhelpdeskcharts.pgf.pag2.mychart.shapelegend.UIEnable(.T.) 41830.802, frmhelpdeskcharts.pgf.pag2.mychart.sidelegend.UIEnable(.T.) 41830.802, frmhelpdeskcharts.pgf.pag2.mychart.tooltip.UIEnable(.T.) 41830.802, frmhelpdeskcharts.pgf.pag2.mychart.yaxis2.UIEnable(.T.) 41830.802, frmhelpdeskcharts.pgf.pag2.mychart.chartcanvas.UIEnable(.T.) 41830.802, frmhelpdeskcharts.pgf.pag2.mychart.cmdchartoptions.UIEnable(.T.) 41830.802, frmhelpdeskcharts.pgf.pag2.mychart.title.UIEnable(.T.) 41830.802, frmhelpdeskcharts.pgf.pag2.mychart.subtitle.UIEnable(.T.) 41830.802, frmhelpdeskcharts.pgf.pag2.mychart.xaxis.UIEnable(.T.) 41830.802, frmhelpdeskcharts.pgf.pag2.mychart.yaxis.UIEnable(.T.) 41830.802, frmhelpdeskcharts.pgf.pag2.mychart.scalelegend.UIEnable(.T.) 41830.802, frmhelpdeskcharts.pgf.pag2.mychart.axislegend2.UIEnable(.T.) 41830.802, frmhelpdeskcharts.pgf.pag2.mychart.shapelegend.UIEnable(.T.) 41830.802, frmhelpdeskcharts.pgf.pag2.mychart.sidelegend.UIEnable(.T.) 41830.802, frmhelpdeskcharts.pgf.pag2.mychart.tooltip.UIEnable(.T.) 41830.802, frmhelpdeskcharts.pgf.pag2.mychart.yaxis2.UIEnable(.T.) 41830.802, frmhelpdeskcharts.pgf.pag2.mychart.chartcanvas.UIEnable(.T.) 41830.802, frmhelpdeskcharts.pgf.pag2.mychart.cmdchartoptions.UIEnable(.T.) 41830.802, frmhelpdeskcharts.pgf.pag2.mychart.UIEnable(.T.) 41830.802, frmhelpdeskcharts.pgf.pag1.mychart.Moved() 41830.802, frmhelpdeskcharts.pgf.pag1.mychart.Resize() 41830.802, xfcbitmap.Init(1740, 744, .F., .F., .F.) 41830.804, xfcgraphics.Init() 41830.804, xfcbitmap.Destroy() 41830.805, xfccolor.Init() 41830.809, xfccolor.Destroy() 41830.809, xfcfont(Arial, 16, 1, .F., .F., .F.) 41830.809, 41830.816, frmhelpdeskcharts.LostFocus() 41830.817, frmhelpdeskcharts.Deactivate() 41830.817, frmhelpdeskcharts.Paint()
I had tried forcing a thisform.Paint but that didn't make any difference.