Copying data between fields

Glen Bojsza gbojsza at mac.com
Sun Apr 4 21:47:11 EDT 2004


I have tried looping through the lines and setting the textcolor (this 
works fine) but I'm trying to figure out how the Edit Copy Objects and 
Edit Paste Objects works...this does exactly what I want.

But how can I script those menu commands?


On Sunday, April 4, 2004, at 07:32 PM, Dar Scott wrote:

>
> On Sunday, April 4, 2004, at 12:32 PM, Glen Bojsza wrote:
>
>> I have a list field which has a couple of lines that I have "grayed"  
>> out while the rest are normal. I want to copy the lines from one 
>> field to another field and be able to keep the format of the lines 
>> that are "grayed" out.
>
> Look at the htmlText property of the field and see if that looks 
> parse-able and usable.  If you can pull out the html for that section 
> you can then set the htmlText of the other field with that.  Watch for 
> possibly going in and out of grey.
>
> Another approach would be to go through every character, look at its 
> color and then copy that and then the style, font etc. over.
>
> Dar Scott
>
> _______________________________________________
> use-revolution mailing list
> use-revolution at lists.runrev.com
> http://lists.runrev.com/mailman/listinfo/use-revolution
>



More information about the use-livecode mailing list