MultiLineEditText with ReadOnly in .res file?



  • 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:



  • 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



  • 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!🙂


Log in to reply