Hi Michael,

Michael Weghorn schrieb am 13.10.2025 um 20:35:
On 2025-10-13 09:00, Heiko Tietze wrote:
Text wrapping depends on the OS/DE, AFAIK. There was an issue on Qt- based systems that has been fixed for 25.2, see https:// bugs.documentfoundation.org/show_bug.cgi?id=162297 (and it works nicely with your strings)

If you want to force a line break, \n comes in handy. But I suggest to not mess with the OS/DE algorithms.

At least for Windows and the gen VCL plugin on Linux, this uses the LO-internal logic in HelpTextWindow::SetHelpText.

From what I can see, the help text for the Sort dialog case Regina mentions has 146 characters, while HELPTEXTMAXLEN used in there is currently 150, i.e. the current implementation considers that "short enough" to fit into one line.

If that's considered too long, that would probably be the place to adjust, e.g. it wraps when I set HELPTEXTMAXLEN to 140 locally for a quick test with the gen VCL plugin.

I confirm, that a smaller HELPTEXTMAXLEN will introduce a line break. But that is done by using the else case (HelpWinStyle::Ballon). And that introduces a timer. And the timer is so, that the text disappears before you can read it completely. The HelpWinStyle::Quick case repeats the tooltip rendering until the mouse leaves the text. so that is time enough to read it.

I had hoped, that there was a setting in gtk+ itself for forcing wrap of the text.

Kind regards,
Regina

Reply via email to