New topic: Copy a styled text and paste just the format?
<http://forums.realsoftware.com/viewtopic.php?t=34184> Page 1 of 1 [ 2 posts ] Previous topic | Next topic Author Message derybero Post subject: Copy a styled text and paste just the format?Posted: Tue Jun 08, 2010 11:09 pm Joined: Sun Oct 04, 2009 9:40 pm Posts: 32 Location: Santa Cruz de la Sierra, Bolivia My main goal is to copy the style of a text, then push/toggle the "Copy style" bevel button to activate a system where any text I select will have the formatting of that I copied first. Is kind of like what format painter does in the Microsoft Word environment. Any help? I will appreciate it. _________________ RB2009r4, Beginner, 32-bit Windows XP SP3, AMD Quad Core, 4GB RAM, Nvidia 9800 GT, 1TB HD, 23" Screen, Firefox Browser Advanced Web Designer, Video and Image Editor, Build/Fix and Optimize PC's Facebook group "I'm a REALbasic Developer" We need more RB video tutorials like this one Top DaveS Post subject: Re: Copy a styled text and paste just the format?Posted: Wed Jun 09, 2010 12:28 am Joined: Sun Aug 05, 2007 10:46 am Posts: 2413 Location: San Diego, CA You will have to implement your own copy/paste routine in order to accomplish this. You will have to scan the StyleRuns of the selected text to determine the bold/italic/font/color etc... in your copy routine and then apply them to whatever in your paste routine. Standard Copy/Paste will take all the data elements which would be both text and style information. _________________ Dave Sisemore MacPro, OSX 10.6.2 RB2009r5.1 Note : I am not interested in any solutions that involve custom Plug-ins of any kind 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]
