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

    SetDefaultColor, list of id's GUI elements use

    SDK Help
    0
    7
    554
    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
      Helper
      last edited by

      On 15/01/2016 at 05:18, xxxxxxxx wrote:

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

      ---------
      Hi guys,

      Is there a document that lists the interface colors that Dialog elements use? e.g. Button uses COLOR_TEXT_BUTTON and COLOR_TEXT_BUTTON_DISABLED, EditText has COLOR_TEXT_EDIT, etc.

      I want to colorize some elements on a dialog I'm working on, but it's tedious doing trial and error to figure out which color id to swap out.

      regards,
      -gene

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

        On 15/01/2016 at 08:12, xxxxxxxx wrote:

        Something like that?  https://developers.maxon.net/docs/cpp/2023_2/c4d\__colors_8h.html

        Never mind, misunderstood your question. Yes, a document that describes which widget uses which
        color IDs would be useful indeed.

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

          On 15/01/2016 at 08:42, xxxxxxxx wrote:

          These values are not strict.  The actual colors are determined by the user (or defaults) under Preferences:Scheme Colors.

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

            On 15/01/2016 at 10:14, xxxxxxxx wrote:

            I mean the second argument in SetDefaultColor( ELEMENT_ID, COLOR_TEXT_EDIT , Vector(1.0) );

            Those IDs do read the corresponding scheme colors. The thing is, each type of dialog element uses certain IDs, and I don't know if there's any documentation that lists those.

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

              On 15/01/2016 at 10:38, xxxxxxxx wrote:

              Unfortunately, not only is the API documentation lacking 'definitions' of what these actually represent beyond the naming convention, the Cinema 4D Help under Preferences:Scheme Color lacks descriptions as well.  There doesn't appear to be a correlative index between the two.  For instance, while it seems that 'General - Text - Edit' is probably COLOR_TEXT_EDIT, your guess is as good as mine.  Such a correlative index reference would be nice though.

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

                On 18/01/2016 at 10:04, xxxxxxxx wrote:

                Hi,

                we are aware that the documentation is bad on this topic, nevertheless good to point it out. We have it on our list, unfortunately way down, as we currently deem other parts of documentation more important.

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

                  On 18/01/2016 at 23:31, xxxxxxxx wrote:

                  Originally posted by xxxxxxxx

                  Hi,

                  we are aware that the documentation is bad on this topic, nevertheless good to point it out. We have it on our list, unfortunately way down, as we currently deem other parts of documentation more important.

                  Thanks Andreas. It's great to know it's on the to-do list.

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