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

    Change the EditText BG color?

    SDK Help
    0
    1
    251
    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 24/08/2013 at 12:07, xxxxxxxx wrote:

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

      ---------
      I'm trying to set the background color of an EditText gizmo in a GeDialog plugin to white.
      But there seems to be a layer (or something else) between COLOR_BG, and COLOR_TEXT_EDIT, that I can't find in the docs.

          GroupBegin(0,BFH_LEFT,2,0,"MyTextGroup",0);  
        {                  
          AddEditText(1001, BFH_SCALEFIT,400,15,0);  
          SetDefaultColor(1001, COLOR_TEXT_EDIT, Vector(1,0,0));      //Sets the color of the text  
          SetDefaultColor(1001, COLOR_TEXTFOCUS, Vector(0,1,0));      //Sets the color of the cursor line when typing text  
          SetDefaultColor(1001, COLOR_BGSELECTEDTEXT, Vector(0,0,1)); //Sets the color of the background(only the text bg) when text is selected(highlighted)  
          SetDefaultColor(1001, COLOR_FGSELECTEDTEXT, Vector(0,0,0)); //Sets the color of the text (only the text bg) when it's selected(highlighted)  
          SetDefaultColor(1001, COLOR_TRANS, Vector(0,0,0));          //Sets the background color behind the text(normally it's transparent)  
        
          SetDefaultColor(1001, COLOR_BG, Vector(1,1,1));       //Sets the BG color to white..  
                                                                //But there is still some mysterious grey layer in there!?  
        }  
        GroupEnd();
      

      -ScottA

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