Change the EditText BG color?

  • 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.

        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!?  


Log in to reply