AlexanderBB
Well-known Member
- Joined
- Jul 1, 2009
- Messages
- 2,072
- Office Version
- 2019
- 2010
- Platform
- Windows
I'm attempting to format text into a List control, to match how it's handled when a label is set to Autosize and Wordwrap On.
I've got a theory, using the label as template and List.AddItem for each line that fits.
Then removing that from the source string and repeating until finished.
To determine what fits each line I'm thinking to test space-delimited bits of text against their label autosize value.
But perhaps there's a cleverer way (API or somesuch that I don't know about)
Or can someone more knowledge can suggest a better method to achieve this.
Thanks.
I've got a theory, using the label as template and List.AddItem for each line that fits.
Then removing that from the source string and repeating until finished.
To determine what fits each line I'm thinking to test space-delimited bits of text against their label autosize value.
But perhaps there's a cleverer way (API or somesuch that I don't know about)
Or can someone more knowledge can suggest a better method to achieve this.
Thanks.