]> git.mxchange.org Git - flightgear.git/commitdiff
distinguish editable and non editable textboxes; the former will usually
authormfranz <mfranz>
Wed, 9 Nov 2005 18:23:55 +0000 (18:23 +0000)
committermfranz <mfranz>
Wed, 9 Nov 2005 18:23:55 +0000 (18:23 +0000)
be colored like input fields, while the others will be colored like normal
text

src/GUI/dialog.cxx

index 4fcabba5d5897fadb106c9482d5d4baf88ccd765..1b9b0e95f642210fc4ceafbdb945c4570324c314 100644 (file)
@@ -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));