Hi there,
i use a Surface Series with OpenGl. If i resize my form the chart is outside the range.
What can I do? See example.
Thanks in advance,
Dennis
Rezize Chart Problem
Re: Rezize Chart Problem
Hi Dennis,
I'm not sure if the attached application is the correct one. I see a TPointSeries instead of a TSurfaceSeries. And the chart isn't aligned with the form so when the form is resized the chart does nothing.
I'm not sure if the attached application is the correct one. I see a TPointSeries instead of a TSurfaceSeries. And the chart isn't aligned with the form so when the form is resized the chart does nothing.
Best Regards,
Yeray Alonso Development & Support Steema Software Av. Montilivi 33, 17003 Girona, Catalonia (SP) | |
Please read our Bug Fixing Policy |
Re: Rezize Chart Problem
Hi Yeray,
sorry, it was the wrong example. Here is the correct one.
Thanks in advance,
Dennis
sorry, it was the wrong example. Here is the correct one.
Thanks in advance,
Dennis
- Attachments
-
- Example.zip
- (84.87 KiB) Downloaded 308 times
Re: Rezize Chart Problem
Hi Dennis,
Right, when you maximize the window, the chart rect is zoomed too much. You could try setting a calculated Zoom relative to the form size at the Form's OnResize event. For example the following works better for me here:
Right, when you maximize the window, the chart rect is zoomed too much. You could try setting a calculated Zoom relative to the form size at the Form's OnResize event. For example the following works better for me here:
Code: Select all
procedure TForm2.FormResize(Sender: TObject);
begin
Chart1.Aspect.Zoom:=Round((Self.Width*0.75/Self.Height)*40);
end;
Best Regards,
Yeray Alonso Development & Support Steema Software Av. Montilivi 33, 17003 Girona, Catalonia (SP) | |
Please read our Bug Fixing Policy |