TButtonPanel.ShowGlyphs does not alter glyph show state of individual buttons
Original Reporter info from Mantis: martijnn
-
Reporter name:
Original Reporter info from Mantis: martijnn
- Reporter name:
Description:
It looks like TButtonPanel.ShowGlyphs property has lost the ability to differentiate from the Application.ShowButtonGlyphs setting.
At least in 1.6.4 (haven't checked 1.8.x) it was possible to hide the glyphs on individual buttons even when the Application.ShowButtonGlyphs was set to effectively show them. (The other way round did not work).
Steps to reproduce:
* Open example project "lazresexplorer"
* Open unit reAboutUnit in form designer view
* Uncheck pbHelp element in ButtonPanel1.ShowGlyphs
* Run program -> open About window
* Observe result: 1.6.4 (help button glyph hidden) 2.0.2 (help button glyph not hidden)
Additional information:
Workaround: unset the individual glyph in code. In FormCreate event add: "ButtonPanel1.HelpButton.GlyphShowMode := gsmNever"; (add Menus unit to uses)
Is this possibly related to the new dpi-awareness feature?
Suggestion: Would it be something to replace the ShowGlyphs property with a ForceShowGlyphs / ForceHideGlyphs pair (default: empty set)? IMHO that would make the functionality more obvious and provide increased control over the behavior.
Mantis conversion info:
- Mantis ID: 35541
- OS: Windows
- OS Build: 10
- Build: r60954
- Version: 2.0.2