Help!

I have a TImageList created at run time and loaded with bitmaps from a
resource file. No problems.
I now want to add a single bitmap as follows

Var
     anImage : TBitmap;

          .............
          ImageIndex := Glyphs.Add(anImage,Nil);
          ...........

this throw up an error

[Error] CADView.pas(537): Incompatible types: 'TBitmap' and 'tagBITMAP'

with cursor just before the Nil.

I have been through source, help files etc but cannot for life of me see
whats wrong. TImageList.Add quite plainly states that the parameters are
TBitmaps !!

Anyone ?

Paul Lowman


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

Reply via email to