textbox: add <top-line> param that sets first line (last line if negative)
This commit is contained in:
parent
48f22c330a
commit
c366a445c5
1 changed files with 3 additions and 0 deletions
|
@ -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") {
|
||||
|
|
Loading…
Add table
Reference in a new issue