Bonjour André,

Not tested but should work (in the script of the 'Paste' button) :

on mouseUp
  if clipBoardData["text"] <> empty then
    lock screen
    select text of fld 2
    paste
    set the textFont of char 1 to -1 of fld 2 to empty
    unlock screen
  end if
end mouseUp

Le 24 août 07 à 14:16, André.Bisseret a écrit :

I have a stack 1, including a field (field1) with lines of text.
The textFont of this field is « verdana »
The textSize of this field is « 10 »

and a stack 2 including an empty field (field2)
The textFont of this field is « Times »
The textSize of this field is « 12 »

I want to copy such line of field 1 in order to paste it in field 2

If I proceed manually (using the Edit menu or ctrl C and ctrl V) all is running as expected : the copied line of field 1 (in Verdana 10) is paste in Times 12 in field 2.

But  when scripting, if, in stack 1, I
-       put such line of field 1 in lVar
-       set the clipBoardData[« text »] to lVar
-       go to stack 2
-        click a button whose mouseUp’ script is « paste »

then, the text is pasted in Verdana (it keeps the font of field 1) :-(( and more surprising, the textSize is 12 (the textSize expected, those of field 2).

What am I doing wrong ?

By the way, is it possible to change Font, size, style etc. of text in the clipBoard ?

Thanks a lot for any help

Best regards from Grenoble
André

Best regards from Paris,
Eric Chatonet.
----------------------------------------------------------------
Plugins and tutorials for Revolution: http://www.sosmartsoftware.com/
Email: [EMAIL PROTECTED]/
----------------------------------------------------------------


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

Reply via email to