When populating a TextArea with several paragraphs of text from a database, the text runs from the very left edge of the TeaxtArea to the very right edge of the TeaxtArea. Is there a way to have a margin on the left, right, top and bottom?
i think this textarea did not have your feature.
if you have a fix length of chars you could add spaces
Sub Action() Handles Action
Var t As String = EndOfLine.CR + TextArea1.Text + EndOfLine.CR
Var rows() As String = t.Split(EndOfLine.CR)
TextArea1.Text = String.FromArray(rows," "+EndOfLine.CR+" ")
End Sub
or use a htmlviewer
or use a canvas and paint text into with textshape and extern scrollbar
@Emile_Schwarz I see the idea however, I’ll have to do some more reading because, since I just started testing out xojo a week ago, I don’t yet know how to hide the TextArea or how to draw a rectangle and place the text into it.
@MarkusR It does not have a fixed length of characters.
@AlbertoD The second image is from the app that I did in Purebasic. It would be a nice feature for xojo.
@Emile_Schwarz I created a rectangle with a sunken appearance and the placed a TextArea inside the Rectangle. I set the TextArea size to be slightly smaller than the rectangle. It accomplishes the apprearance of margins except on the right side where it is up against the scrollbar. I’m not sure how to get around this.