Copy paste buttons

Hey,
I frequently need to copy paste groups of several element, which include buttons, into frames (in order to create scrollable frames for DPS), and every time I do that with a "Go to State" buttons, they lose their properties and I have to recreate them, which is pretty cumbersome to do, and especially so when the button isn't in the visible part of the frame.This happens both in CS5.5 and CS6
Is there any way to past a button into a frame without losing the button's action?
Thanks

@Bob – yesterday I began writing a script snippet that is something like a proof of concept, that it is possible to duplicate a button to a rectangle or any kind of object that can hold a button object.
But before presenting that, let me explain its basic functionality.
1. In scripting we have one principle method to get a duplicate of a button object and therefore not losing the target MSO information: the duplicate() method.
2. duplicate() applied to a "Button" object will not get us in the right direction, because the target of the duplicate() method can only be a "Spread", a "Page" or a "Layer". Or you could move the duplicated button with  x/y values on a spread or a page. The target could not be a rectangle or a state in an MSO. So this seems to be a dead end.
3. But, and here comes the clue, you are able to move or duplicate a "Character" or a "Texts" object from one text frame to another. And this is the key to a possible solution:
If you are working with anchored objects ("Button", "Groups of Buttons" or any other object that you could paste inside of an insertion point in a text frame), you could duplicate or move that object around. The "Button" in this case is simply represented as a "Character" object that flows with the text frame.
For "Texts" objects (and a single character (=anchored button) is a subset of "Texts") the duplicate() method supports the following parameters:
1. The position of the duplicated character in regards of the target insertion point or text:
LocationOptions.AFTER
Places the object after the reference object.
LocationOptions.AT_BEGINNING
Places the object at the beginning of the containing object.
LocationOptions.AT_END
Places the object at the end of the containing object.
LocationOptions.BEFORE
Places the object before the reference object.
LocationOptions.UNKNOWN
No location specified.
2. The target (a "Texts" object, a insertion point, a character, a word, a paragraph) could be the same text frame of the original anchored button or a different text frame. And that could be a new text frame, that could be easily added to a rectangle, a state of an MSO etc.pp. with:
myRectangle.textFrames.add();
That implies we only need two ingredients to make that concept work:
A source text frame and a target text frame.
The source is a text frame that holds an anchored button and should be easily identified by the script. The user (you) could do this by renaming it in the Layers Panel. Just replace its generic name "<Textframe>" with "Source".
The target could be a rectangle. For ease of use it could be a selected rectangle and the script will work with the selection.
What the script is doing:
It identifies the source text frame by its name (therfore it should be unique in the document) and duplicates all its characters (eg. the anchored button, but could be any anchored object) to a new text frame that will be added on the fly to the selected rectangle.
And here comes the script (JavaScript):
//DuplicateAnchoredObjectsTo_SELECTION.jsx
//DESCRIPTION:Just a proof of concept!
//Uwe Laubender
* @@@BUILDINFO@@@ DuplicateButtonTo_SELECTION.jsx !Version! Sat Sep 15 2012 19:39:03 GMT+0200
var myDoc = app.documents[0];
var mySel = app.selection[0];
try{
var mySource = myDoc.pageItems.itemByName("Source").texts[0];
var myTarget = mySel.textFrames.add({geometricBounds:mySel.geometricBounds}).insertionPoints[0];
mySource.duplicate(LocationOptions.AFTER,myTarget);
}catch(e){alert(e.message)};
It's not exactly the thing you like to do, because it requires some preparations:
you have to anchor the object you like to duplicate,
you have to define the target MSO after you anchored the source button,
you have to rename the text frame
and:
you get an additional text frame at the target rectangle and that is adding some complexity to the structure of your document, but hey, it's working…
Here are some screen grabs to illustrate the preparation of the source and showing the results after running the script:
1. Prepare the button as an anchored object (sorry, but the UI is in German, but I think you'll get it):
2. Rename the source text frame from "<Textframe>" to a unique name.
In this case: "Source":
3. Define the target MSO in the button at that stage.
By copy/paste the button to the text frame you already lost the target MSO.
4. Select the target rectangle you want to duplicate the button to:
(the green rectangle represents the first state of the MSO on this spread. It's just an example)
5. Run the script:
6. Inspect the results:
6.1 The button sits in the selected rectangle
6.2 To be precise: it's the first character in a text frame that is added to the target rectangle.
The added text frame has the exact size and position of your selection:
6.3 Inspect the button: the target  is not lost. The MSO is still addressed by the button:
Instead of a single button as the source, you could use a variety of objects:
groups, several buttons anchored one after another etc.pp.
And remember: this is just a proof of  concept so error management is hardly implemented.
Uwe

Similar Messages

  • COPY/PASTE buttons in SC screens in SRM 7.1

    Hi,
    We are on SRM 7.0.1.
    The issue we are facing is regarding the "COPY" and "PASTE" buttons in
    the shopping carts screens.
    The main difference between "COPY/PASTE" and "DUPLICATE" buttons is
    that we can copy items from one shopping cart into the clipboard and
    paste them in a different shopping cart wherease "DUPLICATE" button
    would be used to duplicate/copy items from in the same shopping cart.
    In our system,however,we are unable to copy items from one shopping
    cart (say 100) into the clipboard and try to copy them into another
    shopping cart(say 200).
    NOTE:The 2nd shopping cart(200) is not an already created shopping cart
    in which we are trying to paste the items from cart 100.Cart 200 is
    created after cart 100(in one shop screen).
    The shopping cart creation is done through "ONE SCREEN" transaction.
    Please advise.

    Hi ,
    Please be specific about copy/Paste  button in Shopping cart line (or) you want in
    Account Assignment tab.
    In the account assignment tab the copy functionality will work . it will be copied to the clip board
    check this
    Regards
    G.Ganesh Kumar

  • How do I enable "copy-paste" buttons, editing a private wed site?

    I'm a school teacher. My school has a web site. I'm the site manager. The site has installed a basic editor to write articles with. The "copy- paste" buttons don't work and the following message appears "Copy/Cut/Paste is not available in Mozilla and Firefox.". How can I change that? Is it possible? If there's a way use simple words please, because english isn't my native language and I'm not experianced with technical terms.
    Thank you

    See:
    *http://kb.mozillazine.org/Granting_JavaScript_access_to_the_clipboard
    *https://addons.mozilla.org/firefox/addon/852 - AllowClipboard Helper

  • Enabling/Disabling Cut/Copy/Paste buttons

    Here's today's "Tear My Hair Out" problem.
    I'm working on a data manipulation application, where we will be providing the standard cut/copy/paste functionality. We want to disable the menu items and toolbar buttons if there's nothing selected. I know this is possible, since both JDeveloper and NetBeans do it, but I'm at a loss for a clean way to do it.
    The only thing I can come up with is to add key, mouse, and focus listeners to each text component and check the selection whenever an appropriate event happens which could affect it. Obviously a lot of overhead.
    Anyone know a simpler way to do this?
    Thanks.

    Check out the Clipboard class, and the getSystemClipboard() method in Toolkit (I think).
    If you were to store your data on the system clipboard, like most applications, then you can have a single thread which monitors the state of the clipboard and updates the state of the paste button as and when is appropriate.
    Alternatively, use your own clipboard. Just so long as there is ONE resource which stores all the cut/copy data, and changes the state of the paste button accordingly.
    For the cut/copy actions, you will probably have only one method which carries this out, so have this method update the state of the cut/copy buttons.
    This really is very simple. If it's getting too complicated, you're doing it wrong. Hope this helps.

  • Are there add on cut/copy/paste buttons for Firefox 4???

    I don't like the functionality (or lack of) Firefox 4 without my toolbar/menu buttons, is there any way to add them or do I have to stick with Firefox 3.6...or go to another browser altogether???

    Click on your Firefox icon, then:
    View > Toolbars > CHECK the Menu Bar
    Once the Menu Bar is shown, you can customize your buttons:
    View > Toolbars > Customize
    and drag whatever buttons you want to wherever you prefer.

  • How do I reinstall the edit button on my Firefox 4 toolbar; cut, copy, paste, and print?

    I recently have been having problems with my Firefox 4 tool bars. Right now, the Edit icons are no longer on the tool bar, specifically Cut, Copy, Paste, and Print. If there were other Edit icons, they too are gone. All the other icons have remained.
    I would appreciate it if you could advise me how to reinstall those specific icons.
    Also recently, ALL my tool bars, and task and status bar disappeared. This was only in Firefox 4.0; IE 8 was not affected. Clicking F11 did not work. I could not function without them. Then, a short time later, they "automatically" reappeared. I have not idea of why the disappeared or reappeared.
    Thank you for any help you can provide.
    Sanford A. Berman

    You can find the Copy, Paste, and Cut buttons next to Firefox > Edit (and in its sub menu) and in the regular Edit menu on the menu bar (press F10 if the menu bar is hidden).
    The buttons next to Firefox > Edit are enabled if there is something to do with them, just like with the toolbar buttons.
    You can find the Copy, Paste, and Cut toolbar buttons in the toolbar palette in the Customize window and drag them on a toolbar.
    Open the Customize window via "View > Toolbars > Customize" or via "Firefox > Options > Toolbar Layout"
    *http://kb.mozillazine.org/Toolbar_customization
    *https://support.mozilla.com/kb/Back+and+forward+or+other+toolbar+items+are+missing

  • How can I move photos from pictures to my Iomega external hard drive?  I have copied all photos, however it won't allow me to paste them.  The paste button is grayed out.

    How can I move photos from pictures to my external hard drive? I have copied all photos, however it won't allow me to paste the photos.  The paste button is grayed out.

    Do you want to copy some pictures to the external drive, or do you want to move your whole iPhoto library? The latter will free up hard drive space on your start up disk; the procedure is explained here:
    http://support.apple.com/kb/PH2506
    Note this is not the same as a Time Machine backup.
    If on the other hand you want to copy some photos from one drive to another, you can just drag and drop them from one location to another. This is a true copy, the originals will remain intact.

  • Pages Copy & Paste Style Buttons don't change font size and style?

    Shouldn't the font size and style also be copied and pasted when I use the buttons to copy & paste the style within a page?

    Hello
    It seems that the description of these buttons in the Help is not clear.
    After several attempts, one may understand that they don't apply to attributes inserted "by hand" with cmd + B for instance but to "styles" defined in the Styles drawer.
    Yvan KOENIG (from FRANCE dimanche 30 mars 2008 20:34:35)

  • In iphoto 11 the copy and past buttons to the adjustment tab are gone

    In iphoto 11 the copy and past buttons to the adjustment tab are gone. I thought this was a cool feature. They still work when you click alt-c or alt-v. Did anyone notice this?

    I've noticed too and I don't like it! I tried to alt-c like you said and when I do that, it just takes me to the crop. It won't allow me to copy the adjustments! Is there any way around this??

  • Copy / Paste Same Button on Many Pages

    I have to copy & paste a simple button on every page of a lengthy document. (Hundreds of pages.)
    Is there an easy way to paste the button in the same place on every page, or do I have to do it manually, over a very long period of time?
    (Also, is it tough to paste the button in a specific position, or do I have to eyeball it for every one?)

    Yes, I used the object select button.  I've had some other issues and
    think that the problem is that there isn't enough memory on my computer.
    I've asked IT to increase that, hoping that will help.
    Thank you.

  • The right mouse button on my 8740w has failed (clicks but no result, i.e Cut/Copy/Paste/Delete menu

    My right mouse button clicks but no result, i.e Cut/Copy/Paste/Delete menu does not appear.
    I think the hardware has failed.
    Note the mousepd is not the issue.  The right button is the problem
    Left button works fine

    Same deal with me except the right button has failed twice. You may find that if you push on it past the click with a bit more force it will respond. They swapped the hardware and same thing occurred.
    HP should be ashamed that they would put such awful mouse hardware on its flagship product. Whoever designed it should be fired.
    If HP had any customer loyalty they would offer a hardware update and offer it to those who are still under warranty.
    Suffice to say I will never, ever purchase an HP workstation again.
    Good luck.

  • Can i remap a button on the keyboard? (trying to support copy/paste on mac)

    my app runs cross-platform, and on the mac os x, copy/pasting is accomplished via ctrl+c/v, when the native os wants to use cmd-c/v. (ie in order to copy from a browser and paste into my java app, the user would have to press cmd-c to copy from the mac environment and then ctrl-v to paste into the java environment.)
    i'd like to have copy/paste behave the way mac users are expecting (pressing cmd vice ctrl). at the moment, my app supports OS functions like cmd-w (close window), cmd-q (quit), and cmd-h (hide) via a few import classes from apple. they neglect to provide the same support for copy/pasting.
    so. how can i init my java environment so that if a user presses the cmd key, java behaves as if they are pressing the ctrl key?
    thanks!

    ok, tested it. seems that under metal and the L&F i'm using (which is based on metal as far as i know), pasting is accomplished via ctrl-v.
    if i set the L&F to the system L&F while running in a mac os, pasting is accomplished via cmd-c (meta-c?).
    so that's that.
    i asked google for help with the shortcutKeyMask, and this turned up on an apple site:
    Accelerators (Keyboard Shortcuts)
    Do not set menu item accelerators with an explicit javax.swing.KeyStroke specification. Modifier keys vary from platform to platform. Instead, use java.awt.Tookit.getMenuShortcutKeyMask to ask the system for the appropriate key rather than defining it yourself.
    When calling this method, the current platform�s Toolkit implementation returns the proper mask for you. This single call checks for the current platform and then guesses which key is correct. In the case of adding a Copy item to a menu, using getMenuShortcutKeyMask means that you can replace the complexity of �The Contents of an Application Bundle� with the simplicity of Listing 2.
    Listing 1  Explicitly setting accelerators based on the host platform
    JMenuItem jmi = new JMenuItem("Copy");
        String vers = System.getProperty("os.name").toLowerCase();
        if (s.indexOf("windows") != -1) {
           jmi.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_C, Event.CTRL_MASK));
        } else if (s.indexOf("mac") != -1) {
           jmi.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_C, Event.META_MASK));
    Listing 2  Using getMenuShortcutKeyMask to set modifier keys
    JMenuItem jmi = new JMenuItem("Copy");
    jmi.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_C,
        Toolkit.getDefaultToolkit().getMenuShortcutKeyMask()));
    The default modifier key in Mac OS X is the Command key. There may be additional modifier keys like Shift, Option, or Control, but the Command key is the primary key that alerts an application that a command, not regular input follows. Note that not all platforms provide this consistency in user interface behavior. When assigning keyboard shortcuts to items for menu items, make sure that you are not overriding any of the keyboard commands Macintosh users are accustomed to. See Apple Human Interface Guidelines for the definitive list of the most common and reserved keyboard shortcuts (keyboard equivalents).
    okay... but uh... i don't quite get it. seems that this Listing 2 solution might work, but a) this is for a menu and b) i'd like this to be a global setting if at all possible. my concern is when i use something like this:
    JOptionPane.showInputDialog(jframe,
                                              "please enter some text",
                                              "input dialog",
                                              JOptionPane.OK_OPTION);i want this to be paste-able too!
    thanks!

  • Safari freezes when I click the Share button or when I try to right-click on the URL to copy/paste

    The Address bar and Share functions in Safari cause it to crash/freeze when I try to share or copy/paste the URL.  Any ideas/solutions?

    Might be an incompatible Safari extension or plug-in causing the freeze ...
    Try troubleshooting extensions and third party plug-ins.
    From your Safari menu bar click Safari > Preferences then select the Extensions tab. Turn that off if there are any installed. Quit and relaunch Safari to test. If that helped, turn extensions back on then uninstall one a time to test.
    If it's not an extensions issue, try troubleshooting third party plug-ins.
    Back to Safari > Preferences. This time select the Security tab. Deselect:  Allow all other plug-ins. Quit and relaunch Safari to test.
    If that made a difference, instructions for troubleshooting plugins here.

  • Fields don't recognize their value has changed when a copy/paste value in inputed

    I'm having a minor hiccup with my copy and paste buttons.
    I have check boxes that, when checked, make other fields visible.  The copy/paste actions recognize when the check box value is 1 and paste accordingly in the new instance of the subform, however, the invisible fields do not become visible, despite the check box value being 1 in the new instance.  I feel like I'm missing something simple....possibly something that forces the scripting within the check box field to run since it is not recognizing that it's value has changed?  If I manually click the check box in the new instance, the scripting works and the invisible fields become visible so I know its not an issue with creating new instances.
    Any suggestions will be appreciated...I am new to this...
    Scott

    Still interested in solving this issue....anyone? please?

  • I am working in windows 7 and I am trying to enable the copy/paste and I can not find user.j file in the profile and I am not real sure how to create a file, I can create a folder .

    I am trying to copy text from a word document and paste it into my web builder and it says that firefox does not support copy/paste from clipboard. Went to your site and it tells me to open the user.j file in my profile. This file does not exist and I am not real sure how to create that file so I can paste the fix from your site into it.

    I went to that link and added to firefox add on but it still does not work. I went to the add on option button for this but it told me that my MYSIWG widget was disabled. Does this have something to do with it not working and if so how do you enable it.

Maybe you are looking for

  • Docment type

    What could be the Document type in T-code F-47 ( Down payment request by vendor)? will assign full points. Regards, Surendra babu.

  • Problem in saving ALV display variant with filter

    Hello, I'm displaying an ALV grid with function 'REUSE_ALV_GRID_DISPLAY'. When I load a diplay variant and apply a filter, I could save new layout. But when I run the report without a display variant, then apply a filter to the result, I couldn't sav

  • Hour differences with CRM_ORDER_MAINTAIN

    Hi guys, I´m having troubles with some hour differences in some FM, all you know that the et_appointments dates can be set with the CRM_ORDER_MAINTAIN . . . I set the dates/hours ok in the timestamp_from, timestamp_to fields. The problem is that fiel

  • Setting z-index upon a panel?

    Hi, I am making a custom color picker component. Simply, when the user clicks a color box, color palettet should pops up over all other components. This is my color palette panel:         <s:Panel width="111" height="215" id="colorPalette"           

  • Read out loud and iPad

    Is this feature available in the iPad ? If so, how do I set it up? Thanks.