On 21/11/2013 at 12:57, xxxxxxxx wrote:
How to make a multiline or a multistring description field readonly, so it cannot be edited.
I tried following, but in both cases you can delete the text in the field.
1) self.AddMultiLineEditText(MULTITEXTFIELD, flags=c4d.BFH_MASK, inith=200, style=c4d.DR_MULTILINE_READONLY)
2) resource file:
STRING DOCUMENT_COLORINFO { ANIM OFF; CUSTOMGUI MULTISTRING; WORDWRAP; READONLY; }
Plugin:
def Init(self, op) :
self.InitAttr(op, str, [c4d.MULTISTRING])
op[c4d.MULTISTRING]= "Test over multiple lines\n"
Edited By Moderator: Fixed typo in the title.