Transparent background for shape serie

TeeChart for ActiveX, COM and ASP
Post Reply
Ced
Newbie
Newbie
Posts: 25
Joined: Fri Nov 15, 2002 12:00 am

Transparent background for shape serie

Post by Ced » Mon Jun 07, 2004 6:44 am

Hello !

I want to draw an shape serie on my chart but I want the background of it to be transparent BUT I want to have the pen visible (so I can see a pattern on it). So something like setting the brush transparent but still have a visible Pen.

Thank you

Pep
Site Admin
Site Admin
Posts: 3296
Joined: Fri Nov 14, 2003 5:00 am
Contact:

Post by Pep » Mon Jun 07, 2004 8:58 am

Hi Ced,

how about using :
tChart1.Series(0).AsShape.Transparent = true

?

Ced
Newbie
Newbie
Posts: 25
Joined: Fri Nov 15, 2002 12:00 am

Post by Ced » Mon Jun 07, 2004 9:04 am

That doesn't work because in this case I have just two lines (the shape is a rectangle) and nothing in it: I want a pattern on it. But everything that is not the pattern must be transparent.

Pep
Site Admin
Site Admin
Posts: 3296
Joined: Fri Nov 14, 2003 5:00 am
Contact:

Post by Pep » Mon Jun 07, 2004 9:50 am

Hi Ced,

you can do this :

With TChart1
.Series(0).asShape.Brush.Style = bsCross
.Series(0).Color = clNone
End With

but does not allow to change the Brush color.

Post Reply