How to initiate copy/paste from menu in projector?

I have a projector that uses a MenuMember to create a
standard menu across the top i.e.:
FILE EDIT HELP
I have several text, (not field), but text members that are
editable where the user inputs text information. Pretty basic and
simple. If they use the keyboard commands for Copy, Paste, Select
All & Cut those commands work fine in the text field and behave
as you would normally expect.
My question is, under my EDIT menu, I want to have the normal
CUT,COPY,PASTE,SELECT ALL selections that you would expect to find.
Right now I have no behaviors attached to them in my menuMember so
they don't do anything if you go to EDIT -> PASTE.
I have been looking for a handler to attach to the menuMember
that would perform those functions. For example my menuMember text
would look like this:
menu: File
Save/S | SaveHandler
Quit | quit
menu: Edit
Copy/C | CopyHandler
Paste/V | PasteHandler
Select All/A | SelectAllHandler
Cut/X | CutHandler
So far I haven't been able to figure out any handler that
would perform those functions upon the text field that has the
focus. Oh sure, the manual keyboard equivalents WILL work, but most
people also expect to see those choices in the edit menu as well
and expect them to behave the same way.
Any ideas on how to accomplish this?
Thanks,
Dan

Hi,
There's a 'publish' settings (or maybe a movie setting)
called "editShortcutsenabled' - if true, command-c (etc) will work.
There might be some tricky way of evoking these functions with
Lingo (not sure if DMX2004 has some new lingo), but you can do it
manually using Valentin's free clipboard xtra (
http://staff.dasdeck.de/valentin/xtras/clipboard/)
. For example, try these functions
on SelectAll()
whichSprite = the keyBoardFocusSprite
if whichSprite > 0 then
whichMember = sprite(whichSprite).member
if voidP(whichMember) then exit
mType = whichMember.type
case (mType) of
#field, #text:
whichMember.selection = [0, whichMember.text.length]
otherwise
put "Dont know how to 'select all' in the case of a"
&& mType
end case
end if
end
on CopySelection ()
whichSprite = the keyBoardFocusSprite
if whichSprite > 0 then
whichMember = sprite(whichSprite).member
if voidP(whichMember) then exit
mType = whichMember.type
case (mType) of
#field, #text:
s = whichMember.selection
txt = whichMember.text.char[s[1]..s[2]]
clipSetData("TEXT", txt)
otherwise
put "Dont know how to copy from a" && mType
end case
end if
end
on CutSelection ()
whichSprite = the keyBoardFocusSprite
if whichSprite > 0 then
whichMember = sprite(whichSprite).member
if voidP(whichMember) then exit
mType = whichMember.type
case (mType) of
#field, #text:
s = whichMember.selection
txt = whichMember.text.char[s[1]..s[2]]
clipSetData("TEXT", txt)
oldtext = whichMember.text
if s[1] > 0 then
newtext = oldtext.char[1..s[1]]
newtext = newtext & oldtext.char[s[2]..oldtext.length]
else
if s[2] = 0 then
newtext = oldtext
else if s[2] = oldtext.length then
newtext = ""
else
newtext = oldtext.char[s[2]..oldtext.length]
end if
end if
whichMember.text = newtext
otherwise
put "Dont know how to copy from a" && mType
end case
end if
end
on PasteClipboard ()
whichSprite = the keyBoardFocusSprite
if whichSprite > 0 then
whichMember = sprite(whichSprite).member
if voidP(whichMember) then exit
mType = whichMember.type
case (mType) of
#field, #text:
txt = clipGetData("TEXT")
InsertText(whichMember, txt)
otherwise
put "Dont know how to paste into a" && mType
end case
else
put "what do I paste into?"
end if
end
on InsertText (inMember, txt)
s = inMember.selection
oldtext = inMember.text
if s[1] > 0 then
newtext = oldtext.char[1..s[1]]
newtext = newtext & txt
newtext = newtext & oldtext.char[s[2]..oldtext.length]
else
if s[2] = 0 then
newtext = txt & oldtext
else if s[2] = oldtext.length then
newtext = txt
else
newtext = txt & oldtext.char[s[2]..oldtext.length]
end if
end if
inMember.text = newtext
end

