Read-only strings in descriptions



  • THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

    On 06/09/2010 at 09:13, xxxxxxxx wrote:

    User Information:
    Cinema 4D Version:   11.5 
    Platform:   Windows  ;   
    Language(s) :     C++  ;

    ---------
    I'm not sure if this is possible, but here's what I want to do. I have a description resource (not a dialog) in which I'd like to display what could be quite a long string of text. I can do this in a MULTISTRING element, but then the user can edit it, which I don't want - I just want it readable. I can disable it, but then it's all greyed out, which doesn't look good. I then tried in GetDDescription() setting DESC_EDITABLE to false, but it doesn't seem to make any difference - the text is still editable.

    I can do this in a dialog with a GeUserArea, but those aren't possible in descriptions. Does anyone have any suggestions about how this could be done? Are there any custom GUIs which I'm missing which could be included in a description?

    Thanks,

    Steve



  • THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

    On 06/09/2010 at 12:15, xxxxxxxx wrote:

    I think we fixed a couple things for R12 (take a look e.g. in the document settings at the edit field under "Input Color Profile") - the text can only be selected, but not modified anymore



  • THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

    On 07/09/2010 at 01:53, xxxxxxxx wrote:

    Thanks, I'll take a look. Thing is, I want to support versions from R10 onwards, so that isn't going to work in earlier versions. But I appreciate the response, thank you.



  • THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

    On 07/09/2010 at 05:44, xxxxxxxx wrote:

    As Philip pointed out some things have changed with R12 in this regard.

    For instance there is an READONLY flags for multiline string descriptions.

    Example:

    STRING DOCUMENT_COLORINFO { PARENTCOLLAPSE DOCUMENT_COLORPROFILE; ANIM OFF; CUSTOMGUI MULTISTRING; READONLY; }
    

    As for pre R12 version I am afraid you have to write your own multiline custom GUI.

    cheers,
    Matthias



  • THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

    On 07/09/2010 at 05:57, xxxxxxxx wrote:

    Thank you, that will be very useful for R12 up. For other versions I can find a workaround.

    One thing, I can't find that READONLY flag documented in the SDK, and is the PARENTCOLLAPSE flag new as well? I can't find that one either. And while on the subject, one small point - opening the R12 SDK docs in a browser, you get the page title of Cinema 4D R11 SDK - confusing if you have more than one set of docs open at the same time for comparison! (I'm not complaining, I know these are preliminary docs - just pointing out a correction.)



  • THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

    On 07/09/2010 at 06:06, xxxxxxxx wrote:

    These additional flags are not documented yet. I will try to gather a list of new description flags. Also thanks for pointing out the wrong title of the docu but it has been reported already :) Anyways don't hesitate to report these kind of errors.

    cheers,
    Matthias


Log in to reply