CBrush1 query.

TeeChart for ActiveX, COM and ASP
Post Reply
TonyVSUK
Advanced
Posts: 163
Joined: Wed Mar 01, 2006 12:00 am

CBrush1 query.

Post by TonyVSUK » Tue Sep 21, 2010 7:55 am

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?

Yeray
Site Admin
Site Admin
Posts: 9602
Joined: Tue Dec 05, 2006 12:00 am
Location: Girona, Catalonia
Contact:

Re: CBrush1 query.

Post by Yeray » Wed Sep 22, 2010 2:38 pm

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.
Best Regards,
ImageYeray Alonso
Development & Support
Steema Software
Av. Montilivi 33, 17003 Girona, Catalonia (SP)
Image Image Image Image Image Image Please read our Bug Fixing Policy

Post Reply