Stopping the User from Adding/Removing Lines to a field

Ken Ray kray at sonsothunder.com
Sat Jun 28 17:15:00 EDT 2003


Igor,

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.

Ken Ray
Sons of Thunder Software
Email: kray at sonsothunder.com
Web Site: http://www.sonsothunder.com/


> From:     Igor Couto <igor at pixelmedia.com.au>
> Reply-To: use-revolution at lists.runrev.com
> Date: Sat, 28 Jun 2003 15:38:51 +1000
> To:     use-revolution at lists.runrev.com
> Subject: Stopping the User from Adding/Removing Lines to a field
> 
> Hi all!
> 
> Would anyone know of an easy way to stop a user from removing or adding
> lines to a list field?
> 
> PROBLEM:
> I have a list field with entries that the user should be able to
> CHANGE. The user MUST NOT be able to, however, delete or add lines to
> the field. I thought of using a TABLE field, however my users will
> enter international characters (Esperanto, Icelandic, etc.) that
> Revolution currently does not seem to support in the tables...
> 
> It is easy enough to trap 'enters', 'returns', 'deletes' (forward and
> back). However, there are some functions that the user should be able
> to use that can still wreak havoc with the lines - namely, CUT and
> PASTE... This is all getting SOOOOOO complicated, for such a small
> limitation I want to implement, that I feel I must have missed a
> checkbox somewhere that will simply allow me to do it all!
> 
> Can anyone help?
> 
> --
> Igor de Oliveira Couto
> ----------------------------------
> igor at pixelmedia.com.au
> ----------------------------------
> 
> _______________________________________________
> 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