diff --git a/docs-mini/README.gui b/docs-mini/README.gui index 1cc27b937..61542e469 100644 --- a/docs-mini/README.gui +++ b/docs-mini/README.gui @@ -117,10 +117,10 @@ properties, though they will ignore any that are not relevant: the width of the parent container. color - a subgroup to specify the dialogs color: - red - specify the red color compnent of the color scheme. - green - specify the green color compnent of the color scheme. - blue - specify the blue color compnent of the color scheme. - alpha - specify the alpha color compnent of the color scheme. + red - specify the red color component of the color scheme. + green - specify the green color component of the color scheme. + blue - specify the blue color component of the color scheme. + alpha - specify the alpha color component of the color scheme. legend - the text legend to display in the object. @@ -231,6 +231,14 @@ Example: + + 10 + 200 + + %-0.4f m + /foo/altitude + + checkbox -------- @@ -382,6 +390,7 @@ property tree, like: /gui/path-to-text-node/contents 15 + false true diff --git a/src/GUI/dialog.cxx b/src/GUI/dialog.cxx index f85efb5e4..e67f972ea 100644 --- a/src/GUI/dialog.cxx +++ b/src/GUI/dialog.cxx @@ -496,9 +496,10 @@ FGDialog::makeObject (SGPropertyNode * props, int parentWidth, int parentHeight) return dial; } else if (type == "textbox") { int slider_width = props->getIntValue("slider", parentHeight); + int wrap = props->getBoolValue("wrap", true)==true; if (slider_width==0) slider_width=20; puLargeInput * puTextBox = - new puLargeInput(x, y, x+width, x+height, 2, slider_width); + new puLargeInput(x, y, x+width, x+height, 2, slider_width, wrap); if (props->hasValue("editable")) { if (props->getBoolValue("editable")==false)