I have two eto.Forms.TextAreas that I would like to vertically scroll simultaneously. I can guarantee that they will always have the same number of lines. I put them in a TableLayout, inside a Scrollable, inside the main form layout (another table).
I cannot figure out how to make the TextAreas not kick in their own scroll bars. Is there a ‘proper’ way to accomplish this?
The best compromise so far is to set the height based on font.LineHeight * number of lines * some factor greater than 1, and make sure the Scrollable.ExpandContentHeight is True. I’m not sure what LineHeight of a font represents (pixels ?), and experimenting suggests 1.4 is my magic factor to prevent TextArea scrollbars from appearing, but not leaving too much space below the last line in the TextAreas. It seems like I am going about this incorrectly, but haven’t found anything else yet (general googling or here), thus starting the topic.
Thanks.