From 5299ab030438fc46c349f7ad5cd5c84b949f36de Mon Sep 17 00:00:00 2001 From: mfranz Date: Wed, 9 Nov 2005 18:23:55 +0000 Subject: [PATCH] distinguish editable and non editable textboxes; the former will usually be colored like input fields, while the others will be colored like normal text --- src/GUI/dialog.cxx | 2 ++ 1 file changed, 2 insertions(+) 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)); -- 2.39.5