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!
CalcXSizeValues() incorrect for invisible chart
Re: CalcXSizeValues() incorrect for invisible chart
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.
Try with a Draw call. I've made a simple testing project and this call seems to make the difference. It's attached.
Best Regards,
Yeray Alonso Development & Support Steema Software Av. Montilivi 33, 17003 Girona, Catalonia (SP) | |
Please read our Bug Fixing Policy |
Re: CalcXSizeValues() incorrect for invisible chart
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!
Sorry for the late response! I did just see that I forgot to respond to you
Your suggestion works perfectly!
Thanks for your help!