New topic: keeping track of text styles
<http://forums.realsoftware.com/viewtopic.php?t=45799> Page 1 of 1 [ 2 posts ] Previous topic | Next topic Author Message pbesong Post subject: keeping track of text stylesPosted: Sat Nov 03, 2012 11:38 pm Joined: Fri Dec 09, 2005 6:25 pm Posts: 334 In my app I've only been able to support text styles on a row by row basis in my listbox, that is if the text was set to be bold, the whole row of text in the listbox had to be bold, not an individual character. I would like to be able to make individual words bold or italic, for example, but I'm not sure about certain things. I use a TextArea to set the text, then save that text to the listBox for each individual entry. It's easy because I have one column in the listbox (hidden) for the style whether it's bold, italic, etc. My question is if the text is bold for one word, how would I be able to save that styling in the listbox when I save that entry so I can set that styling when I export the text to a file? It could be a mess if people wanted to change the styling and such. So basically I'm looking for a good strategy to keep track of individual styled words. Any ideas? Top pbesong Post subject: Re: keeping track of text stylesPosted: Sat Nov 03, 2012 11:45 pm Joined: Fri Dec 09, 2005 6:25 pm Posts: 334 just discovered the StyledText class. now i have to figure out how it works. It looks like StyleRun is something I'm going to need to use. Top Display posts from previous: All posts1 day7 days2 weeks1 month3 months6 months1 year Sort by AuthorPost timeSubject AscendingDescending Page 1 of 1 [ 2 posts ] -- Over 1500 classes with 29000 functions in one REALbasic plug-in collection. The Monkeybread Software Realbasic Plugin v9.3. http://www.monkeybreadsoftware.de/realbasic/plugins.shtml [email protected]
