Changing Aspect properties programatically

TeeChart for ActiveX, COM and ASP
Post Reply
Morten Hvidberg-Knudsen
Newbie
Newbie
Posts: 4
Joined: Wed Sep 12, 2007 12:00 am

Changing Aspect properties programatically

Post by Morten Hvidberg-Knudsen » Sun Feb 24, 2008 11:03 pm

Hi,

I have a small problem with my good old Teechart V5:

Changing "Aspect" properties programatically (e.g. Aspect.Rotation Aspect.Elevation) has no immediate effect.

A "Repaint" after the Aspect properties are changed programatically has no effect either.

First after changing some properties interactively (using the TeeCommander and the mouse) the settings changed programatically takes effect.

Any ideas to a workaround ?

Regards

Morten

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 Feb 25, 2008 11:32 am

Hi Morten,

Instead of Repaint you can try using this:

Code: Select all

    TChart1.Environment.InternalRepaint
.
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

Morten Hvidberg-Knudsen
Newbie
Newbie
Posts: 4
Joined: Wed Sep 12, 2007 12:00 am

Post by Morten Hvidberg-Knudsen » Mon Feb 25, 2008 12:45 pm

Hi ,

No luck with Environment.InternalRepaint either.

It appears as if the behaviour is related to the fact that these two "Aspect" properties , Aspect.Rotation Aspect.Elevation, cannot be changed with the "TeeEditor" either. Aparently the only way to force an effect of changing the parameters is to "rotate" the graph with the mouse.

Strange !

Regards

Morten

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 Feb 25, 2008 2:05 pm

Hi Morten,

Ok, to be able to modify those properties you need to set the chart to non-orthogonal:

Code: Select all

    TChart1.Aspect.Orthogonal = False
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

Morten Hvidberg-Knudsen
Newbie
Newbie
Posts: 4
Joined: Wed Sep 12, 2007 12:00 am

Post by Morten Hvidberg-Knudsen » Mon Feb 25, 2008 3:37 pm

Yes, that was the trick. Thank you !

Post Reply