I have an application with a totally custom UI which I draw myself and that doesn't use any of the standard application UI components. I have text stored in a resource file which I want to read in and have scrollable on the screen.
My question is, are there any components which will add you in creating scrollable text with a custom UI? I haven't been able to find any yet and am not really sure where to look, so I was just going to use my own idea. This would be to read the text into a buffer, then go through the buffer word by word and check how much space the word takes up in pixels given the current font. This way I would know when to wrap the text and I would also know the font height so I would know how many lines I could display on the screen. This seems like an awful lot of work though and I figure someone else out there already has a method to do what I want to do.