On Sat, 04 Mar 2006 17:56:41 +0100 darekm <[EMAIL PROTECTED]> wrote: > > >>> > >>> > >>simple: when I set color:=clRed then not change color (like in others > >>controls) > >> > >> > > > >The solution is simple: if color<>clBtnFace then paint a custom button. > >The question is only, how to implement it. > >The easiest would be to extend TSpeedButton.Paint with a > > > >if (Color<>clBtnFace) or (... other properties ...) then > > PaintCustomSpeedButton > >else > > PaintThemeButton > > > > > > > > > > > with this patch works (only change order)
Applied. Thanks. > two suggestion > 1. is clDefault not better than clBtnFace Delphi compatibility > 2. DrawFrameControl should return inner rectangle (control should know > how fat is frame) Yes. It's a todo. Mattias _________________________________________________________________ To unsubscribe: mail [EMAIL PROTECTED] with "unsubscribe" as the Subject archives at http://www.lazarus.freepascal.org/mailarchives