When Caption is not empty, Glyph is painted on left edge.
Procedure TJvxButtonGlyph.CalcButtonLayout calls DrawGlassableText from JvThemes.pas to get TextBounds. (JvSpeedButton.pas, line 2178). Problem is on line 1396 of JvThemes.pas: DrawGlassableText calls deprecated version of procedure StyleServices.DrawText which can not return calculated text bounds.

Steps To Reproduce

Additional Information

Tags

No tags attached.

Attached Files

Relationships

Relationships

Notes

(0021484)
obones (administrator)2018-07-18 15:38

Could you check if the issue is still present in the latest GIT content? If yes, please provide the zipped sources of an application showing this.

(0021830)
mh (reporter)2019-05-12 17:26

Ok, there are other overloads of DrawText available which could be used at least in newer Delphi versions. From which version onwards? And: one of them has a parameter Flags:TTextFormat which is most likely what you want. But which of the many formats shall be used here? tfCalcRect?