>I have written a DLL that uses a TCanvas to draw tooltips in a
>Toolbook application. Although it is pretty simple (just a couple of
>exported functions and some 10 TCanvas methods calls) the size is 140+
>Kb, so I guess a lot of unused code from the VCL is included in it.
The Graphics unit uses Controls and Forms, which brings in most of the
VCL. You can try to sift through Graphics to determine what needs the
Controls and Forms units and remove those parts.
It might be easier to copy TCanvas out of Graphics.pas into your own
file.
--
Ray Lischner, Tempest Software, Inc., Corvallis, Oregon, USA
Author of Secrets of Delphi 2 (http://www.tempest-sw.com/secrets/)