Maxon Developers Maxon Developers
    • Documentation
      • Cinema 4D Python API
      • Cinema 4D C++ API
      • Cineware API
      • ZBrush GoZ API
      • Code Examples on Github
    • Forum
    • Downloads
    • Support
      • Support Procedures
      • Registered Developer Program
      • Plugin IDs
      • Contact Us
    • Categories
      • Overview
      • News & Information
      • Cinema 4D SDK Support
      • Cineware SDK Support
      • ZBrush 4D SDK Support
      • Bugs
      • General Talk
    • Unread
    • Recent
    • Tags
    • Users
    • Login

    wordwrapping difference between r23 and r2023.

    Cinema 4D SDK
    python r23 2023
    3
    3
    749
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • D
      dermesut
      last edited by

      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.

      ferdinandF 1 Reply Last reply Reply Quote 0
      • ferdinandF
        ferdinand @dermesut
        last edited by

        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

        MAXON SDK Specialist
        developers.maxon.net

        1 Reply Last reply Reply Quote 0
        • D
          dermesut
          last edited by

          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.

          1 Reply Last reply Reply Quote 1
          • First post
            Last post