In message bodies I replace all "\r"'s with "<br>"'s. They both must place a \r (maybe \n too but I don't check for those) when the text reaches the edge of the textarea to keep the text from overflowing where "modern" browsers handle the word wrap automatically without introducing new return characters.
Just guessing though. I feel like that's a simple hackish way I would do it if I was creating a text area in QB.
Something like:
IF cursor.x > textArea.width THEN
textArea.text = textArea.text + "\r"
cursor.x = textArea.x
cursor.y = cursor.y + 1
END IF
-
- I'm guessing they both handle line wrapping the same way...- Erik_, Wed Apr 13 2022 6:18pm
"Forces act when not restrained" - Puckdropper