On Thu, 01 Nov 2007 16:27:04 +0200
Albert Zeyer <[EMAIL PROTECTED]> wrote:
> 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.
Ah. GamePanel.Canvas draws in its OnPaint event to the 'screen'
otherwise it changes the TImage.Picture.
> 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.)
Just a guess: Maybe it is an endless loop between gtk and LCL about too
small widget sizes. I added minimum constraints of 1x1. Can you update
lazarus svn and check if this fixes the problem?
Mattias
_________________________________________________________________
To unsubscribe: mail [EMAIL PROTECTED] with
"unsubscribe" as the Subject
archives at http://www.lazarus.freepascal.org/mailarchives