[lazarus] Resize crash

Baeseman, Cliff Cliff.Baeseman at greenheck.com
Mon Jul 19 11:28:24 EDT 1999


were you able to get the form gc with that call that I posted?

Cliff

-----Original Message-----
From: Shane Miller [mailto:SMiller1 at stvgb.org]
Sent: Monday, July 19, 1999 10:23 AM
To: lazarus at miraclec.com
Subject: Re: RE: [lazarus] Resize crash


The crash was caused by the creation of the SendMessage3 procedure and the
removal of the LM_CREATE message in SendMessage2.  The canvas was being
created in SendMessage2 yet.

In SendMEssage3, we cxurrently are sending it a TControl.  I am going to
change it to TObject because TControlCanvas is not derived from a TControl
and therefore can't be sent as one.

Shane


>>> "Baeseman, Cliff" <Cliff.Baeseman at greenheck.com> 07/19 9:50 AM >>>
Cool.. We just commented out the code so that the canvas was not
overpainting the menu items. It was causing some confusion.

I do not know how the menu bar is going to respond to the size changes
because no default alignment method is set in the menubar constructor. If
you look in TButton I set a default alignment in the TButton contructor to
alNone. Stuff like the menu bar should be set to alTop as the default
alignment method.

Cliff

-----Original Message-----
From: Shane Miller [mailto:SMiller1 at stvgb.org] 
Sent: Monday, July 19, 1999 9:36 AM
To: lazarus at miraclec.com 
Subject: [lazarus] Resize crash


Cliff, the reason the mainfor crashes when you resize it is because it
throws a DRAW event and in Main.PP I was testing the TCanvas fillrect and I
write to it.  Of course, it's commented out so it crashes.

I will fix it and re-submit the changes to CVS
Shane


_________________________________________________________________
     To unsubscribe: mail lazarus-request at miraclec.com with
                "unsubscribe" as the Subject
    archives at http://www.miraclec.com/list_archives/lazarus 

_________________________________________________________________
     To unsubscribe: mail lazarus-request at miraclec.com with
                "unsubscribe" as the Subject
    archives at http://www.miraclec.com/list_archives/lazarus

_________________________________________________________________
     To unsubscribe: mail lazarus-request at miraclec.com with
                "unsubscribe" as the Subject
    archives at http://www.miraclec.com/list_archives/lazarus






More information about the Lazarus mailing list