Paste Text and impossibility of changing the foregroundcolor
bonnmike at gmail.com
Wed Jul 21 10:53:21 EDT 2010
I'm assuming the paste is done programmatically, in which case
something like the following should work also.
put the clipboarddata["text"] into the selectedtext
Which will insert the text at the cursor, or overwrite any selected
text in the field.
On Wed, Jul 21, 2010 at 10:42 AM, Michael Kann <mikekann at yahoo.com> wrote:
> Let's say you pasted something into fld 1 and you don't like the font you see. The following script will make fld 1 display the font you have specified for that fld:
> put fld 1 into fld 1
> That's what I've been doing for years. There is probably a better way.
> --- On Wed, 7/21/10, Reinhold Venzl-Schubert <r.venzl-schubert at macbay.de> wrote:
>> From: Reinhold Venzl-Schubert <r.venzl-schubert at macbay.de>
>> Subject: Paste Text and impossibility of changing the foregroundcolor
>> To: use-revolution at lists.runrev.com
>> Date: Wednesday, July 21, 2010, 9:20 AM
>> I needed long a time until I found the reason why I can not
>> change the foregroundcolor (textcolor) of a textfield.
>> When I simply insert text with "paste text" into a
>> textfield, the font of the field will be ignored. Only when
>> I use "paste unformatted" the text get the font that is
>> adjusted in the field properties.
>> Is there any possibility to use unformatted pasting all
>> time as preference to avoid those mistakes?
>> There is no shortcut to use "paste unformatted"
>> It is very circumstantially to change the textfont
>> subsequently. A field that has got pasted one time by an
>> formatted test is like infected by this format. You cannot
>> simple delete the text and paste again unformatted. It does
>> not help. Sometimes it helps to copy the content of a not
>> infected field into it. Very often the only possibility is
>> to delete the whole card and create a new one.
>> Do anybody knows some code to fix this nervy thing?
>> use-revolution mailing list
>> use-revolution at lists.runrev.com
>> Please visit this url to subscribe, unsubscribe and manage
>> your subscription preferences:
> use-revolution mailing list
> use-revolution at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
More information about the Use-livecode