Hi Charles,

Did you see my reply to your previous e-mail? Try setting the font of the text 
to one different from the font of the field. E.g. set the font of the field to 
Arial and the font of char 1 to -1 of the field to Time New Roman. Use 

set the clipboardData["rtf"] to the rtfText of field "statements"

or

set the clipboardData["html"] to the htmlText of field "statements"

--
Best regards,

Mark Schonewille

Economy-x-Talk Consulting and Software Engineering
Homepage: http://economy-x-talk.com
Twitter: http://twitter.com/xtalkprogrammer
KvK: 50277553

We will have room for new projects after 1 June. Contact me now and be first in 
line.

On 21 apr 2012, at 05:27, Charles Szasz wrote:

> I am working on an app that the user keeps open on the desktop that can take 
> text and place it on the clipboard and paste into a word processor's 
> document.  I set up an option menu in my app that allows the user to set the 
> font property in a text field. I have another button that allow the user to 
> paste the text into a document. However, when I test the app on a Mac and 
> paste into a Pages document, I do not get the font that was selected in the 
> button. 
> This is the code I have in my copy button:
> 
> set the clipboardData["rtf"] to the rtfText of field "statements"
> 
>   copy character 1 to -1 of field "statements"
> 
> Despite setting the font in the text field as Palatino I keep getting Times 
> New Roman when it is pasted into the Pages document!  How can I correct this?
> 
> Charles Szasz
> csz...@mac.com
> 


_______________________________________________
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Reply via email to