[Lazarus] displayiing points in a form

Felipe Monteiro de Carvalho felipemonteiro.carvalho at gmail.com
Wed Sep 2 17:49:14 CEST 2009


Draw to a persistent TBitmap and in the OnPaint event just draw this Bitmap:

MyFormOnCreate:
being
  MyBitmap := TBitmap.Create;
  // set bitmap size
end

MyFormDoWhatever:
begin
  //Paint to MyBitmap.Canvas
end

MyFormOrControlOnPaint:
begin
  Canvas.Draw(0, 0, MyBitmap);
end

Hope it's clear enough.

-- 
Felipe Monteiro de Carvalho




More information about the Lazarus mailing list