Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2003-07

TSpeedbutton glyph states...

1 message · 1 person ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Tom Lisjac

The 4th glyph doesn't currently show when a TSpeedbutton is in the down/exclusive state. I don't know if it was intentional, but bsExclusive wasn't included in the TButtonGlyph.Draw case selector. The attached patch adds it and displays the 4th glyph at the proper state.

-Tom

Index: lazarus/lcl/include/buttonglyph.inc
=================================================================== RCS file: /FPC/CVS/projects/lazarus/lcl/include/buttonglyph.inc,v retrieving revision 1.18
diff -r1.18 buttonglyph.inc
93a94

bsExclusive: if NumGlyphs>3 then ImgID:=3;

Reply by email