This is a feature request. Could you make the text length per line in a MsgBox customizable? Currently it is wrapped at 80 characters.
self-reminder: https://opengrok.libreoffice.org/xref/core/vcl/source/window/layout.cxx?r=832a1204#2312
MsgBox is a simple function for primitive message output, which is additionally compatible with VBA. It is not intended for complex task requiring such customizations. Anything non-default should be implemented using custom dialogs. WONTFIX imo.
An alternative would be for the msgbox to actually utilize the whole available area. The title of the box can be very long, and the dialog will be resized to a certain degree, but the contained text is truncated after a certain number of characters, no matter, if horizontally half of the box is empty
Yep, let's close
Should I create a separate ticket for fixing the issue with lines being truncated too much? Sub testmsgbox msgbox "1234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890", 1, "1234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890" End Sub See attachment.
Created attachment 162063 [details] Screenshot for sample
Correction, the lines are not truncated, but wrapped. In my opinion, if specifying the maximum length of the lines is not an option, lines should either not be wrapped at all (but rather have a scrollbar), or they should be wrapped at the right end of the available area. I would prefer the latter.