Sometimes, just sometimes, I get that message error on my application. What
does it mean? How can I solve this problem?
Msg 'Canvas does not allow drawing'
Overland Park, KS USA
efg's Computer Lab: http://www.efg2.com/Lab
I get this "Canvas Does not allow drawing" exception when I try to do the
TCanvas* aCanvas = new TCanvas(); //dynamically allocate a new TCanvas
DrawOn(aCanvas); //do some drawing on it
Canvas->CopyRect(destRect, aCanvas, sourceRect); //Try to paste the new
canvas onto a screen canvas.
I get the exception when I try to use CopyRect() to copy the new Canvas onto
something else. Is this an acceptable practice? I guess instead of
creating TCanvas objects I could create TBitmap objects, and use CopyRect()
with those like the documentation shows, but wouldn't using a TCanvas as the
source be less memory intensive (assuming that it is possible)?