Paul Ishenin ha scritto:
Giuliano Colla wrote:
BitBtn is supposed to support showing different glyphs for different states, the same as SpeedButton (NumGlyph property etc.). The only difference is that it doesn't have a bsExclusive state, which can be therefore ignored. I'll let you have some screenshots of what it was showing up to some time ago, together with a minimal example to test it, as soon as I get rid of current emergencies.

Here I am.
This:

http://www.copeca.it/colla/Glyphs1.png

is a screenshot showing the glyph provided to BitBtn and a BitBtn displayed both in enabled an disabled state.In the disabled state it shows the correct glyph, but grayed, which isn't correct. This is as of r. 12476.

Currently it shows the same glyph bot in the enabled and disabled state, and doesn't show the bsDown glyph when pressed.
see: http://www.copeca.it/colla/Glyphs2.png

For comparison there are also four SpeedButtons, which have the same glyph, and which behave correctly.

Here's the small app used to peoduce the screenshots:

http://www.copeca.it/colla/buttonglyph.zip
Ah, you are about gtk. As I know bitbtn states never worked under gtk.
Just for the record it did work in 0.9.24. It was implemented in LCL, so it was good for all platforms. I know because I did it :-) The FMultiGlyph bitmap you deleted because currently unused, was the last remnant of the NumGlyph implementation for BitBtn in LCL.

I implemented them, please check r13331.

It woks fine, just as before. Thanks a lot.
Best regards,

Giuliano

_________________________________________________________________
    To unsubscribe: mail [EMAIL PROTECTED] with
               "unsubscribe" as the Subject
  archives at http://www.lazarus.freepascal.org/mailarchives

Reply via email to