Page 1 of 1

TeeCommander

Posted: Tue Mar 21, 2006 8:23 pm
by 9528099
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.

Posted: Fri Mar 31, 2006 7:37 am
by Pep
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