Jeremy

I suspect you need to derive from a slightly lower down the tree class so
you have a canvas to draw on ..

The help file for TWinControl says ...

Newly created components are seldom derived directly from TWinControl. Base
most new controls on TCustomControl, which provides a canvas and handles
paint messages, or on any of several more specialized controls, such as
TButtonControl, TCustomComboBox, TCustomEdit, or TCustomListBox.

Hope it helps :-)

Paul


---------------------------------------------------------------------------
    New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
                  Website: http://www.delphi.org.nz

Reply via email to