Page 1 of 1

CBrush1 query.

Posted: Tue Sep 21, 2010 7:55 am
by 9530487
I want the user to be able to format a series, and then re-create that series at a later time.

But I don't think I can. If I call ShowEditor on a CBrush1, and let the user format the brush, I cannot get access to the image filename. The brush style as well includes "Metal", "Wood" etc, these are not styles listed anywhere in the C code I have (bsSolid = 0, bsClear = 1, bsHorizontal = 2, etc).

Is there any way of getting at the image filename used?

Re: CBrush1 query.

Posted: Wed Sep 22, 2010 2:38 pm
by yeray
Hi Tony,

Once you've loaded an Image to a Brush, the real image isn't used anymore. You can see it in the demo at All features\Welcome !\3D Canvas\Brush Styles. Select a brush image, then go to "Steema Software\TeeChart Pro v8 ActiveX Control\Examples\Visual Basic\TeeChartAXV8Demo\BrushStyles" and backup the corresponding image. You'll see how the demo still works. It will only fail starting the demo again.
So, once loaded the image, the reference to the real file is lost.

What you could do is to implement your own dialog where you can save the string of the route manually, instead of allowing access to the ChartEditor.