From: mfranz Date: Wed, 9 Nov 2005 18:23:55 +0000 (+0000) Subject: distinguish editable and non editable textboxes; the former will usually X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=5299ab030438fc46c349f7ad5cd5c84b949f36de;p=flightgear.git distinguish editable and non editable textboxes; the former will usually be colored like input fields, while the others will be colored like normal text --- diff --git a/src/GUI/dialog.cxx b/src/GUI/dialog.cxx index 4fcabba5d..1b9b0e95f 100644 --- a/src/GUI/dialog.cxx +++ b/src/GUI/dialog.cxx @@ -759,6 +759,8 @@ FGDialog::setColor(puObject * object, SGPropertyNode * props, int which) string type = props->getName(); if (type == "") type = "dialog"; + if (type == "textbox" && props->getBoolValue("editable")) + type += "-editable"; FGColor *c = new FGColor(_gui->getColor("background")); c->merge(_gui->getColor(type));