Am Donnerstag, den 01.11.2007, 15:19 +0100 schrieb Mattias Gaertner:
> On Thu, 01 Nov 2007 15:51:59 +0200
> Albert Zeyer <[EMAIL PROTECTED]> wrote:
> 

> > I stepped through the code and I figured out that I get the message
> > exactly at this point:
> >     GamePanel.Canvas.Draw(0,0,MyRoomPic.Picture);
> > GamePanel is a TImage and MyRoomPic.Picture is a TBitmap.
> > 
> > So, is the code wrong?
> 
> Is the OnPaint event of the GamePanel?
> 
No, it was the OnPaint event of the Form. I haven't set the OnPaint
event of the GamePanel before.

I have changed this now and it works!

Thank you. :)

(But of course that solves not the main bug I have reported: the freeze
while resizing the window.)


--
Albert

_________________________________________________________________
     To unsubscribe: mail [EMAIL PROTECTED] with
                "unsubscribe" as the Subject
   archives at http://www.lazarus.freepascal.org/mailarchives

Reply via email to