Hi:
I have sliders on my form to control elevation and rotation. They worked fine in version 5. But in version 8, they have no effect until the user drags the image and rotates it (3d) using the tcRotate tool. Then they start working -- although they are not "synced" the current position of the image.
Any ideas what might be the problem?
Thanks,
Matt
aspect.elevation/aspect.rotation ignored until tcRotate used
Hi Matt,
Could you try the following code? It works fine here in a new project with only a chart and two sliders.
Could you try the following code? It works fine here in a new project with only a chart and two sliders.
Code: Select all
Private Sub Form_Load()
Slider1.Min = 0
Slider2.Min = 0
Slider1.Max = 360
Slider2.Max = 360
Slider1.Value = TChart1.Aspect.Elevation
Slider2.Value = TChart1.Aspect.Rotation
TChart1.Aspect.Orthogonal = False
End Sub
Private Sub Slider1_Change()
TChart1.Aspect.Elevation = Slider1.Value
End Sub
Private Sub Slider1_Scroll()
Slider1_Change
End Sub
Private Sub Slider2_Change()
TChart1.Aspect.Rotation = Slider2.Value
End Sub
Private Sub Slider2_Scroll()
Slider2_Change
End Sub
Best Regards,
Yeray Alonso Development & Support Steema Software Av. Montilivi 33, 17003 Girona, Catalonia (SP) | |
Please read our Bug Fixing Policy |