Maxon Developers Maxon Developers
    • Documentation
      • Cinema 4D Python API
      • Cinema 4D C++ API
      • Cineware API
      • ZBrush Python 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

    MultiLineEditText with ReadOnly in .res file?

    Scheduled Pinned Locked Moved PYTHON Development
    3 Posts 0 Posters 321 Views
    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.
    • H Offline
      Helper
      last edited by

      On 19/05/2016 at 07:51, xxxxxxxx wrote:

      Hi!

      Because we are making a ObjectData plugin we need to work with a .res file. (as far as I know?) and we cannot make use of the CreateLayout Gedialog.

      For the layout we like to make a MultilineEditText with the READONLY and HIGHLIGTHLINE. This is easily done with the Dedialog.

      self.AddMultiLineEditText(FIELDLEFT, flags=c4d.BFH_LEFT, initw=200, inith=200, style=c4d.DR_MULTILINE_HIGHLIGHTLINE | c4d.DR_MULTILINE_READONLY | c4d.DR_MULTILINE_STATUSBAR)

      But is there a way to create this type of layout inside the .res file? Or maybe another workaround to get this type of layout inside the ObjectData Plugin?

      Something like this only with the option to add READONLY and HIGHLIGHTLINE
      STRING DOCUMENT_INFO_COPYRIGHT { ANIM OFF; CUSTOMGUI MULTISTRING; SCALE_V; WORDWRAP; }

      Every help is appreciated! Thanks!🙂

      Below the layout example:

      1 Reply Last reply Reply Quote 0
      • H Offline
        Helper
        last edited by

        On 20/05/2016 at 03:17, xxxxxxxx wrote:

        Hello,

        you can set the read-only option by adding the string "READONLY" to the parameter description.

        It seems that that there is no string corresponding to the highlight-line option so it is not possible to set this option using a resource file.

          
        STRING ID_STRING_PARAMETER { ANIM OFF; CUSTOMGUI MULTISTRING; READONLY; WORDWRAP;}  
        

        You can see all available options by creating a string user data parameter in the user data manager and then switching to the "Details" tab.

        Best wishes,
        Sebastian

        1 Reply Last reply Reply Quote 0
        • H Offline
          Helper
          last edited by

          On 20/05/2016 at 03:44, xxxxxxxx wrote:

          Thanks Sebastian!

          We are going to find another workaround since we to need to Highlight option for the Interface.

          Again thanks for your help!🙂

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