Is it possible to set Callout Brush to be Transparent?

TeeChart for ActiveX, COM and ASP
Post Reply
psc
Newbie
Newbie
Posts: 16
Joined: Wed May 05, 2004 4:00 am

Is it possible to set Callout Brush to be Transparent?

Post by psc » Mon Dec 18, 2006 1:39 pm

I'm trying to set the callout brush to be transparent at run time via code. Is this possile? I am using the following code. I'd like a green hollow circle as the callout. I can set the brush to any colour apart from transparent.

Code: Select all


    With TChart1.Tools.Items(0).asAnnotation.Callout
            .Arrow.Visible = True
            .Arrow.Color = vbBlue
            .Style = psCircle
            .Visible = True
            .VerticalSize = 6
            .HorizontalSize = 6
            
            .Brush.Style = bsSolid
            .Brush.Color = clNone 'This does not set it to be transparent
           
           .Pen.Color = vbGreen
           .Pen.Style = psSolid
           .Pen.Width = 2

    End With


Narcís
Site Admin
Site Admin
Posts: 14730
Joined: Mon Jun 09, 2003 4:00 am
Location: Banyoles, Catalonia
Contact:

Post by Narcís » Mon Dec 18, 2006 2:36 pm

Hi psc,

You can try setting its brush to bsClear:

Code: Select all

    With TChart1.Tools.Items(0).asAnnotation.Callout
            .Arrow.Visible = True
            .Arrow.Color = vbBlue
            .Style = psCircle
            .Visible = True
            .VerticalSize = 6
            .HorizontalSize = 6

            .Brush.Style = bsClear
           
           .Pen.Color = vbGreen
           .Pen.Style = psSolid
           .Pen.Width = 2
    End With
Best Regards,
Narcís Calvet / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

psc
Newbie
Newbie
Posts: 16
Joined: Wed May 05, 2004 4:00 am

Post by psc » Mon Dec 18, 2006 2:39 pm

Great thanks a lot for response.

Post Reply