mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-09 23:34:20 +00:00
TooltipWindow: Enable by-char breaking for the tooltip text
This commit is contained in:
parent
8dc4dcd56b
commit
8741f900e7
1 changed files with 1 additions and 0 deletions
|
|
@ -59,6 +59,7 @@ struct LookAndFeelHelpers
|
|||
const int maxToolTipWidth = 400;
|
||||
|
||||
AttributedString s;
|
||||
s.setWordWrap (AttributedString::WordWrap::byChar);
|
||||
s.setJustification (Justification::centred);
|
||||
s.append (text, FontOptions (tooltipFontSize, Font::bold).withMetricsKind (metrics), colour);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue