Button on top of another button

Hello,
I'm trying to create a dropdown menu and I hope someone can help. I created two buttons, the first has the main menu and dropdown graphic and the second has the menu text with a rollover.
The problem I'm facing is when the dropdown displays and I rollover the menu text the dropdown goes away.
Any input on how to put a button on top of another would help.
Thanks,
Jason

Try converting both your buttons into a single custom component. You can then give the component two states - one where the dropdown is hidden, and the other where it's visible. Once this is done, you can use the interactions HUD to show the dropdown when you roll over the component and hide the dropdown when you roll out.
Here are the basic steps:
1. Select you buttons.
2. In the HUD, choose Convert to Component > Custom / Generic Component.
3. Double click on the new component to edit it.
4. Duplicate the state, and make the changes in each state so that the dropdown is only visible in one state. You might want to also rename the states (double click their names in the states panel).
5. Double click outside the component to leave edit in place.
6. With your component selected, set up interactions to transition between the two states on roll over / roll out.
7. Run your project and check that it works.
Once you've done this, you can tweak the transition between the two states in the timelines panel.

Similar Messages

  • Can we create materialized view on the top of another materialized view.

    Hi ,
    can we create materialized view on the top of another materialized view.
    Thanks
    Naveen

    Welcome , Just remember is not good apporch to do that since performance when MV refresh
    Please mark this thread as answered .

  • How can I copy a part of the picture and paste this piece on top of another part of the same picture? ta

    How can I copy a part of the picture and paste this piece on top of another part of the same picture? ta

    select the section you want to copy (marquee tool or lasso tool) and either go to edit copy or use control c create a new layer in layers (top menu bar) or Control shift N and paste using control V;  or edit > paste.

  • Drawing image so that it appears on top of another

    Alright, this question isn't as straight forward as it may seem. Yes, I want to draw an image so that it appears on top of another drawn image, but the image I am trying to draw is being drawn in another thread like so:
    public class myApplet extends Applet implements Runnable
      public Graphics g;
      public Thread myThread;
      public void init()
        myThread = new Thread(this);
        myThread.start();
      public void paint()
         super.paint(g);
         //Assume that I loaded in the images properly
         g.drawImage(image1, 0, 0, null); //Assume image1 is a 50 px X 50 px image
      public void run()
         g.drawImage(image2, 0, 0, null); //Assume image2 is a 20 px X 20 px image
    }This also happens if I try to do "g.fillRect();". The 50 X 50 image appears on top of the 20 x 20 image. Does anyone know a way that I can tell the program to draw the image in the thread AFTER the image in the paint method (I know I should be using paintComponent, but this is a sample program. Please don't get too picky about it. I typed it up simply for this post and I wanted to make it simple).
    The reason I'm drawing it in the paint method is because I am making an image move along a set of points. The points are formulated inside the run() method. If I draw it inside of the paint() method it skips points.
    Any help would be GREAT. Thank you.
    Edited by: dustty1818 on Apr 11, 2009 9:05 AM

    dustty1818 wrote:
    public class myApplet extends Applet implements Runnable
    public Graphics g;
    public void run()
    g.drawImage(image2, 0, 0, null); //Assume image2 is a 20 px X 20 px image
    }Edited by: dustty1818 on Apr 11, 2009 9:05 AMDusty,
    There are several serious (fatal) flaws with your design. The biggest is that you should NEVER hold
    on to a Graphics object. If anything you should be calling dispose at the end of the paint method.
    It appears that you are accidentally trying to use a technique called "active rendering".
    You can do active rendering in Java but it would look nothing like what you are doing (and is much
    more advanced). You must resolve to keep all drawing in (or preferably called from) the paint method.
    Have your run() method call repaint() and have your paint() method have all the information it
    needs to render the scene.
    Also, and this is comparatively minor, extend JApplet.
    example:
    import java.awt.*;
    import javax.swing.*;
    public class SceneRenderer extends JApplet implements Runnable{
         Point pt1 = new Point(0, 0);
         Point pt2 = new Point(0, 0);
         public void init(){
              Thread animationThread = new Thread(this);
              animationThread.start();
         public void paint(Graphics g){
              super.paint(g);
              g.setColor(Color.RED);
              g.fillRect(pt1.x, pt1.y, 50, 50);
              g.setColor(Color.BLUE);
              g.fillRect(pt2.x, pt2.y, 20, 20);
         public void run(){
              while(true){
                   pt1.x += 1;
                   pt2.x += 1;
                   repaint();
                   try{
                        Thread.sleep(60);
                   } catch(Exception e){}
    }

  • Moving a jpg image on top of another jpg image

    I am currently doing a game board project and I need code to move an image that is on top of another image. I have the board image up but I need to put the other image on top of it and move it. Please someone with code to drag and drop help me. Thanks Anne

    Try this code:
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    public class Iover extends JFrame
         Mpan   pan = new Mpan();
         JLabel lbl;
    public Iover() 
         addWindowListener(new WindowAdapter()
        {     public void windowClosing(WindowEvent ev)
              {     dispose();
                   System.exit(0);}});
         setBounds(10,10,520,350);
         getContentPane().setLayout(new BorderLayout());
         getContentPane().add(pan,BorderLayout.CENTER);      
         pan.setLayout(null);
         lbl = new JLabel(new ImageIcon("game1.gif"));
         lbl.setBounds(100,100,100,100);
         pan.add(lbl);
         setVisible(true);
         lbl.addMouseMotionListener(new MouseMotionAdapter()          
         {     public void mouseDragged(MouseEvent m)
                   lbl.setLocation(lbl.getX()+m.getX(),lbl.getY()+m.getY());
    public class Mpan extends JPanel
    public Mpan()
    public void xpaint(Graphics g)
         g.setColor(Color.pink);
         g.fillRect(0,0,getWidth(),getHeight());
         paintComponents(g);
    public static void main (String[] args) 
         new Iover();
    Noah

  • Cant put image on top of another image

    Hi,
    I'm using keynote 09 with the 'Blueprint' theme. I'm attempting to edit the master slides by putting a company logo in the corner of each slide. This works fine on slides without images, but on slides with images, keynote will not let me put my logo over the image placeholder. The placeholder image always blocks my logo, even when I choose 'Send backward' on the place holder.
    Is there a way around this?
    thanks

    Sorry, I was typing fast.
    The problem is that you cannot put images above media placeholders on master slides. One suggestion was to make my image (my logo comprised mostly of white text) a media placeholder as well, therefore I could edit the master slide and layer my new media placeholder (logo) above the default-already-existing placeholder (some architectural image in the blueprint theme).
    This works but has an additional problem.
    Since my logo is white text, I wanted for it to stand out from the picture beneath it. As I sometimes do, I thought I should place my white-text-logo on top of a small black rounded rectangle with transparency (like a cartouche).
    I like to do that because it makes my logo legible, while still showing the picture through the transparency. INdeed, this is easy to do if you are only dealing with pictures and shapes (and not the magical placeholder versions of them)
    You can make the shape a text placeholder, and you can make the image (logo) a media placeholder, but you can't group the two together as a unit. And if you group them first, then you cannot make your group (shape+image-logo) a placeholder at all, so you then cannot layer it on top of the default image place holders.
    I was saying that I'd have to open my logo in photoshop and put it on top of a 'cartouche' and then import that modified image, and THEN make it a media placeholder.
    But obviously it would be easier if keynote just let us properly layer elements as you would expect it to work.
    I mean, setting images aside, why can't I create a shape and put it in front of a media placeholder without making the shape a text placeholder?
    Of course I can edit my logo and add dropshadow or glow to make it stand out, but even then, I would need to make it a placeholder before keynote would let me layer on top of another placeholder. And if I'm going through the trouble of using photoshop to add shadows or glows, I might as well just put the image on top of a cartouche as originally desired.

  • For some reason, even though I have advanced features checked, the menu with green screen and all those isn't popping up when I drag the video on top of another one.

    For some reason, even though I have advanced features checked, the menu with green screen and all those isn't popping up when I drag the video on top of another one. Help?

    Hi
    I would trash - iMovie pref file - and re-try - sounds like this got faulty.
    • Delete iMovie pref. file. iMovie pref. file resides.
    Mac Hard Disk (start-up HD) / Users / "Your account" / Library / Preferences
    and is named. (one or more of these)
    com.apple.iMovie.plist
    com.apple.iMovie3.plist
    com.apple.iMovie7.plist
    com.apple.iMovie8.plist
    com.apple.iMovie9.plist
    com.apple.iMovieApp.plist
    and find
    com.apple.iApps.plist
    While iMovie is NOT RUNNING - move this/these file/s out on to desk-top.
    Now restart iMovie.
    If You run Mac OS X.7 or more - then the Library in the User-account folder is invisibly and need to be set to be viewable. IT IS NOT in the Library on Root level (when opening MacintoshHD - first window = root level)
    ( It can be done like this: Open Terminal, then enter:
    chflags nohidden ~/Library (exactly like this - space included)
    Press return, then restart, and it will always be visible until the next major update, when you do the same thing again. )
    Yours Bengt W

  • Text becomes overset when moved on top of another object

    I'm trying to figure out why everytime I move a text box on top of another object the text suddenly becomes overset and disappears.  If I move it off the object or out of the spread entirely, the text comes back and appears normal.  I've tried placing the file, copy and pasting the file, copy and pasting the selected text, moving the text box into a separate layer, checking the ordering to ensure the text box is on top, but nothing seems to work.  Any thoughts on why this is happening?

    OGC Management wrote:
    ... if I checked the invert box it corrected the problem! 
    your going to chase your tail with that "solution".
    Select all (ctrl+a)(cmd+a) and set Text Wrap to none as shown.
    The item could be on a master page or a locked layer, but  you indicate you were able to modify the wrap attributes...

  • Adding a panel on top of another panel

    Hi all,
    I am using NetBeans and have created a JApplet with a JPanel inside (given the default name of panel), and I want to add another panel on top of that.
    I have another class, MyPanel that extends JPanel, and I have put some simple graphics in and tested this with a JFrame. In the JFrame, the myPanel is showing up with its graphics.
    I tried to add myPanel to panel, but I cannot see myPanel.MyPanel myPanel = new MyPanel();
    panel.add(myPanel);Can somebody please point me in the right direction to get myPanel on top of another panel?
    Thanks,
    Jeff
    Edited by: jeff_cia on Nov 20, 2008 6:54 PM

    You would do well to read the section on the [layout managers|http://java.sun.com/docs/books/tutorial/uiswing/layout/index.html] at the Sun tutorial site.

  • Superimpose One Page On Top Of Another

    I am trying to create a chart that is about the size of a business card and put my information on the back of the business card. I have gotten as far as fitting six of my charts (business card size) on one sheet in Pages 09 and my information six times also (business card size) on another sheet in Pages 09. I want to superimpose one sheet on top of another so that my chart and info will LINEUP WITH EACH OTHER so I can print on both sides of a sheet of paper and then laminate the sheet of paper and then cut each individual card out. If you understand my problem please respond.
    Thank you
    Mike

    View > Show Rulers. 
    With one of your graphis objects selected, Drag Guides onto your document from the Rulers to where you need them. They won't print, but if they distract you, you can delete them once they've served their purpose of helping you to line things up.
    Jerry

  • HT1933 Moved ITunes from one lap top to another, and some audiobooks were lost??

    Moved iTunes library from one lap top to another, and some audiobooks were lost!

    Sorry to hear that.
    Do you have a question?
    Copy the audiobooks from the old computer, or your backup copy of your old computer to the new one.

  • Word For Mac Document Froze over top of another Word For Mac Document

    I have two Word for Mac documents open, one with my notes and the other being my essay.
    I needed to look up something from another word document that I accessed via an email. I downloaded the attacthed word document and opened it. It opened over top of my notes and froze. I cannot close the document that has froze so I would have to force quit Word for Mac, but that would cost me losing the document it has froze over as I am unable to save it. If this makes sense to anyone, I could really do with a hand, or be redirected where I could get some help!
    Thank you!

    All I can suggest is do a screen shot
    Shift cmd3
    or take a selection of what you want by
    shift cmd4
    save the file then force quick
    or press the power button on your machine till it quits.
    restart

  • How do I put a div on top of another?

    I have one div tag for my header, and one for my body. Now I want to put buttons over them, how do I do it?
    Any way that I can find leaves the buttons floating out in space, not anchored to the header. So they move around when the window is resized.
    Help!

    And do not use AP divs to try to do that.
    For the underlying div (assuming you have a background image) your CSS should be:
    .underlyingDiv {
         background-image: url("/images/myimage.jpg");
    .divThatSitsOnTop {
         margin: (some margin code that places the div where you want it);
    Your html will be:
    <div class="underlyingDiv">
    <div class="divThatSitsOnTop">This sits on top
    </div><!-- This ends  divThatSitsOnTop-->
    </div><!-- This ends underlyingDiv -->
    Now, I have used "Classes" here, not "IDs." Anything that occurs only once in a given web page may be an ID and not a class. Anything that is used several times in a web page must be a Class. Classes are defined in CSS with a dot before them, IDs with a hash (#).

  • How can I put one "shape" on top of another in pages?

    Hi all:
    I'm trying to do something pretty simple.  I made some shapes using the "shapes" tool in the toolbar.  I want to put one shape on top of (or in front of) another but it gives me the masking tool instead.  I tried putting a shap in the background but that didn't work either.  it tends to snap the shape I move to it right back to where it was when I tried to move it.  How can I do this?
    Thanks!

    I really don't understand what you are doing.
    I inserted two shapes with their default settings and I got what you see.
    I unchecked the box "Object causes wrap" but it's usefull when there are text objects in the page.
    Yvan KOENIG (VALLAURIS, France) samedi 7 avril 2012
    iMac 21”5, i7, 2.8 GHz, 12 Gbytes, 1 Tbytes, mac OS X 10.6.8 and 10.7.3
    My Box account  is : http://www.box.com/s/00qnssoyeq2xvc22ra4k

  • Add Total to Stacked Column Chart on the top and another important thing is the data are from SharePoint site

    the same with the following description from another question:
    "How can I display a total on top of each column on a stacked column chart (using
    reporting services 2008)? If I use Data Labels I can display the
    values for each part of the stack on a stacked column, but I want to be display the total.
    For Example: If I have stacked column on chart with a value of 10 for the 1st stack, 20 for the 2nd stack,
    and 20 again for the 3rd stack - I want to display 50 (the SUM total) as the data label on top of the entire column..."
    and a solution for this would create a new column named SUM(category group), this can be done with data source from SQL server, but my data is from SharePoint site list. its query seems can't be changed which means I can't add a SUM column.
    what should I do with this? Can anyone give me a hand?
    thank you very much.

    Hi sophiexu,
    If we want to display a total for each column on the top of a stacked chart, we can use a matrix control to display the column total value to work around this issue.
    The following thread about how to simulate chart legend is for your reference:
    http://social.msdn.microsoft.com/Forums/sqlserver/en-US/cfb4fa19-b2ba-426a-804b-b5ea83d70d62/ssrs-2008-chart-legend-missing-customitems-property
    Hope this helps.
    Thanks,
    Katherine Xiong
    Katherine Xiong
    TechNet Community Support

Maybe you are looking for