From: mfranz Date: Thu, 29 Jan 2009 18:50:16 +0000 (+0000) Subject: textbox: add param that sets first line (last line if negative) X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=c366a445c56024aa82289fb28b89bf2087081402;p=flightgear.git textbox: add param that sets first line (last line if negative) --- diff --git a/src/GUI/dialog.cxx b/src/GUI/dialog.cxx index 33b51b93f..6d710e7e6 100644 --- a/src/GUI/dialog.cxx +++ b/src/GUI/dialog.cxx @@ -798,6 +798,9 @@ FGDialog::makeObject (SGPropertyNode *props, int parentWidth, int parentHeight) obj->setSize(width, height); setupObject(obj, props); setColor(obj, props, FOREGROUND|LABEL); + + int top = props->getIntValue("top-line", 0); + obj->setTopLineInWindow(top < 0 ? unsigned(-1) >> 1 : top); return obj; } else if (type == "select") {