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
    • Recent
    • Tags
    • Users
    • Login
    The Maxon SDK Team is currently short staffed due to the winter holidays. No forum support is being provided between 15/12/2025 and 5/1/2026. For details see Maxon SDK 2025 Winter Holidays.

    interface background color

    Scheduled Pinned Locked Moved SDK Help
    3 Posts 0 Posters 299 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 16/05/2014 at 04:44, xxxxxxxx wrote:

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

      ---------
      Hi,

      I am trying to get the interface background color that is defined in interface color preferences.  I found this post https://developers.maxon.net/forum/topic/7856/10182_gui-colors&KW=color&PID=39408#39408 but there was no answer.

      How would I get access to this color value?  Is it stored somewhere in world preferences?

      Ama

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

        On 18/05/2014 at 20:47, xxxxxxxx wrote:

        Hi Ama,
         
        if you're looking for the colours to use inside a GeUserArea()'s DrawMsg() function, then you can use the following:

        this->DrawSetPen(COLOR_BG);
         
        // And here's a few others that might be useful:
         
        this->DrawSetPen(COLOR_EDGELT);
        this->DrawSetPen(COLOR_EDGEDK);
        this->DrawSetPen(COLOR_BG_HIGHLIGHT);
        

        If you're trying to set colour values outside of DrawMsg(), you may not get the returned values until after the InitValues() is called. I'm not entirely sure which colours are affected by this, the docs don't really tell you much on gui colours at all. But anyway, hope that's of some help.
         
        WP.

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

          On 21/05/2014 at 05:41, xxxxxxxx wrote:

          worked perfectly.

          thank you,
          Ama

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