how to change the height and width of shape

TeeChart for ActiveX, COM and ASP
Post Reply
Richard
Newbie
Newbie
Posts: 40
Joined: Mon May 21, 2001 4:00 am

how to change the height and width of shape

Post by Richard » Mon Dec 12, 2005 4:34 am

hi;

when i add sevral items as Annotation.but i want to set the same height and width for each shape, how can i do it.

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

Post by Narcís » Mon Dec 12, 2005 3:32 pm

Hi Richard,

You can loop through the tools collection:

Code: Select all

    For i = 0 To TChart1.Tools.Count - 1
        TChart1.Tools.Items(i).asAnnotation.Width = ToolWidth
        TChart1.Tools.Items(i).asAnnotation.Height = ToolHeight
    Next i
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

Post Reply