Hi,
I want change cursor's feature and the color of rectangle. How can I do?
change cursor when zooming
-
- Site Admin
- Posts: 14730
- Joined: Mon Jun 09, 2003 4:00 am
- Location: Banyoles, Catalonia
- Contact:
Hi gong,
I'm not sure of what you exactly want to achieve but you can set TeeChart's zoom pen and brush like this:
If that's not what you are looking for, please give us more details about your request.
I'm not sure of what you exactly want to achieve but you can set TeeChart's zoom pen and brush like this:
Code: Select all
Private Sub Form_Load()
TChart1.Series(0).FillSampleValues 10
With TChart1.Zoom
.Pen.Color = vbRed
.Pen.EndStyle = esRound
.Brush.Color = vbWhite
.Brush.Style = bsBDiagonal
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 |
Instructions - How to post in this forum |
Hi gong,
to accomplish that you will have to make use of the OnMouseDown, OnMouseMove and OnMouseUp events of the Chart component, changing when it's necessary the Cursor, using similar code to the following :
TChart1.Cursor = -21
to accomplish that you will have to make use of the OnMouseDown, OnMouseMove and OnMouseUp events of the Chart component, changing when it's necessary the Cursor, using similar code to the following :
TChart1.Cursor = -21
Pep Jorge
http://support.steema.com
http://support.steema.com