Custom TBitBtn in IDE forms doesn't show glyph on Win32 unless ShowMode is gsmAlways
Original Reporter info from Mantis: etrusco
-
Reporter name: Flávio Etrusco
Original Reporter info from Mantis: etrusco
- Reporter name: Flávio Etrusco
Description:
Inside the Lazarus IDE or a plugin/package, a TBitBtn doesn't show the Glyph by default on Win32 (Lazarus is configured to use OS settings).
On a new application the Glyph is displayed by default.
BTW is gsmApplication really the best default for GlyphShowMode?
Can we add some "intelligence" for displaying the glyph if Text is empty?
[EDIT] clearing up:
Shouldn't we always display the glyph if Text is empty?
Steps to reproduce:
- Open an IDE form (e.g. the AboutForm);
- Add a TBitBtn in there and add a glyph to it;
- Configure the IDE (in Options Dialog) to always show glyphs;
- Open the AboutForm.
The TBitBtn doesn't display the glyph.
Curiously the glyph is shown for non-custom TBitBtn (e.g. the close button in the AboutForm).
Mantis conversion info:
- Mantis ID: 19905
- Version: 0.9.31 (SVN)