wordwrapping difference between r23 and r2023.
-
hi, i have a dialog-window, that takes a string (without "\n" - linebreaks in it) and displays that string.
in the CreateLayout(), it is defined in this way:font_style_flags = c4d.DR_MULTILINE_WORDWRAP | c4d.DR_MULTILINE_MONOSPACED | c4d.DR_MULTILINE_NO_SCROLLBARS self.GroupBegin(self.ID_PROMPT_GEN_GROUP, flags=c4d.BFH_SCALEFIT, rows=2, title='Generation Info') self.GroupSpace(spacex=5, spacey=5) self.AddMultiLineEditText(self.ID_GEN_INFO, flags=c4d.BFH_SCALEFIT | c4d.BFV_SCALEFIT | c4d.BFH_FIT | c4d.BFV_FIT, inith=15, style=font_style_flags) self.GroupEnd()
in r2023:
the first time the dialog-window is initiated, everything works as expected, the string adapts to the size of the window in real-time, i can make it wider and such and the text adapts, as one would expect due to the "wordwrap".
but after the first initiation all following string-representations are "broken", such that the whole string is presented as a 1-liner, the window becomes extremely wide to show the full string etc.
i can not resize the window anymore, more precisely, only down to the last letter of the string, so the width of the whole string becomes the min width of the window.in r23:
the window, or the string within it, always behaves in a way, that word-wrapping works. no problems here.i have been working on that code in r23 up until yesterday. i just bought the subscription, so it's the first time i tried the code with r2023.
what has changed (in this aspect) between r23 and r2023, what would i need to change/take care of, so that r2023 behaves the same way as r23?
thx.
-
Hello @dermesut,
Thank you for reaching out to us. As announced here, Maxon is currently conducting a company meeting. Please understand that our capability to answer questions is therefore limited at the moment.
Your question is too special as that we could answer it right away. I must ask you to wait until next week for your answer, when our company meeting is over.
Thank you for your understanding,
Ferdinand -
hi,
thank you - but it has become unnecessary.
i did not realize that there is a checkbox in the preferences, called "Script Word Wrap", which was activated while i was working in r23 (probably since the first installation of r23, back in the day), but deactivated (i guess, that's the default setting) in my fresh installation of r2023.it's fine now. i'll mark this one as solved.