[lazarus] Speedbutton questions

Shane Miller SMiller1 at stvgb.org
Fri Mar 10 13:47:44 EST 2000


I'm a bit closer.  I see TGraphiccontrol has a message LM_PAINT procedure so in gtkObject.inc when a LM_REDRAW is sent (from an invalidate) and it's a TSpeedButton I perform a LM_PAINT which calls TSpeedButton's paint procedure.

This still doesn't fix the problem if the form with the button on it is pushed off screen then brought back.

Shane


>>> SMiller1 at stvgb.org 03/10/00 10:45AM >>>
but, how does a PAINT occur?
How does it get called?  gtk usually calls it via the signal (expose, resize, etc) but in this case it doesn't get called.

Shane


>>> Marc.Weustink at cuperus.nl 03/10/00 10:21AM >>>
+ From: Shane Miller [mailto:SMiller1 at stvgb.org] 
+
+ Speed buttons are really just canvas'.  They paint the border
+ around themselves so they look like buttons and then paint
+ the glyph onto themselves.
+
+ I am trying to figure out how to implement them.

Derive them from TGraphicsControl like Delphi and paint on its canvas in the
Paint method. I don't think you need gtk for this one.

Marc


_________________________________________________________________
     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