Custom Items
Posted: Thu Jun 09, 2005 6:29 pm
I have charts with custom items (axes and annotations). I can print (or save to metafile) without problem using techniques in this forum (write the chart to a metafile) --- if the chart is visible.
If the chart is never made visible, some custom items do not display in correct positions. All other chart items display correctly.
For annotations, the problem relates to retrieving the Shape->Height to define Shape's position. The Height remains at 1 until the chart is made visible. We can estimate the height by extracting the line count from the AnsiString (why is this not a TStrings object?).
We haven't isolated the problem with custom axes yet.
Is there a way force a complete chart redraw on the metafile if the chart is hidden?
Help?
Kevin
If the chart is never made visible, some custom items do not display in correct positions. All other chart items display correctly.
For annotations, the problem relates to retrieving the Shape->Height to define Shape's position. The Height remains at 1 until the chart is made visible. We can estimate the height by extracting the line count from the AnsiString (why is this not a TStrings object?).
We haven't isolated the problem with custom axes yet.
Is there a way force a complete chart redraw on the metafile if the chart is hidden?
Help?
Kevin