Page 1 of 1

back wall gradient

Posted: Tue May 13, 2008 2:22 pm
by 6928489
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

Posted: Tue May 13, 2008 3:17 pm
by narcis
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