BK_Shorts and TextArea

I’ve been away for a while and am trying to get back into coding some stuff for in-house use - not for resale. I have BK_Shorts installed from quite a few years ago but it still works with my current code.

I don’t use the report generator - I write the actual code to generate the report. I need to print the information entered into a textarea on a Xojo window on a report. I remember your have to parse the text to divide it into individual lines of the desired length but have forgotten exactly how to do that.

If someone has some sample code I would be extremely grateful.

I’m using Xojo 2024 2.1 with MacOS 26.1 Tahoe.

Thanks in advance

This post has some code to split the text.

I believe shorts does that for you. I remember a routine for line breaking in the shorts text area object.

(I no longer have access to Shorts and can’t verify)

There is a class called PrintText when the draw method is called it calls an graphics extension method GetWrapLines which does what you want.