Similar Messages

  • How can i Copy paste from e-mail to Notebook or textbook

    How can i Copy pasta from some Content of e-mail to the notepad or textbook or word?

    hold your finger down in the body of the mail - the part you want to copy. a blue box will comeup and offer to 'select/select all' or something like that. choose the appropriate choice. If you only want part of it that bubble will have two handles that allow you to drag out the selection box.
    then hold your finger down again and another bubble will come up offering to cut/copy the words. choose copy
    then navigate to your notes app (not sure about the textbook, depends on whether or not it support it) and hold your finger down in an empty text area. you'll get another blue bubble offering to paste it. choose that and the words should appear. then save as appropriate.

  • How do I copy & paste from an email to another web site?

    How do I copy & paste from an email to another web site?

    Hello, not quite sure what it is you want to do.
    In Mail you can copy something by highlighting it & CMD+c, or Mail>Edit>Copy, but whether you can paste it to a website, not sure, but you could say paste in in a Reply here...
    Re: Grey Screen with spinning gear
    reply from duwatucan in Mac mini - View the full discussion
    Congratulations, your post has solved duwatucan's question.
    Learn more about the Apple Support Communities Reputation System
    Did this help? Go to the message, sign in, and reply
    Start a new discussion in the same community

  • How can I copy/paste from mail without format?

    This has been an annoying feature since I upgraded, finally bugged me enough to ask for help.
    I receive a weekly newsletter that is formatted into paragraphs with multiple columns. I usually copy parts that I think my son would be interested in, then email it to him. The problem is, when I paste it into mail it retains its formatting, including the shrunken width of the original columns. When I click the text a black, rectangular box appears around it, which I have no control over.
    This also happens in Safari when I copy news articles to pass on. It is extremely annoying, and I can't figure out a way to stop Lion from doing that. Switching over to text (non-html) is not an option, since I then lose the hypertext links included in the articles, as well as the images.

    Edit > Paste and Match Style. This matches the format in the text window you are pasting into, rather than the format you are copying from.

  • 0 down vote favorite share [fb] share [tw]        How to hide cut/copy/paste/Replace- menu on the UIWebView when it is being displayed over the keyboard.  Detail: I am having a HTML from, having text box, displayed using UIWebView. If user types in text b

    How to hide cut/copy/paste/Replace… menu on the UIWebView when it is being displayed over the keyboard.
    Detail: I am having a HTML from, having text box, displayed using UIWebView. If user types in text box it shows the keyboard. Now If user tap and hold on text box it shows a popup menu. Now while keyboard and pop up are being displayed user scrolls the view. At this time it shows pop up over the keyboard which I need to hide.
    I tried setMenuVisible of UIMenuController when popup rect and keyboard rect intersects each other on viewDidScroll but it didn't help me.
    Any clues will help a lot.
    Thanks.

    You are more likely to get an answer if you post programming problems to the Developer forum. This forum is intended for normal user level problems.

  • How do i copy content from one hard rive to another through my macbook air? the copy and paste option doesn't work

    How do i copy content from one hard rive to another through my macbook air? the copy and paste option doesn't work

    It's because of the extension of the hard drive is a Windows extension ( most likely MSDOS or Ex-FAT), meaning you can only read but not write. If there are no important files (or you can copy the whole thing to your computer/mac) you can just reformat the hard drive and change the extension to NTFS (readable and writable on both windows and mac) or Mac OS Extended (readable and writable on Mac, readable on windows).
    Go to DISK UTILITY
    Choose the Hard Disk you intended
    ERASE
    You can choose either
              (I personally prefer this one, you know just in case)

  • IDSCS5.5 How to determine if a pageitem was copy/pasted from Illustrator

    Hi,
    My flow is as follows:
    - Open document in IndesignServer
    - (XML)Tag every pageitem with our custom IndesignServer plugin (c++ SDK)
    - If pageItem is a group, tag every member separately
    - save/close the document
    My problem is:
    - If pageitem was copy/pasted from Illustrator and pageitem has a gradient fill => IndesignServer crashes while tagging.
    - Copy/pasted illustrator items with plain colorfills work fine.
    Note that:
    - Copy pasted pageitems from illustrator with a gradient fill are considerated as group in Indesign.
    - The gradient fill of Illustrator is not recognized as such in Indesign ( I could only test with Illustrator CS4).
    - The lack of color information in that situation is not enough to consider the object as "from Illustrator".
    My question:
    - How can i determine if the origin of the pageitem is Illustrator? (I have no control on the creation of the document).
    I know this is a hard one...
    Thanks in advance for any usefull input!
    Bart Devos.

    Hi,
    My flow is as follows:
    - Open document in IndesignServer
    - (XML)Tag every pageitem with our custom IndesignServer plugin (c++ SDK)
    - If pageItem is a group, tag every member separately
    - save/close the document
    My problem is:
    - If pageitem was copy/pasted from Illustrator and pageitem has a gradient fill => IndesignServer crashes while tagging.
    - Copy/pasted illustrator items with plain colorfills work fine.
    Note that:
    - Copy pasted pageitems from illustrator with a gradient fill are considerated as group in Indesign.
    - The gradient fill of Illustrator is not recognized as such in Indesign ( I could only test with Illustrator CS4).
    - The lack of color information in that situation is not enough to consider the object as "from Illustrator".
    My question:
    - How can i determine if the origin of the pageitem is Illustrator? (I have no control on the creation of the document).
    I know this is a hard one...
    Thanks in advance for any usefull input!
    Bart Devos.

  • How to find the folder (EBS_R12) in OEL 5 after copy/paste from Windows 7 ?

    Folks,
    Hello. I have just installed Oracle Linux 5 as Guest OS on the top of VMPlayer. Host OS is Windows 7.
    I downloaded Oracle E-Business Suite R12 from edelivery into Windows 7 in a folder(EBS_R12) on my LapTop screen.
    In order to install EBS R12 into Oracle Linux 5, I copy/paste the folder EBS_R12 into Oracle Linux 5 screen. The file size is about 50GB. After coply/paste is completed successfully, I cannot find where is the folder (EBS_R12) in the Guest OS Oracle Linux 5.
    Can any folks tell me where is the folder (EBS_R12) in Oracle Linux 5 after copy/paste from Windows 7 ?

    Hi,
    After coply/paste is completed successfully, I cannot find where is the folder (EBS_R12) in the Guest OS Oracle Linux 5.Was the copy/paste successful.
    If yes then you can do the following
    #find / -name EBS_R12 -type d -print
    (Assuming you copied the folder "EBS_R12" , But not its contents).
    Thanks

  • How to import style from mx.DataGrid into my DataGridExt (copy-paste from mx.DataGrid)

    Ok, I managed to create the DataGridExt (copy-paste from mx.DataGrid). Don't ask me why I did this, it's a long story believe me.
    But it is styleless. There's no skin set and that is what I expected.
    The thing is, is there a nice/magical way to tell the DataGrid skin to be applied to DataGridExt?
    Thanks for attention.

    In case the question was not clear:
    Is there a way to have all styles of mx.DataGrid applied to my custom control called DataGridExt?

  • How can I copy text from one card to another while creating cards using Iphoto?

    I created two cards with different pictures using Iphoto on Macnotebook. 
    I want to use the same text message.
    How can I copy text from one card to another?

    select the text and copy (edit menu ==> copy) tehn gpo to the next card and paste
    LN

  • How do I copy text from one layer to  another?

    I have Googled this but not a single answer seems to work.
    I am using Photoshop CS4 on OS X 10.6.7.
    OK, so  I  have a layer that  has some text in it.  I would like to  be able to  simply copy that  text  from one layer  to  another, but this seems to  be impossible as the Edit Paste menu item is grayed out after I have copied it in to the clipboard.  I can paste it into  the SAME layer, but not into another layer.
    This is how I am trying to  do  this.
    In the layer  with the text, click on the "T" icon to  the left.
    Click on the text, in the layer that I  want to  copy. 
    I select the text (either  by  clicking and dragging or pressing Command-A).
    Next I press Command-C.
    Then I  click on the layer In the Layer Panel) where I want to  paste the text.
    Pressing Command-V is impossible because the Edit-Paste menu option is grayed out!!!!
    WHY??????
    Perhaps more importantly, HOW do I copy text  from one layer to  another?

    First thing you can simply right click on the Text Layer and choose Duplicate Layer.  But that will create a new Text Lay
    er identical to the one you have.
    To answer your question in your case....  Create the Text Layer.   Make a New Layer.  Or have the layer you want to paste into visible.
    Highlight the text layer in the Layer Palette and Ctrl+Click (Win) Cmd+Click(Mac) so that you see marching ants walking around your text.
    Edit>Copy.
    Then highlight your Layer you want to paste into and hit Edit>Paste or Cmd+V / Ctrl+V.

  • How can I copy/paste without copying the formatting?

    How can I copy/paste without copying the formatting? For example, if I copy a sentence from a website and paste it on text editing program, it copies all the formatting as well. How can I turn that off?

    There is an app called "No Formatting" in the App Store. It is simple and works perfectly - it strips formatting from paste (Ctr-V). I needed it for Word and Excel, which don't have keyboard shortcuts for this. It can be toggled on and off from the Menu Bar.

  • I'm composing an e-mail, and I copy/paste from a web page.

    Let's suppose I copy / paste from a web document. For the sake of argument I'm using Mail.  A black box appears around the pasted part (with a "X" in the corner).
    But, if I do a second paste, the new text is always inside the old box, therefore screwing up the indent.
    I can't get the curser to start outside the box. How can I get rid of the box while composing?
    Yes, the box disappears when I click outside it, but re-appears if I go for a new line below it.
    Here's an example of how it looks.
    #1. The fox.
           The quick brown fox jumped over the i-mac.
            #2.  I'm frustrated that I can't paste or type where the first line started, indent wise.
    Once the curser is after the word i-mac, and I try to move it down, the next line always goes to the indent of "The" and not #1.

    I take you are trying to write an email within Safari, try this open Safari and click on the Safari menu and select reset Safari. 

  • How can i copy apps from one computer to another?

    how can i copy apps from one computer to another?

    You don't mention which operating system you have so it's difficult to provide an answer since the mac and Windows stores the files differently.
    The other thing you can do is just re-download the apps from the iTunes Store. Just login to the iTunes Store on the other computer using the same Apple ID. On the right-hand side of the iTunes Store page you will see a 'Purchased' link. Clicking on that will take you to a page that will list your past purchases which you can re-download to the new computer.

  • How do I copy photos from my Mac to my iPad without deleting the ones that are there?

    I understand how to sync photos from my iPhoto library to my iPad. I want to copy photos from my Mac to the iPad without syncing, because syncing deletes everything on the iPad that isn't included in my sync selections. In addition,I have several iPhoto libraries and want to copy photos from each of them to the iPad. A further issue is that apparently photos can be synced from only one computer to the iPad -- how would I copy photos from a different computer? (What happens when I buy a new Mac?) I am extremely experienced with Mac, iPhoto/Aperture, iPad, etc. A year or two ago I transferred 1000 photos to the iPad but I don't remember how, and it was probably done with my previous Mac. Now I just want to add some recent photos without deleting the ones that are there. Bottom line: is there a way to add photos to an iPad without syncing and losing what's there?

    You can still sync the photos and keep the photos that are already on the device. You have to include all of the albums or events in the pictures folder that you sync from. If you are using iPhoto, select that in the Sync Photos from drop down menu and then select all of the albums or events that you want to sync. Make sure to check Selected Albums, events, faces and automatically include (no events). Using that option will allow you to choose exactly which albums and events to sync.
    You have to remember that all photos must be included in every sync so you cannot sync photos from iPhoto today and then try to sync photos from another folder tomorrow, or you will erase all of the photos that were synced from iPhoto. You need to maintain one main Photos syncing folder for the photos that you want to transfer to the iPad. You can have subfolders within that one main folder and you can selectively sync those subfolders. You just have to place all of the photos that you want to sync into one main iPad syncing photos folder.
    There are WiFi transfer apps that allow you to transfer photos to the iPad without having to sync with iTunes. I use this one. This app (and others like it) will allow you to use multiple computers to transfer photos.
    Wireless Transfer App Easily send photos to iPhone/iPad ...

Maybe you are looking for

  • How do i use ipod in car with aux cable

    Im trying to use my ipod touch 4 in the car with an aux cable and its not working, any suggestions?

  • Need help on xml publisher 5.6.2 for E-business suite

    Hi, we are on 5.5.X now, i tried to find a install guide and download patch for 5.6.2 for E-business Suite but could not find any. Can you point me to the right place. Thanks, Message was edited by: tlcal1

  • Not able to add more content in a topic

    Hi, I am working on a project in RoboHelp7. The final output that I will be giving are seperate html files. The problem that I am facing is, even if the helpbody height is set to auto, I am not able to see that content I add into a topic after a cert

  • IPhone 4 IOS 4.3.3 Notifications stopped working?

    Hi All I have upgraded and my notifications have stopped working? Yes it is switched on and i have powered off and on. But no notifications getting through? Everything else seems ok. Any ideas?

  • Vertical text in columnheader

    Hi! Im trying to get the column header text to render vertical to save space. Can i do this in any way? I have search the forum and help without finding anything. Any ideas? The rest of the table data should be horizontal I would like it to be someth