[lazarus] Speedbutton questions

Marc Weustink weus at quicknet.nl
Mon Mar 13 19:02:40 EST 2000


At 15:40 13-03-2000 -0600, you wrote:
>I have figured out how the controls that don't have an associated window 
>get their paint messages.

[Snip]

>Here's a problem though.  When you create a TControlCanvas (which is what 
>TGraphicsControls use) what you are doing is setting the Canvas.Handl;e to 
>point to the parent's DC.  The problem with our implementation is that if 
>I do that before the form is actually visible and tell it to display it'll 
>crash.  It seems that the forms FIXED gtk wiget doesn't have a gdkWindow 
>associated with it just yet.  That causes a bunch of asserts to fail and 
>you get an access violation.  The asserts fail when doing the gdk_gc_new( 
>) and gdk_set_function in GetDC.
>
>Someone should look into that.

OK, since the caret is mostly done I'll give it a try.

>I'll have example code once I get this TWincontrol drawing completed.

???

Marc







More information about the Lazarus mailing list