how can i set the visibility of the light(0,1,2)
in my code ?
thanks,
Koby
Question about OpenGL
-
- Site Admin
- Posts: 14730
- Joined: Mon Jun 09, 2003 4:00 am
- Location: Banyoles, Catalonia
- Contact:
Hi Koby,
You can try using something like this:
You can try using something like this:
Code: Select all
TChart1.Aspect.OpenGL.Active = True
TChart1.Aspect.OpenGL.LightPosition.X = 0
TChart1.Aspect.OpenGL.LightPosition.Y = 1
TChart1.Aspect.OpenGL.LightPosition.Z = 2
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 |
misunderstood..
hi, i think you misunderstood me.
i want to be able to enable/disable the lights, not to set the direction.
i found that someone has asked my question before (2 years ago) and Pep told him that he will add this request to your wish list.
http://www.teechart.net/support/viewtopic.php?t=4174
have yo added this functionallity to the ActiveX ?
thanks,
koby.
i want to be able to enable/disable the lights, not to set the direction.
i found that someone has asked my question before (2 years ago) and Pep told him that he will add this request to your wish list.
http://www.teechart.net/support/viewtopic.php?t=4174
have yo added this functionallity to the ActiveX ?
thanks,
koby.
-
- Site Admin
- Posts: 14730
- Joined: Mon Jun 09, 2003 4:00 am
- Location: Banyoles, Catalonia
- Contact:
Hi koby,
Ok, thanks for the information.
Yes, this has been added to TeeChart Pro v8 ActiveX, which was released last month. In v8 you can do this:
Ok, thanks for the information.
Yes, this has been added to TeeChart Pro v8 ActiveX, which was released last month. In v8 you can do this:
Code: Select all
With TChart1.Aspect.OpenGL
.Active = True
.Light.Visible = True
.Light1.Visible = True
.Light2.Visible = True
End With
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 |