Stopping the User from Adding/Removing Lines to a field

Scott Slaugh xslaugh at hotmail.com
Sat Jun 28 23:00:00 EDT 2003


> >> How about using an actual list field, and only allow changing when the
> >> user
> >> double-clicks on a line? You could bring up an "ask" dialog allowing
> >> them to
> >> change the value of the line. This would prevent all the
> >> clipboard/keydown
> >> issues completely.

You could also set up some handlers in the field to trap the keys.  Make it 
so that when the user clicks on the field, the locktext of the field is set 
to false, so they can type in it.  Then put a handler in the field for each 
command you want to trap, such as the arrowkey.  Put something like this:
on arrowkey
if the locktext of me is true then pass arrowkey
end arrowkey

Scott Slaugh

> >
> > Yep, that could have done the trick, if my users were not going to be
> > using UNICODE text (international characters).

_________________________________________________________________
Protect your PC - get McAfee.com VirusScan Online  
http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963




More information about the use-livecode mailing list