'un-style' clipboard text...

Chipp Walters chipp at chipp.com
Tue Mar 2 01:22:17 EST 2004


I would like to remove any style from the clipboard text. Any idea how to do
this?

New stack, create two fields
Set the text formatting of the 2 fields to 2 different settings.

Say, fld 1 is Arial 14 pt
fld 2 is Courier New 24 pt

Type some text into fld 1. Now cut and paste into fld 2.

I want the text in fld 2 to be Courier New 24 pt *after* the paste. I don't
want to reset any properties for fld 2. Any idea how to do this efficiently?

Currently, my kludge work-around is after paste do:

lock screen
put the vScroll of fld 2 into tV
put fld 2 into t
put t into fld 2
set the vScroll of fld 2 to tV
unlock screen

Seems like there's got to be an easier way?

--Chipp

---------------------
Chipp Walters
Altuit, inc.
http://www.altuit.com
http://www.chipp.com
---------------------




More information about the use-livecode mailing list