Hello,
I would like to implement a textarea control. It’s a box where you can write text in. However, I want only a few features for now:
-Not editable by the user of the GUI, only for displaying text for now
-Has methods append and appendLine which lets you append text after the old one or in a new line
-You can set the size of it, but the user cannot drag it bigger or smaller
-You can turn on horizontal scrolling: If it is on, it will scroll the text horizontally and make a linebreak only with appendLine, otherwise it will make a linebreak when the current line is longer than the horizontal end of the textarea
-It adds a vertical scrollbar when the text does not fit in the height anymore
Now I have no experience with GUI programming. So I am asking for tips how I can implement this in Nifty. What classes/methods can I use to guarantee those features?
I know how to do control definitions, I am asking for implementation specifics for this kind of textarea.