Page 1 of 2
Why can't I copy/paste into fields using ctrl+v etc
Posted: Sat Sep 06, 2014 11:14 am
by glynypig
I am making my first app for desktop - the only objects I have on my page are textfields and buttons. Strangely I do not seem able to copy and paste within any of the text fields using cmd+c/cmd+v etc (I can manually type and and use delete/backspace). There is no code on the stack at all and little on the card that is significant. In fact, even if I create a whole new card and put a new textfield on it (entirely virgin and code free) it also seems to inherit the same limitation of no copy and paste - of course if I create a whole new stack then I dont have the problem. I am sure it must be an property option I have mis-clicked somewhere - can anybody help me out please with some suggestions? I do have the card in run mode of course - same problem even when the stack is compiled.
Thanks
Re: Why can't I copy/paste into fields using ctrl+v etc
Posted: Sat Sep 06, 2014 4:31 pm
by magice
in stack properties, check if the "can't modify" check box is checked.
Re: Why can't I copy/paste into fields using ctrl+v etc
Posted: Sat Sep 06, 2014 5:25 pm
by glynypig
Thanks magice but sadly it's not that, "can't modify" is unticked - I also tried comparing all properties to another new stack and even with them the same the problem persists - very odd
Re: Why can't I copy/paste into fields using ctrl+v etc
Posted: Sat Sep 06, 2014 6:38 pm
by FourthWorld
Which version are you using, and on which OS version?
Re: Why can't I copy/paste into fields using ctrl+v etc
Posted: Sat Sep 06, 2014 6:50 pm
by glynypig
I'm using version 6.62 on Mac OS X Mavericks - v 7.0 simply crashes on startup for me, even before the IDE loads or the splash - I have reported it to bug report. Tried re-downloading numerous times - conflicts with my system somehow.
Re: Why can't I copy/paste into fields using ctrl+v etc
Posted: Sat Sep 06, 2014 10:54 pm
by dave.kilroy
Hi glynypig
What about the 'lock text' properties of your fields, or in your card script do you have any 'rawkeyDown' or similar handlers that might be interfering with keystrokes?
Re: Why can't I copy/paste into fields using ctrl+v etc
Posted: Sun Sep 07, 2014 4:56 am
by dunbarx
Hi.
Dave is right in this way:
Make a brand new stack with brand new but similar fields, (same OS, LC, of course)and see if the issue occurs there as well. I assume it will not, and that you will find something which is happening in your original stack.
Craig Newman
Re: Why can't I copy/paste into fields using ctrl+v etc
Posted: Sun Sep 07, 2014 12:44 pm
by glynypig
Hi, no I have checked lock text etc - like I said if I create a new stack then the problem is not there - but when I create anew card in my current stack the problem does exist. Even cmd+c will not copy to the clipboard when I try to paste to notepad. There are no scripts on the stack.
I assumed that the only way this could be would be possible (inherited by a new card) would be if the stack itself had a setting or script causing it but all of the properties are standard - checked them and there are no scripts running on the stack.
Re: Why can't I copy/paste into fields using ctrl+v etc
Posted: Sun Sep 07, 2014 2:10 pm
by dave.kilroy
Yes it does sound like it is something in your stack. If I was in your position and I had tried everything i could think of (including frontscripts, behaviours, off-screen and invisible objects) I would do something like the following:
- 1 - Close down LiveCode (make sure you do this to clear stuff out of memory)
2 - Make a 'sacrificial' copy of the stack
3 - Reopen LiveCode and open the 'sacrificial' copy of the stack
4 - Start deleting objects and/or code bit-by-bit, each time saving the stack, closing LiveCode and reopening the stack and then trying to paste again
5 - If you keep on doing this and at some stage things start to work for you then the culprit was the last object/handler that you deleted
6 - If you keep on doing this until the stack is empty (and you saved it, exited LiveCode and then reopened the stack) and a new field still doesn't work for you then it must be something to do with the stack itself and I would consider moving everything over to a new stack
BTW select objects to delete via the ProjectManager in case there are some off-screen or invisible controls
Let us know how you get on...
Dave
Re: Why can't I copy/paste into fields using ctrl+v etc
Posted: Sun Sep 07, 2014 5:00 pm
by jacque
Just to verify, did you assign a menu bar to the stack? A menu without a script would cause that behavior.
Re: Why can't I copy/paste into fields using ctrl+v etc
Posted: Sun Sep 07, 2014 5:05 pm
by glynypig
Thanks for your advice Dave, yes I copied everything over to my new stack and now copy and paste works fine - very odd. Yet, stripping out each of the elements one at a time did not resolve the problem - in fact the problem seemed to persist over the whole of that stack and any new cards made
Re: Why can't I copy/paste into fields using ctrl+v etc
Posted: Sun Sep 07, 2014 5:28 pm
by glynypig
Holy Cow Jacque - yes I did assign a menu without a script yet! So you think that that was the cause of the problem?
Re: Why can't I copy/paste into fields using ctrl+v etc
Posted: Sun Sep 07, 2014 5:42 pm
by dave.kilroy
Nice catch Jacque

Re: Why can't I copy/paste into fields using ctrl+v etc
Posted: Sun Sep 07, 2014 5:51 pm
by dunbarx
Jacque is constantly doing things like this. I have spoken to her about it, but to no avail.
Craig
Re: Why can't I copy/paste into fields using ctrl+v etc
Posted: Sun Sep 07, 2014 6:23 pm
by Klaus