back wall gradient

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

back wall gradient

Post by mpaulson » Tue May 13, 2008 2:22 pm

Hi:

Simple question, I hope. Please explain to me how to show a simple gradient on the back wall, white on top, blue on the bottom. I've tried:

.Walls.Back.Gradient.Direction = gdBottomTop
.Walls.Back.Gradient.StartColor = RGB(255, 255, 255)
.Walls.Back.Gradient.EndColor = RGB(0, 0, 255)
.Walls.Back.Visible = True
.Walls.Back.Color = RGB(0, 0, 255)
.Walls.Back.AutoHide = True
.Walls.Back.Gradient.Visible = True

But it doesn't show anything.

Thanks,

Matt

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

Post by Narcís » Tue May 13, 2008 3:17 pm

Hi Matt,

You need to add the line below to your code:

Code: Select all

        .Walls.Back.Transparent = False
For example:

Code: Select all

Private Sub Form_Load()
    With TChart1
        .Walls.Back.Transparent = False
        .Walls.Back.Gradient.Direction = gdBottomTop
        .Walls.Back.Gradient.StartColor = RGB(255, 255, 255)
        .Walls.Back.Gradient.EndColor = RGB(0, 0, 255)
        .Walls.Back.Visible = True
        .Walls.Back.Color = RGB(0, 0, 255)
        .Walls.Back.AutoHide = True
        .Walls.Back.Gradient.Visible = True
    End With
End Sub
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

Post Reply