Page 1 of 1

CalcXSizeValues() incorrect for invisible chart

Posted: Wed Jan 11, 2012 4:25 pm
by 10049140
Hi.

I just regarded that THorizBarSeries.CalcXSizeValues() does always return 0 if the containing TChart is located on an not visible form (TeeChart Pro V2011).

I use this function for preparations of the series marks before exporting/printing a chart (automated export without showing gui).
The export of the chart works correctly, but calling CalcXSizeValues() on the series always returns 0 in this case.

I also tried calling Invalidate() and Repaint() on the chart, but the result is the same.

Is this a known issue?
Can you provide me any workaround?

Thanks for your help!

Re: CalcXSizeValues() incorrect for invisible chart

Posted: Thu Jan 12, 2012 9:34 am
by yeray
Hi Marder,

Try with a Draw call. I've made a simple testing project and this call seems to make the difference. It's attached.
testHorizBar.zip
(2.47 KiB) Downloaded 534 times

Re: CalcXSizeValues() incorrect for invisible chart

Posted: Tue Feb 07, 2012 10:12 am
by 10049140
Dear Yeray.

Sorry for the late response! I did just see that I forgot to respond to you :(

Your suggestion works perfectly!
Thanks for your help!