The selectedText for controls without focus

Richard Gaskin ambassador at
Tue Feb 28 11:05:36 EST 2017

Bob Sneidar wrote:

 > On Feb 24, 2017, at 22:09 , Richard Gaskin wrote:
 >> on rawkeydown k
 >>   if k = 99 then
 >>      if the commandKey is "down" then copy
 >>   end if
 >> end rawkeydown
 > For that matter I could just check the status of the "state" property
 > (view | new | edit) to allow/disallow editing. Not saying there are
 > not workarounds. I just think that LC should work like virtually
 > every other forms based app I've ever used, where being editable is
 > not a prerequisite for copying text.

The purpose of that script is not to allow copying, but to disallow 
cutting and pasting.

LC is a programming toolkit, and a very flexible one, with a wider range 
of GUI messages than most other scripting languages. The price of 
flexibility is the need to write code now and then.

  Richard Gaskin
  Fourth World Systems
  Software Design and Development for the Desktop, Mobile, and the Web
  Ambassador at      

More information about the use-livecode mailing list