TeeCommander

TeeChart for ActiveX, COM and ASP
Post Reply
David
Newbie
Newbie
Posts: 3
Joined: Wed Aug 24, 2005 4:00 am
Contact:

TeeCommander

Post by David » Tue Mar 21, 2006 8:23 pm

I am using the TeeCommander as part of my application. I can move, zoom, and use all other buttons of the TeeCommander. However, I wish to use the normal button to put the graph back to its original shape. However, my normal button is greyed. How do I enable the normal button in the TeeCommander. Thanks.

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

Post by Pep » Fri Mar 31, 2006 7:37 am

Hi David,

the only way to add custom buttons to the TeeCommander is to paste them on top of it. You could paste a button to Reset the Chart and use the following code :

Code: Select all

Private Sub Command2_Click()
With TChart1
    .Aspect.Orthogonal = True
End With
With TChart1
    .Aspect.HorizOffset = 0
    .Aspect.VertOffset = 0
End With
With TChart1
    .Aspect.Zoom = 100
End With
With TChart1
    .Aspect.Chart3DPercent = 15
End With
MoveChart = False
RotateChart = False
ZoomChart = False
Go = False
End Sub

Post Reply