1
0
Fork 0

textbox: add <top-line> param that sets first line (last line if negative)

This commit is contained in:
mfranz 2009-01-29 18:50:16 +00:00 committed by Tim Moore
parent 48f22c330a
commit c366a445c5

View file

@ -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") {