Design issue: use one tchart component or several?

TeeChart VCL for Borland/CodeGear/Embarcadero RAD Studio, Delphi and C++ Builder.
Post Reply
mathsbertil
Newbie
Newbie
Posts: 14
Joined: Mon Feb 27, 2023 12:00 am

Design issue: use one tchart component or several?

Post by mathsbertil » Sun Aug 27, 2023 4:04 am

I would like to use tchart from several units from popupmenu and actions handler.
Shall I use one tchart component in each form or only one that can be common used in for instance centalized mychart.pas

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

Re: Design issue: use one tchart component or several?

Post by Yeray » Mon Sep 04, 2023 2:08 pm

Hello,

That's an interesting design decision for your application that can be considered for any component, not just specifically for TeeChart.
I'd say it's more elegant and consistent (and less error prone) to reuse a classes/components, but you will probably want to also consider the cost (time investment) vs benefit relation of such implementation.
You can find deeper analyses around about the alternatives you have.
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