Copying text in a Standalone app
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller
Copying text in a Standalone app
I added an edit menu to my app that has a Copy option. How I do I make it possible to copy the text in an existing text field once I create a Standalone?
-
- VIP Livecode Opensource Backer
- Posts: 10045
- Joined: Sat Apr 08, 2006 7:05 am
- Contact:
Re: Copying text in a Standalone app
Yep - see the "copy" command in the Dictionary.
Richard Gaskin
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn
Re: Copying text in a Standalone app
Yes, that much I had already figured out. I should have phrased my question, "what is the preferred way to handle the issue."FourthWorld wrote:Yep - see the "copy" command in the Dictionary.
I had coded my field as follows:
Code: Select all
on commandKeyDown pKey
if pKey is "c" then
copy
else
pass commandKeyDown
end if
end commandKeyDown
-
- VIP Livecode Opensource Backer
- Posts: 10045
- Joined: Sat Apr 08, 2006 7:05 am
- Contact:
Re: Copying text in a Standalone app
If you include a Command key shortcut in the menu, the menu's menuPick handler will cover it; no need for also trapping CommandKeyDown.
Richard Gaskin
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn