On Fri, 08 Dec 2006 08:25:11 +0200 Dave Coventry <[EMAIL PROTECTED]> wrote:
> Hi Tom, > > Yes! That was it! > > I've done a lot of head scratching trying to figure out what was > going on. :-? In such cases: Just move the mouse over TBitmap and wait for the hint, or do a find declaration. Mattias > > Thank you. > > Tom Gregorovic wrote: > > Dave Coventry napsal(a): > > > >> Hi, > >> > >> I have code as follows: > >> > >> //================ snip ======================= > >> procedure TForm1.FormShow(Sender: TObject); > >> var > >> BufferMap: TBitmap; > >> begin > >> BufferMap:=TBitMap.Create; > >> end; > >> //================ snip ======================= > >> > >> This should work (indeed it works in another project). > >> > >> However, code completion does not give me the option to insert > >> 'Create'; the only options given are bmBits through to > >> bmWidthBytes. > >> > >> When I try to compile it says 'Unit1.pas(81,22) Error: Unknown > >> record field identifier "CREATE" ' > >> > >> I'm at a bit of a loss, especially as the other project uses it > >> without problems. Also the 'uses' sections ARE identical. > >> > >> Does anyone have any ideas? > >> > > Hi, > > I think you have Windows unit in the uses section, don't you? > > If so, then you must place it before Graphics in the uses list. > > > > Tombo > > > > _________________________________________________________________ > > To unsubscribe: mail [EMAIL PROTECTED] with > > "unsubscribe" as the Subject > > archives at http://www.lazarus.freepascal.org/mailarchives > > > > > > _________________________________________________________________ To unsubscribe: mail [EMAIL PROTECTED] with "unsubscribe" as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
