Strange rectangle on chart

TeeChart VCL for Borland/CodeGear/Embarcadero RAD Studio, Delphi and C++ Builder.
Post Reply
Enver2023
Newbie
Newbie
Posts: 2
Joined: Fri Oct 21, 2022 12:00 am

Strange rectangle on chart

Post by Enver2023 » Mon Dec 11, 2023 4:09 pm

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?
Attachments
teechart-What is this-1.jpg
teechart-What is this-1.jpg (139.95 KiB) Viewed 21803 times
teechart-What is this-2.jpg
teechart-What is this-2.jpg (99.04 KiB) Viewed 21803 times

Yeray
Site Admin
Site Admin
Posts: 9622
Joined: Tue Dec 05, 2006 12:00 am
Location: Girona, Catalonia
Contact:

Re: Strange rectangle on chart

Post by Yeray » Wed Dec 13, 2023 10:53 am

Hello,

I'm not sure how to reproduce the problem.
Can you reproduce it in a new simple project?
Best Regards,
ImageYeray Alonso
Development & Support
Steema Software
Av. Montilivi 33, 17003 Girona, Catalonia (SP)
Image Image Image Image Image Image Please read our Bug Fixing Policy

Enver2023
Newbie
Newbie
Posts: 2
Joined: Fri Oct 21, 2022 12:00 am

Re: Strange rectangle on chart

Post by Enver2023 » Thu Dec 14, 2023 10:53 am

I solved it by creating scrollpager in code.
When we create scrollpage in designer it reproduce rectanlgle problem.

Yeray
Site Admin
Site Admin
Posts: 9622
Joined: Tue Dec 05, 2006 12:00 am
Location: Girona, Catalonia
Contact:

Re: Strange rectangle on chart

Post by Yeray » Fri Dec 22, 2023 11:06 am

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 1456 times
Maybe we are using different TeeChart versions, or I may be missing some other relevant step/property.
Are you using TeeChart v2023.39?
Best Regards,
ImageYeray Alonso
Development & Support
Steema Software
Av. Montilivi 33, 17003 Girona, Catalonia (SP)
Image Image Image Image Image Image Please read our Bug Fixing Policy

Post Reply