Adding menu-like buttons to JToolBar (such as Back button in Netscape)

Hi,
I wonder wether it is possible to add a menu-like button to a JToolBar. I tried adding a JMenu but didn't succed, since the menu's visual appearance was completely messed up and, furthermore, it didn't respond to mouse clicks.
Any hints appreciated.
Janek.

To do that, I wrote 3 classes.
At the end, the new menu reacts and can be used exactly as a JMenu.
The first class is the menu class which extends JMenu :
import javax.swing.*;
* This class override the method boolean isTopLevelMenu() to
* allow a menu to be a top level menu in a JMenuBar and a JTollBar also !
public class MyMenu extends JMenu {
    public MyMenu() {
        super("");
    public MyMenu(String s) {
          super(s);
    public MyMenu(Action a) {
          super(a);
    public MyMenu(String s, boolean b) {
        super(s,b);
     * Returns true if the menu is a 'top-level menu', that is, if it is
     * the direct child of a menubar.
     * @return true if the menu is activated from the menu bar;
     *         false if the menu is activated from a menu item
     *         on another menu
    public boolean isTopLevelMenu() {
        if (getParent() instanceof JMenuBar  || (getParent() instanceof JToolBar))
            return true;       
        return false;
}The second class extends JToolBar. It is necessary to redefine the MenuBar behavior : When a menu is pressed, you can move the mouse over the other menus and they will open themselves, etc... So the toolbar must implements the interface MenuElement
import java.awt.*;
import javax.swing.*;
import java.awt.event.*;
import java.util.*;
* This class implements MenuElement to obtain the same behavior
* as a JMenuBar.
public class MyToolBar extends JToolBar implements MenuElement {
     public MyToolBar() {
          super();
     * Implemented to be a <code>MenuElement</code> -- does nothing.
     * @see #getSubElements
    public void processMouseEvent(MouseEvent event,MenuElement path[],MenuSelectionManager manager) {
     * Implemented to be a <code>MenuElement</code> -- does nothing.
     * @see #getSubElements
    public void processKeyEvent(KeyEvent e,MenuElement path[],MenuSelectionManager manager) {
     * Implemented to be a <code>MenuElemen<code>t -- does nothing.
     * @see #getSubElements
    public void menuSelectionChanged(boolean isIncluded) {
     * Implemented to be a <code>MenuElement</code> -- returns the
     * menus in this tool bar.
     * This is the reason for implementing the <code>MenuElement</code>
     * interface -- so that the menu bar can be treated the same as
     * other menu elements.
     * @return an array of menu items in the menu bar.
    public MenuElement[] getSubElements() {
        MenuElement result[];
        Vector tmp = new Vector();
        int c = getComponentCount();
        int i;
        Component m;
        for(i=0 ; i < c ; i++) {
            m = getComponent(i);
            if(m instanceof MenuElement)
                tmp.addElement(m);
        result = new MenuElement[tmp.size()];
        for(i=0,c=tmp.size() ; i < c ; i++)
            result[i] = (MenuElement) tmp.elementAt(i);
        return result;
     * Implemented to be a <code>MenuElement</code>. Returns this object.
     * @return the current <code>Component</code> (this)
     * @see #getSubElements
    public Component getComponent() {
        return this;
}The last class and morer difficult is the MenuUI. In my implementation, I use the WindowsLookAndFeel, so I redefine the WindowsMenuUI to look like Windows.
I give you my code also (please, imagine how difficult it was to write!) :
import com.sun.java.swing.plaf.windows.*;
import java.awt.*;
import java.awt.event.MouseEvent;
import javax.swing.plaf.ComponentUI;
import javax.swing.plaf.basic.BasicMenuUI;
import javax.swing.plaf.basic.BasicGraphicsUtils;
import javax.swing.event.MouseInputListener;
import javax.swing.*;
* Windows rendition of the component.
* <p>
* <strong>Warning:</strong>
* Serialized objects of this class will not be compatible with
* future Swing releases.  The current serialization support is appropriate
* for short term storage or RMI between applications running the same
* version of Swing.  A future release of Swing will provide support for
* long term persistence.
public class MyWindowsMenuUI extends WindowsMenuUI {
    private boolean isMouseOver = false;
     private int shiftOffset = 0;
     private int defaultTextShiftOffset = 1;
    public static ComponentUI createUI(JComponent x) {
          return new MyWindowsMenuUI();
     * Draws the background of the menu.
     * @since 1.4
    protected void paintBackground(Graphics g, JMenuItem menuItem, Color bgColor) {
          ButtonModel model = menuItem.getModel();
          Color oldColor = g.getColor();
        int menuWidth = menuItem.getWidth();
        int menuHeight = menuItem.getHeight();
          UIDefaults table = UIManager.getLookAndFeelDefaults();
          Color highlight = table.getColor("controlLtHighlight");
          Color shadow = table.getColor("controlShadow");
          g.setColor(menuItem.getBackground());
          g.fillRect(0,0, menuWidth, menuHeight);
          clearTextShiftOffset();
        if(menuItem.isOpaque()) {
            if (model.isArmed()|| (menuItem instanceof JMenu && model.isSelected())) {
                    // Draw a lowered bevel border
                    g.setColor(shadow);
                    g.drawLine(0,0, menuWidth - 1,0);
                    g.drawLine(0,0, 0,menuHeight - 2);
                    g.setColor(highlight);
                    g.drawLine(menuWidth - 1,0, menuWidth - 1,menuHeight - 2);
                    g.drawLine(0,menuHeight - 2, menuWidth - 1,menuHeight - 2);
                    setTextShiftOffset();
               else
               if (isMouseOver() && model.isEnabled()) {
                    // Draw a raised bevel border
                    g.setColor(highlight);
                    g.drawLine(0,0, menuWidth - 1,0);
                    g.drawLine(0,0, 0,menuHeight - 2);
                    g.setColor(shadow);
                    g.drawLine(menuWidth - 1,0, menuWidth - 1,menuHeight - 2);
                    g.drawLine(0,menuHeight - 2, menuWidth - 1,menuHeight - 2);
               else {
                    g.setColor(menuItem.getBackground());
                    g.fillRect(0,0, menuWidth, menuHeight);
          g.setColor(oldColor);
     * Method which renders the text of the current menu item.
     * <p>
     * @param g Graphics context
     * @param menuItem Current menu item to render
     * @param textRect Bounding rectangle to render the text.
     * @param text String to render
     * @since 1.4
    protected void paintText(Graphics g, JMenuItem menuItem, Rectangle textRect, String text) {
          ButtonModel model = menuItem.getModel();
          FontMetrics fm = g.getFontMetrics();
          int mnemonicIndex = menuItem.getDisplayedMnemonicIndex();
          // W2K Feature: Check to see if the Underscore should be rendered.
          if (WindowsLookAndFeel.isMnemonicHidden()) {
               mnemonicIndex = -1;
          Color oldColor = g.getColor();
          if(!model.isEnabled()) {
               // *** paint the text disabled
               if ( UIManager.get("MenuItem.disabledForeground") instanceof Color ) {
                    g.setColor( UIManager.getColor("MenuItem.disabledForeground") );
                    BasicGraphicsUtils.drawStringUnderlineCharAt(g,text, mnemonicIndex, textRect.x, textRect.y + fm.getAscent());
               else {
                    g.setColor(menuItem.getBackground().brighter());
                    BasicGraphicsUtils.drawStringUnderlineCharAt(g,text, mnemonicIndex, textRect.x, textRect.y + fm.getAscent());
                    g.setColor(menuItem.getBackground().darker());
                    BasicGraphicsUtils.drawStringUnderlineCharAt(g,text, mnemonicIndex, textRect.x - 1, textRect.y + fm.getAscent() - 1);
          else {
               // For Win95, the selected text color is the selection forground color
               if (WindowsLookAndFeel.isClassicWindows() && model.isSelected()) {
                    g.setColor(selectionForeground); // Uses protected field.
               BasicGraphicsUtils.drawStringUnderlineCharAt(g,text, mnemonicIndex,  textRect.x+getTextShiftOffset(), textRect.y + fm.getAscent()+getTextShiftOffset());
          g.setColor(oldColor);
     * Set the temporary flag to indicate if the mouse has entered the menu.
    private void setMouseOver(boolean over) {
          isMouseOver = over;
     * Get the temporary flag to indicate if the mouse has entered the menu.
    private boolean isMouseOver() {
          return isMouseOver;
    protected MouseInputListener createMouseInputListener(JComponent c) {
        return new WindowsMouseInputHandler();
    protected void clearTextShiftOffset(){
        shiftOffset = 0;
    protected void setTextShiftOffset(){
        shiftOffset = defaultTextShiftOffset;
    protected int getTextShiftOffset() {
        return shiftOffset;
     * This class implements a mouse handler that sets the rollover flag to
     * true when the mouse enters the menu and false when it exits.
     * @since 1.4
    protected class WindowsMouseInputHandler extends BasicMenuUI.MouseInputHandler {
          public void mousePressed(MouseEvent e) {
               JMenu menu = (JMenu)menuItem;
               if (!menu.isEnabled())
                    return;
               MenuSelectionManager manager = MenuSelectionManager.defaultManager();
               if (menu.isTopLevelMenu()) {
                    if (menu.isSelected()) {
                         manager.clearSelectedPath();
                    else {
                         Container cnt = menu.getParent();
                         if(cnt != null && (cnt instanceof JMenuBar || (cnt instanceof JToolBar))) {
                              MenuElement me[] = new MenuElement[2];
                              me[0]=(MenuElement)cnt;
                              me[1]=menu;
                              manager.setSelectedPath(me);
            MenuElement selectedPath[] = manager.getSelectedPath();
            if (!(selectedPath.length > 0 && selectedPath[selectedPath.length-1] == menu.getPopupMenu())) {
                    if (menu.isTopLevelMenu() || menu.getDelay() == 0) {
                         MenuElement newPath[] = new MenuElement[selectedPath.length+1];
                         System.arraycopy(selectedPath,0,newPath,0,selectedPath.length);
                         newPath[selectedPath.length] = menu.getPopupMenu();
                         manager.setSelectedPath(newPath);
                    else {
                        setupPostTimer(menu);
          public void mouseEntered(MouseEvent evt) {
               super.mouseEntered(evt);
               if (!WindowsLookAndFeel.isClassicWindows()) {
                    setMouseOver(true);
                    menuItem.repaint();
          public void mouseExited(MouseEvent evt) {
               super.mouseExited(evt);
               if (!WindowsLookAndFeel.isClassicWindows()) {
                    setMouseOver(false);
                    menuItem.repaint();
}This UI simulate also the rollover effect.
And now here is a class to test this code (under 1.4 and Windows L&F):
import java.awt.*;
import java.awt.event.*;
import javax.swing.*;
import javax.swing.event.*;
import javax.swing.plaf.basic.*;
public class MenuToolBar extends JFrame {
     public static String windowsUI = "com.sun.java.swing.plaf.windows.WindowsLookAndFeel";
     public MenuToolBar() {
          super("Menu toolbar");
          setWindowsLF();
          addWindowListener(new WindowAdapter() {
               public void windowClosing(WindowEvent e) {
                    System.exit(0);
          setBounds(312,250,412,200);
          MyMenu menu = new MyMenu("File");
          MyMenu menu2 = new MyMenu("Help");
          menu.add(new JMenuItem("Try"));
          MyToolBar tb = new MyToolBar();
          tb.firePropertyChange("JToolBar.isRollover", false, true); 
          tb.add(menu);
          tb.add(menu2);
          JToggleButton jt = new JToggleButton("Toggle button", new ImageIcon("tog.gif"));
          jt.setFocusPainted(false);
          tb.add(jt);
          tb.addSeparator();
          JButton jb = new JButton("Button", new ImageIcon("but.gif"));
          jb.setFocusPainted(false);
          tb.add(jb);
          getContentPane().add(tb, BorderLayout.NORTH);     
          setVisible(true);
     public static final void setWindowsLF() {
          try {
               UIManager.setLookAndFeel(windowsUI);
               UIManager.put("MenuUI", "MyWindowsMenuUI");
          catch (Exception exc) {
               System.err.println("Error loading L&F: " + exc);
     public static void main(String[] args) {
          new MenuToolBar();
}Execute that, to see if the result is OK for you!
Another thing : could you please report my name if you use and distribute the code ?
Tell me if this helps you!
Denis
[                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

Similar Messages

  • Has anyone successfuly added the "like box" for Facebook (not the "like button")?

    I've seen several discussions of this, and they either just trail off, or answer the question as it applies to the "like button" only.
    If common Facebook Social Plugins don't work. Fine. It would be incredibly helpful if moderators, or Adobe staff could let us know. I've just started with Muse, but I have run across a few problems where other users have already asked the question I"m asking, but after a few vague suggestions the matters just seems to dead-end without resolution, one way or the other.
    If I've missed a memo (its been known to happen) and Muse is still not out of beta and is unsupported, please ignore the above.
    Cheers.

    Thanks so much for the post.
    I have compared the page source of your test page with mine and the code is identical. Yours works, (I successfuly pasted it into my site) and mine does not. It appears as a grey box with a blue HTML in design mode, and does not appear at all in preview in browser or uploaded.
    There must be something about the facebook page, or its permissions that I have missed. I have opened up everything I could find. Is it possible the feature only works with paid facebook accounts?
    I'm still working on the Facebook KB to see if there's a reason why the LikeBox paste is not working.
    Thanks again,
    Sorry if I maligned Muse earlier....
    My error somewhere...

  • How can I make a menu with button's that fade-in?

    I've built a motion menu in AE, and had added text layers/buttons that fade-in through layer>Encore>Create Button. Once I import this into Encore through dynamic link I cannot link the buttons to the motion menu.  I've added a sample.
    Basically all I want is the play feature, Scene selection ,and credits to be selectable after they finish fading in @ the :20 mark. I don't want the menu to loop either.
    I've tried to make a static menu(from last frame in AE) play after this, but, there is a one second gap or so before that static menu plays which just looks tacky. I have tried this in preview, and rendered it to a dvd with the same result.
    All the tutorials i've come across really don't answer this question either.  
    Any help would be appreciated.
    Thanks

    I believe that Jon Geddes has a TUTORIAL, that might also be useful to you.
    Sounds like you and Stanley have it worked out, but you might pick up an additional idea, or two.
    Good luck,
    Hunt

  • Strange bug -- adding one more button OR page causes Form warning to appear

    I'm building a simple interactive document in InDesign CS4 on the Mac, to be exported/delivered as a PDF. There are a few text-based buttons on the Master Page that are set to Go To a Text Anchor on Release. There are 4 buttons of these buttons on the page, and each one leads to a different page in the document, and they all work fine. They are all built the same way.
    I want to export a PDF that opens cleanly in Reader, meaning no unexpected dialog boxes or warning messages appear. Up until this point, my document opens cleanly in Reader.
    However, when I create a FIFTH button (using the exact same method used to create the other buttons), OR I add ANY more pages to my document (which currently stands at 16 pages, but will need to ultimately be upwards of 40), for some reason, opening the PDF in Reader causes Reader to start displaying the large, distracting pink warning message at the top of the page:
    "Please fill out the following form. You cannot save data typed into this form. Please print your completed form if you would like a copy for your records."
    The fifth button I create (from scratch) causes this message to appear.
    Or, if I add another page (using my Master Page, where the buttons are used), this message appears. Even if the fifth button is not created, and I add another page from the Master, this message appears.
    If I add a blank new page (without using the Master Page), the message does NOT appear.
    So, for some reason, adding ONE more button, or referring to the Master Page in the document ONE more time by adding a 17th (or more) pages, seems to kick InDesign/Acrobat Reader into thinking my document is suddenly a form, and causes Reader to display that obnoxious pink message when opening the document.
    I've tried several troubleshooting steps.
    - I've ensured my buttons have unique names.
    - I've tried creating the fifth button from scratch, and also tried creating it from duplicating one of the existing "good" buttons.
    - I've made sure the button has a destination page/Text Anchor to go to.
    - I've opened the PDF in Acrobat Pro 9, and gone through all of the page and buttons in the Forms Manager, and there is nothing out of the ordinary in that view.
    Why is Reader suddenly thinking my document is a form (that "cannot be edited/saved") when I add one more button, or one more page!? It's bizarre, and quite frustrating.
    Thanks for any insights,
    Robbie

    You can use that same workaround with ID CS4 files. You just have to make the PDF and then go into Acrobat to add the security that doesn't allow editing (Acrobat -> Security -> Encrypt with Password) . That gets rid of the warning about the form. Of course if you actually have a form somewhere in your document, you won't be able to use that......

  • Facebook like button is not working, I have used the muse widget and created code from facebook. Does anyone know how to get this to work?

    Facebook like button is not working, I have used the muse widget and created code from facebook. Does anyone know how to get this to work?

    Hi connally25,
    Below is a link to a video tutorial on how to add a Facebook Log button, please check if you have followed the same steps to add the video.
    http://tv.adobe.com/watch/learn-adobe-muse-cc/adding-a-facebook-like-button/
    If you have followed the steps correctly and the button still does not work; here is a link to a forum thread which might help solving the issue:
    Facebook Follow Widget not working
    Regards
    Sonam

  • IWeb doesn't offer widget for Facebook "Like" button?

    Is it true that iWeb doesn't offer a widget for adding a Facebook LIKE button? The code offered to copy by Facebook doesn't work when I paste it into a text box on my iWeb site.
    Thanks for any insights fellow users can offer. My free trial will be ending soon and I'd only sign up for the year if these issues can be resolved.

    That's because you don't paste html code into a text box. You need to copy and paste any kind of html code into an html snippet placed on your page where you want the code to appear. Copy and paste the code into the snippet and click on Apply and it should display.

  • Like button disapears when muse site uploaded to Business Catalyst

    This is my Muse page
    This is what happens when it goes into business catalyst - like button just drops off. Adobe - please HELP!!!!!!

    Hi Grant,
    Because for now CSS and HTML file editing is incompatible with Muse (e.g. republishing your site will potentially overwrite all the changes), we've decided to hide the file manager for Muse users.
    However, there is a way to re-enable it. In order to enable site management for your user, please log into your site, and click on "My Details" (upper right). In the My details page, please check the option "Enable online content editing (incompatible with Muse)", and enter the password to confirm. A new entry (Site Manager) will appear in your menu.
    A similar case here:
    http://forums.adobe.com/thread/1030124
    Hope this helps,
    Alexandru

  • Menu navigation buttons do not appear when viewing page on iPhone

    My webpage shows the menu navigation buttons on all browsers and platforms but when viewing on an iPhone they are not there. Hence you cannot view other pages. Is this a restriction of pages created in iWeb or am I doing something wrong?
    I have trawled through the discussion forum and tried tips such as the height of the menu bar from the top on the page, pixel width and making sure the menu box is at the front or brought forward.
    my website is www.sussexgolfcaptains.org

    This may or may not be of interest, but some site builders (such as weebly.com) are mobile friendly — click here:
    http://blog.weebly.com/2/post/2010/12/your-websites-are-now-mobile-friendly.html   http://blog.weebly.com/2/post/2010/12/your-websites-are-now-mobile-friendly.html
    Also, unlike sites made with iWeb, Weebly sites respond to desktop Safari's +View > Zoom In+ command — this is helpful for many who don't have perfect eyesight for reading small text. (iWeb's default font sizes are relatively small.)

  • Can't link up with facebook on other websites (firfox 27.0) (rafflecopter, like buttons, etc)

    Facebook will not link up correctly. For instance, Rafflecopter NEVER shows the Facebook log-in option. Other websites will not link up; the "Like" button never shows up. This started as soon as I upgraded to v 27; other browsers work correctly. Even Facebook pages don't show up correctly , the line-up is "off", but I don't know if this is a Firefox problem or Facebook, since they recently re-designed the page.

    ''For the Facebook layout issue:''
    * Could you try with the default zoom level? You can reset zoom by holding down the Ctrl key and tapping 0 (zero). If that lines up but becomes misaligned as you zoom, it could be the "Zoom Text Only" setting.
    View menu (Alt+v) > Zoom > Zoom Text Only
    ''For Facebook buttons not appearing on other sites:''
    * Do you see any new/different notification icons on the left end of the address bar? These can indicate problems with mixed content or missing/inactive plugins.
    * In case one of your extensions is involved, could you try some of those sites in Firefox's Safe Mode? That's a standard diagnostic tool to bypass interference by extensions (and some custom settings). More info: [[Troubleshoot Firefox issues using Safe Mode]].
    You can restart Firefox in Safe Mode using
    Help > Restart with Add-ons Disabled ''(Flash and other plugins still run)''
    In the dialog, click "Start in Safe Mode" (''not'' Reset)
    Any difference?

  • Adding a Glossary button which doesnt move the timeline on !

    I'm using Captivate 3. On each page there is a
    backwards/forwards button. On this one module we've now added a
    'Glossary button'. If the user clicks this it opens up a external
    PDF file in a seperate window. That works fine.
    Say they are at the end of a page , the page is paused as its
    waiting for them to click Back/Forward or Menu.
    However if they click the Glossary button this moves the
    timeline forward as its a kind of 'continue' which is frustrating
    as it then moves to the next page. I just want them to be able to
    click Glossary as many times as they want and the program doesnt
    move on a page.
    Has anyone come across this before ? Just want a button which
    doesnt seem to move on ! Its not set to continue at all. Just set
    to open an external file
    Regards

    Hello P_SJ,
    The way I would tackle this would be to create the button in
    Adobe Flash (including the link to the PDF document) and then
    import this into Captivate as an animation. The reason for me
    suggesting this is because with Images and Animations you can make
    the object persist for the entire project (Options tab > Display
    for > rest of project).
    If you don't need the button to persist then you could just
    disable the Pause after option (Options tab) in the Button dialog
    and set the On success menu option to Open URL or file.
    I guess that even if you did need the button to persist you
    could just copy the button and paste this onto all the relevant
    slides. That might work as well.
    HTH
    Regards - Mark

  • Facebook like button integration after Facebooks July '13 migration

    I am trying to add a like button to blog posts at jayowenhouse.com. I am following the instructions here
    http://kb.worldsecuresystems.com/kb/add-social-media.html#main_Obtaining_the_plugin_code_
    Even using {tag_itemurl_withhost} the "like" button "likes" the entire domain not the individual blog post. It looks like this facebook social plugin update has messed up BC's system for displaying like buttons, comments etc. I am experiencing the same issue with the tweet button and facebook comments. Maybe Im doing something wrong..
    The Facebook developer page reads,
    "After July 2013 migration, the Like button required an absolute URL in the href parameter."
    The code in the tutorial does not have the absolute URL. How can I make my "like" buttons like individual blog posts with the absolute URL in the code that facebook gives me?
    I would appreciate any insight.

    I'm assuming your facebook module code looks like this then:
    {module_facebooklike,moduleTemplateGroup="Default",language="en_US",url="{tag_itemurl_withhost}",layout="standard",showFaces="true",width="300",verb="like",font="",colorScheme="light",s end=""}
    If this is not working i might suggest looking at the source code of the page you want to do this on. Check in the <head> tag and see if you have any <meta property="og:url" /> tags where the url provided is anything other than the specific url you want to like. If you do have such tag, remove it from your template, and only use it on pages you need the facebook like to work.
    If it's still not working I would suggest looking into http://www.addthis.com. It's worked better for me than the Business Catalyst social modules.
    I hope this is helping.

  • Like button won't show on iweb page

    Hi, i want to make a like button on my iWeb page. I've mad a code in facebook, put in via html widget. But it will not appear on my page.

    Here's my answer to the same quuestion :
    Helpful AnswerRe: HELP, please! I am having trouble adding facebook like box to iweb
    Note that my solution is correct too, but I didn't provide the pictures, hence my solution is only helpful.
    Note : make sure to fill in ALL the fields.

  • Popup stamp menu on button click Adobe 10

    Hi
    I have developed a custom plugin using Acrobat 6.0 sdk and it has one button which user clicks and it shows menu for available stamps. This feature was working till Adobe 9 but it not working with Adobe 10.
    Here is the code I was using to popup menu when user click on button..
    AVMenuItem COmniLinkBehaviorPI::ShowDropDownMenu(CString iVersion)
    m_oLog.Debug("ShowDropDownMenu called.");
    AVPageView avPageView = NULL;
    ASInt16 xHit = 0;
    ASInt16 yHit = 0;
    //Get the Menubar
    AVMenubar Menubar = AVAppGetMenubar();
    //Get the Tools Menu
    AVMenu ToolsMenu = AVMenubarAcquireMenuByName(Menubar, "Tools");
    //Get the Commenting Menu
    AVMenu CommentMenu = AVMenuItemAcquireSubmenu(AVMenuAcquireMenuItemByIndex(ToolsMenu,0));
    //Get the Stamps Menu
    AVMenu StampMenu = AVMenuItemAcquireSubmenu(AVMenuAcquireMenuItemByIndex(CommentMenu ,2));
    ASInt32 i;
    ASInt32 j;
    AVMenuItem tempItem;
    char buf[100];
    if(iVersion.Left(1) == "6")
    m_oLog.Debug("Version found: 6.0 ");
    for(j=0;j< 3;j++)
    for(i=0;i< AVMenuGetNumMenuItems(StampMenu);i++)
    tempItem = AVMenuAcquireMenuItemByIndex(StampMenu, i);
    m_oLog.Debug(ASAtomGetString(AVMenuItemGetName(tempItem)));
    AVMenuItemGetTitle(tempItem,buf,sizeof(buf));
    m_oLog.Debug(buf);
    if((!strcmp(buf, "-")) || (!strcmp(buf, "&Create Custom Stamp...")) || (!strcmp(buf, "Add Cu&rrent Stamp To Favorites")) || (!strcmp(buf, "&Manage Stamps...")))
    AVMenuItemRemove(tempItem);
    m_oLog.Debug("Seperator Item Remvoed");
    AVMenuItemRelease(tempItem);
    else if (iVersion.Left(1) =="7")
    m_oLog.Debug("Version found: 7.0 ");
    for(i=0;i< AVMenuGetNumMenuItems(StampMenu);i++)
    tempItem = AVMenuAcquireMenuItemByIndex(StampMenu, i);
    //m_oLog.Debug(ASAtomGetString(AVMenuItemGetName(tempItem)));
    AVMenuItemGetTitle(tempItem,buf,sizeof(buf));
    m_oLog.Debug(buf);
    if(!strcmp(buf, "&Manage Stamps..."))
    AVMenuItemRemove(tempItem);
    //break;
    m_oLog.Debug("Manage Item Remvoed");
    AVMenuItemRelease(tempItem);
    //Get the Page View object
    avPageView = AVDocGetPageView(m_oAVDoc);
    //Get the Mouse Position
    AVPageViewGetMousePosition(avPageView,&xHit,&yHit);
    //Popup the Stamps menu
    AVMenuItem  MenuItem = AVPageViewDoPopupMenu(avPageView, StampMenu   ,xHit,yHit,false,0);
    if (MenuItem == NULL)
      m_oLog.Debug("Menu Item was not selected from dropdown stamp menu.");
    //Release the Stamps Menu
    AVMenuRelease(StampMenu);
    return MenuItem;
    My question is what I can do so that it will still work with Adobe 10 using same Adobe 6.0 SDK.
    Thanks

    Hi Irosenth,
    I don't want to read your stamp menu. I just need that full context menu which is available in the drop down arrow beside stemp tool.
    Till acrobat 9 I was able to show that menu using the code which I have pasted earlier in the thread by calling  Tools > comment > annotation using AV_Menu api functions but with Acrobat X that has been moved to panel within Annotations.
    Adobe 9 behavior
    Adobe X behavior
    As you can see till Adobe 9 it was working with the code I have provided but with Adobe 10 it shows a menu like in the second image..
    Thanks,
    Twinkle

  • What is the best dvd burning program with a nice menu like idvd that works with Final cut pro

    What is the best dvd burning program with a nice menu like idvd that works with Final cut pro, I am wanting to burn mainly wedding dvds but also sports and other things we used to use idvd but then upgraded our computers and now we dont have it. idvd was the only thing i could find that worked.
    Thanks

    There is no real substitute for iDVD.
    Why is there no iDVD on my new Mac? How do I get it and how do I install it?
    https://discussions.apple.com/docs/DOC-3673
    To burn a DVD with iDVD from the latest version of iMovie, you have to export the movie using the Export button and select 480p as the size. Open iDVD and start a new project, then drag that exported movie file into the iDVD menu window, avoiding any drop zones you see.

  • Need help placing a like button on my site.

    I have managed to put a like button on my site, but now i have the next problem. If you look on my site
    http://www.dorff.nl/
    You will see the facebook like buttons hanging on the left side of the page. I really want to place the button on the right side..next to the black buton with the text "mijn portfolio".
    Can you tell me how can i do this?
    Regards  Brian

    Hi Ken,
    i got an other question...  it looks like this one but i think i need a little push into the right direction.
    On my site at this page
    http://www.dorff.nl/company.html
    There is only text.. Now i want to place an image next to Dorff Design
    How can i do this???  The image name is Monitor...
    i think i need a litlle code for css. And i need to place the image inside a div... i think?
    Hope you give me a start..
    Regards Brian
    Date: Mon, 9 Apr 2012 06:52:15 -0600
    From: [email protected]
    To: [email protected]
    Subject: Need help placing a like button on my site.
        Re: Need help placing a like button on my site.
        created by Ken Binney in Dreamweaver - View the full discussion
    You're welcome From my hasty little tip, it looks like you ran with it and added this to your style.css .fb-like Good work guy! PS It's a handsome design.
         Replies to this message go to everyone subscribed to this thread, not directly to the person who posted the message. To post a reply, either reply to this email or visit the message page: http://forums.adobe.com/message/4321953#4321953
         To unsubscribe from this thread, please visit the message page at http://forums.adobe.com/message/4321953#4321953. In the Actions box on the right, click the Stop Email Notifications link.
         Start a new discussion in Dreamweaver by email or at Adobe Forums
      For more information about maintaining your forum email notifications please go to http://forums.adobe.com/message/2936746#2936746.

Maybe you are looking for

  • How to set format for a column in repository

    Hi all, i have some columns for which i would like to set a default format of the data directly into the repository. For example, a numeric code is shown as 1.234,00, i want the BM to show by default 1234. Or a date shown as 03/03/2013 04:00:00 AM i

  • How exact is the Find the iPhone app when lost?

    I lost my phone in a movie theater and it is showing up on a nearby freeway (where I wasn't at) which isn't where I lost it and I was told that it isn't exact if it is in an area that doesn't have good reception it would indicate anywhere within a fi

  • Sap b1 + ms crm 2011

    Hello SDN, Im a new user of SAP B1 , i need to integrate sap b1 with ms crm 2011. can any one help me out please?

  • My mystery: why won't this one page load?

    On my site http://bradmesser.com/ everything works in every browser I *have, except when running Parallels5>Windows7>IE8 my So-Called Career page http://www.bradmesser.com/J2_Career/Career.htm just doesn't load and I'm baffled. Help, anyone? iMac 2.4

  • To the JDeveloper Team

    please bear with me. I have lost afew too many hairs over this code. Here is the sqlj file I am using in the jdeveloper 3.2. =========================================== package ReviwerPkg; import sqlj.runtime.*; import sqlj.runtime.ref.*; import java