New topic: styled text
<http://forums.realsoftware.com/viewtopic.php?t=38923> Page 1 of 1 [ 1 post ] Previous topic | Next topic Author Message aamato Post subject: styled textPosted: Sat May 07, 2011 9:50 am Joined: Tue Feb 12, 2008 6:12 pm Posts: 21 I find it extremly difficult yet to work with Styled Text, I probably haven't understood the basics. So any help is welcome. And yes, I read the Language reference. I am trying to take content from a 2 column listbox and create a styled text where the first column is in bold and the second column is followed in non bold text (like a paper dictionary). Code: for i = 0 to Listbox1.ListCount-1 texto= ListBox1.Cell(i,0) CreateRTF.TextArea1.StyledText.Bold(CreateRTF.TextArea1.Index,texto.Len)=true CreateRTF.TextArea1.Text=CreateRTF.TextArea1.Text+ texto+" - " define= ListBox1.Cell(i,1) cursor=CreateRTF.TextArea1.Index CreateRTF.TextArea1.text=CreateRTF.TextArea1.text+ define+EndOfLine CreateRTF.TextArea1.StyledText.Bold(cursor,define.len)=false next i I allways get a full bold text. Any suggestions ?? Thanks a lot Top Display posts from previous: All posts1 day7 days2 weeks1 month3 months6 months1 year Sort by AuthorPost timeSubject AscendingDescending Page 1 of 1 [ 1 post ] -- 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]
