Activating tabs in a liveCode field

BNig bernd.niggemann at uni-wh.de
Sat Mar 5 07:43:21 EST 2016


Hi Francis,

if you convert the word document to a RTF document then you could drop it
onto a field from the finder.

The field would have this script

---------------------------------------------
on dragDrop
   put the dragData["files"] into tFiles
   put line 1 of tFiles into tAFile 
   set the itemDelimiter to "."
   if item - 1 of tAFile is "rtf" then
      put url ("binfile:" & tAFile) into tRTF
      set the rtftext of me to tRTF
   end if
end dragDrop
--------------------------------------------

it even respects the tab positioning.
Tested with a simple 2 line 3 columns text, for more complex documents it
might differ.

Note as of LC8 DP8 onwards the field object does not accept dragDrop from
the Finder on MacOSX. Bug 17072

Kind regards
Bernd



--
View this message in context: http://runtime-revolution.278305.n4.nabble.com/Activating-tabs-in-a-liveCode-field-tp4702048p4702050.html
Sent from the Revolution - User mailing list archive at Nabble.com.




More information about the use-livecode mailing list