change cursor when zooming

TeeChart for ActiveX, COM and ASP
Post Reply
gong
Newbie
Newbie
Posts: 14
Joined: Wed May 18, 2005 4:00 am
Location: China
Contact:

change cursor when zooming

Post by gong » Thu May 18, 2006 8:01 am

Hi,
I want change cursor's feature and the color of rectangle. How can I do?

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

Post by Narcís » Thu May 18, 2006 8:55 am

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:

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
If that's not what you are looking for, please give us more details about your request.
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

gong
Newbie
Newbie
Posts: 14
Joined: Wed May 18, 2005 4:00 am
Location: China
Contact:

Post by gong » Fri May 19, 2006 12:49 am

Hi Narcís,
Thanks, what you write is my want. But I want to know if I can change the cursor like a magnifier feature when zooming the series?

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

Post by Pep » Sun May 21, 2006 9:48 pm

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

Post Reply