On 10/09/2016 at 14:41, xxxxxxxx wrote:
GeDialog Example:
//This is how to set the various color options in an EditText gizmo
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)
}
GroupEnd();
-ScottA