maintaining text formatting during copy/paste

dunbarx at aol.com dunbarx at aol.com
Tue May 26 00:36:58 EDT 2015


Richard.


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


Craig



-----Original Message-----
From: Dr. Hawkins <dochawk at gmail.com>
To: How to use LiveCode <use-livecode at lists.runrev.com>
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
use-livecode at lists.runrev.com
Please visit this url to subscribe,
unsubscribe and manage your subscription
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

 



More information about the use-livecode mailing list