Richard.

Am I misunderstanding, in that the htmlText would maintain text styles across 
those actions?


Craig



-----Original Message-----
From: Dr. Hawkins <[email protected]>
To: How to use LiveCode <[email protected]>
Sent: Mon, May 25, 2015 2:22 pm
Subject: maintaining text formatting during copy/paste


I go through this battle every few months . . .

At the moment, making my
forms, I am pasting text from the official pdfs I
have to create into label
fields and then clearing that information.

I have a maintenance routine that
sets the fontSize of these fields to the
fntSiz of those fields when set.  Once
again, though, I"m losing formatting
on copy paste, possibly because the text
had kept some of its formatting.

I'm toying with modifying that loop so that
it looks to see if the
formattedText of a field has a font, and if so, setting
the fntNam and
fntSiz  of the field to the values of the text, and then
clearing the text
(and possibly substituting/manipulating for certain fonts).  
The loop
would then set the textSize and textFont of any label field having
these
attributes to fntNam and fntSiz.

Does this make sense?  will it
work?
-- 
Dr. Richard E. Hawkins, Esq.
(702)
508-8462
_______________________________________________
use-livecode mailing
list
[email protected]
Please visit this url to subscribe,
unsubscribe and manage your subscription
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

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

Reply via email to