[Lazarus] Using BGRABitmap as TAChart back-end

Mattias Gaertner nc-gaertnma at netcologne.de
Wed Mar 16 11:51:30 CET 2011


 
 

Alexander Klenin <klenin at gmail.com> hat am 16. März 2011 um 11:23 geschrieben:

> 2011/3/16 Mattias Gaertner <nc-gaertnma at netcologne.de>:
> >> Anyway, the question was also about managing package dependencies --
> >> TAChart already have, besides default TCanvas back-end,
> >> AggPas, OpenGL and Printer back-ends, and SVG is planned.
> >> Since these back-ends are useful to only a small part of users,
> >> I do not want TAChart to depend on all these packages by default.
> > One solution:
> > Write a package TAChartAggPas, that depends on AggPasLcl and
> > tachartlazaruspkg and has a unit implementing the aggpas backend for
> > TAChart.
>
> I considered that. But it will be one package per dependency -- so +3
> packages right now.
> Is it ok from user interface point of view? 
I think yes. The project requires only one dependency instead of two
(TAChart+AggPas). So this might actually be an advantage.
 
The other possibility is to use conditionals and let the project enable it via
switches. But this is less safe, aka more things can go wrong. For example the
programmer might setup the dependencies in the wrong order and will get
unit-not-found errors, which will not be helpful.

 

> Is there a notion of "package group" in the IDE?
> If not, maybe it is a good idea to create one? 
What should that be?
Packages are shown alphabetically, so if you use the same prefix they are listed
close together.
 
 
Mattias
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus-ide.org/pipermail/lazarus/attachments/20110316/192b34be/attachment-0003.html>


More information about the Lazarus mailing list