Page 1 of 1

Strange rectangle on chart

Posted: Mon Dec 11, 2023 4:09 pm
by 16594621
I have chart on some frame include some other frame components,
on frame i have button for seeing a chart and chart parameters component on some form:
code

Code: Select all

var wc:twincontrol;
begin
  mdiform.Caption:='TestID: '+self.eTextID.Text+'  '+self.lTest.Caption;
  wc:=pChart.Parent;

  pChart.Parent:=mdiform;
  bModalView.Visible:=false;

  mdiform.ShowModal;
  bModalView.Visible:=true;

  pChart.Parent:=wc;
end;
when changing to modalview it show some rectangle on chart, i think it is about scrollpager but i don't know hot to remove that rectangle?

Re: Strange rectangle on chart

Posted: Wed Dec 13, 2023 10:53 am
by yeray
Hello,

I'm not sure how to reproduce the problem.
Can you reproduce it in a new simple project?

Re: Strange rectangle on chart

Posted: Thu Dec 14, 2023 10:53 am
by 16594621
I solved it by creating scrollpager in code.
When we create scrollpage in designer it reproduce rectanlgle problem.

Re: Strange rectangle on chart

Posted: Fri Dec 22, 2023 11:06 am
by yeray
Hello,

I've created a simple demo creating two TCharts with a TScrollPagerTool, one created at design time and the other at runtime, and I can't see that rectangle in any of them when moving the charts to a different form and back to the main form.
scrollpager_form.zip
(4.22 KiB) Downloaded 1326 times
Maybe we are using different TeeChart versions, or I may be missing some other relevant step/property.
Are you using TeeChart v2023.39?