Position Of Buttons @Pop-up

Hi all,
I have an pop-up . And i use it in 2-3 views. I want to change the positions of yes/no/cancel buttons. Is it possibe ?
Best Regards,
Orhan

Hi,
Alignment of buttons cannot be done in the pop up. But you can create a view with the alignment that you require and call that for the pop up.
1) Create a View.
2) Map it to a Window.
3) Use that Window as a pop up.
Check the below thread for reference code.
[Re: how to generate pop up window in webdyn pro abap?]

Similar Messages

  • "relative" positioning of buttons in a JFrame

    I want to draw an image as a background on a JFrame and then position several buttons in the frame such that when the frame is resized, the background is resized and the buttons remain "over" the same thing in the background image. I've tried to "do the right thing" and use a layout manager to position the buttons, but they just don't seem to behave like I need them to.
    Is there an easy way to get a button to appear at e.g. 70% horizontally across the frame and 40% down the frame? And then when I resize, have the button still be 70% across and 40% down (based on the new size of the frame). Or should I just give up on the layout managers, and calculate my own absolute positions for everything?
    Thanks

    Check this out:
    import javax.swing.*;
    import java.awt.*;
    public class CompassButtons extends JFrame {
      JButton nb = new JButton("North");
      JButton sb = new JButton("South");
      JButton eb = new JButton("East");
      JButton wb = new JButton("West");
      JViewport viewport = new JViewport();
      public CompassButtons() {
        super("SpringLayout Compass Demo");
        setSize(500,300);
        setDefaultCloseOperation(EXIT_ON_CLOSE);
        SpringLayout sl = new SpringLayout();
        Container c = getContentPane();
        c.setLayout(sl);
        int offset = 50;  // gap between buttons and outside edge
        int w      = 80;  // width of buttons
        int h      = 26;  // height of buttons
        int border =  3;  // border around viewport
        Spring offsetS     = Spring.constant(offset);
        Spring borderS     = Spring.constant(border);
        Spring widthS      = Spring.constant(w);
        Spring halfWidthS  = FractionSpring.half(widthS);
        Spring heightS     = Spring.constant(h);
        Spring halfHeightS = FractionSpring.half(heightS);
        Spring leftEdgeS   = sl.getConstraint(SpringLayout.WEST, c);
        Spring topEdgeS    = sl.getConstraint(SpringLayout.NORTH, c);
        Spring rightEdgeS  = sl.getConstraint(SpringLayout.EAST, c);
        Spring bottomEdgeS = sl.getConstraint(SpringLayout.SOUTH, c);
        Spring xCenterS    = FractionSpring.half(rightEdgeS);
        Spring yCenterS    = FractionSpring.half(bottomEdgeS);
        Spring leftBorder  = Spring.sum(leftEdgeS, borderS);
        Spring topBorder   = Spring.sum(topEdgeS, borderS);
        Spring northX = Spring.sum(xCenterS, Spring.minus(halfWidthS));
        Spring southY = Spring.sum(bottomEdgeS, Spring.minus(Spring.sum(heightS,
                                                                        offsetS)));
        Spring eastX = Spring.sum(rightEdgeS, Spring.minus(Spring.sum(widthS,
                                                                      offsetS)));
        Spring eastY = Spring.sum(yCenterS, Spring.minus(halfHeightS));
        c.add(nb, new SpringLayout.Constraints(northX, offsetS, widthS, heightS));
        c.add(sb, new SpringLayout.Constraints(northX, southY, widthS, heightS));
        c.add(wb);
        sl.getConstraints(wb).setX(offsetS);
        sl.getConstraints(wb).setY(eastY);
        sl.getConstraints(wb).setWidth(widthS);
        sl.getConstraints(wb).setHeight(heightS);
        c.add(eb);
        sl.getConstraints(eb).setX(eastX);
        sl.getConstraints(eb).setY(eastY);
        sl.getConstraints(eb).setWidth(widthS);
        sl.getConstraints(eb).setHeight(heightS);
        c.add(viewport); // this sets a bounds of (0,0,pref_width,pref_height)
        // The order here is important...need to have a valid width and height
        // in place before binding the (x,y) location
        sl.putConstraint(SpringLayout.SOUTH, viewport, Spring.minus(borderS),
                         SpringLayout.SOUTH, c);
        sl.putConstraint(SpringLayout.EAST, viewport, Spring.minus(borderS),
                         SpringLayout.EAST, c);
        sl.putConstraint(SpringLayout.NORTH, viewport, topBorder,
                         SpringLayout.NORTH, c);
        sl.putConstraint(SpringLayout.WEST, viewport, leftBorder,
                         SpringLayout.WEST, c);
        ImageIcon icon = new ImageIcon("images/terrain.jpg");
        viewport.setView(new JLabel(icon));
        // Hook up the buttons.  See the CompassScroller class (on-line) for details
        // on controlling the viewport.
        nb.setActionCommand(CompassScroller.NORTH);
        sb.setActionCommand(CompassScroller.SOUTH);
        wb.setActionCommand(CompassScroller.WEST);
        eb.setActionCommand(CompassScroller.EAST);
        CompassScroller scroller = new CompassScroller(viewport);
        nb.addActionListener(scroller);
        sb.addActionListener(scroller);
        eb.addActionListener(scroller);
        wb.addActionListener(scroller);
        setVisible(true);
      public static void main(String args[]) {
        new CompassButtons();
    }Copyright 2003, O'Reilly & Associates
    Provided as example.
    Cheer
    DB

  • Position of buttons as3

    I need some help with Positions of buttons in AS3. I made a IRC client with AS3, but when a user join a channel, there will be a button added, but if there is already a button and the user join new channel on IRC, there will be added new button also, this for every channel that a user does join, but It should to be positioned after the last button (side by side). Same for if a user join more channels. How can i do this on best way with x and y positions? Ofcourse, it must check first if there is already button on the position if a user did join channel.
    This is my code for now:
    const PADDING:uint = 10;
    const NUM_BUTTONS:uint = 10;
    onChannelButton();
    function onChannelButton():void {
        var test:Sprite = new Sprite();
        var btn:Button;
        //NUM_BUTTONS or btn.length ?
        for (var i:int = 0; i < NUM_BUTTONS; i++)
                btn = new Button();
                btn.name = "btn";
                btn.width = 90;
                btn.x = (btn.width + PADDING) * i;
                test.addChild(btn);
        addChild(test);
    Example how to do: http://oi42.tinypic.com/j5cl0i.jpg
    Thanks!

    var btn_parent:Spirte=new Sprite();
    btn_parent.name="btn_parent";
    MovieClip(root).addChild(btn_parent);
    // whenever you add a btn:
    const COLNUM:int = 25;
    const PADDING:uint = 10;
    const NUM_BUTTONS:uint = 10;
    onChannelButton();
    function onChannelButton():void {
        var btn:Button;
        //NUM_BUTTONS or btn.length ?
        for (var i:int = 0; i < NUM_BUTTONS; i++)
                btn = new Button();
                btn.name = "btn";
                btn.width = 90;
    positionF(btn);
               btn_parent.addChild(btn);
    function positionF(btn:Button):void{
    btn.x = (btn_parent.numChildren%COLNUM)*(btn.width+PADDING));
    btn.y = Math.floor(btn_parent.numChildren/COLNUM)*(btn.height+PADDING);

  • My iphone got smashed and the home button popped out will it be elegible for oow repair?

    I accidentally smashed my iphone 4, the home button popped out and the back side looks bad... but apart from the home button it did not separated in multiple parts. It turns on when plugged. Do you think I could I get a oow replacement?

    You'll need to contact Apple and ask but yes, they probably will replace it for their standard fee.
    Regards.

  • How to position two buttons on top of div element inside a div container?

    Hello!
    Good news...
    I have created my very first thumbnail slider for my website that actually works!
    Bad news...
    The buttons that help scroll the div element, which is wrapped inside a center container, are no longer positioned on top of the div.
    Here is the html:
    <div id="centerContainer">
    <div id="aemcSlider">
       <ul>
        <li>
            <a class="aemcPkgBut" href="" target="" alt="AEMC Packaging" title="AEMC Packaging"> </a>
            </li>
            <li>
             <a class="aemcGroundFlexBut" href="" target="" alt="GroundFlexAd" title="GroundFlex Ad"> </a>
             </li>
         <li>
          <a class="aemcClampBut" href="" target="" alt="Clamp-On Ad" title="Clamp-On Ad"> </a>
          </li>
              <li>
              <a class="aemcMetrixBut" href="" target="" alt="Metrix Ad" title="Metrix Ad"> </a>
              </li>
         </ul>
    </div>
    <div id="leftBut">
    <a class="arrowLeft" href="" target="" alt="Left" title="Left"> </a>
    </div>
    <div id="rightBut">
    <a class="arrowRight" href="" target="" alt="Right" title="Right"> </a>
    </div>
    </div>
    Here is the CSS:
    Main container:
    #centerContainer
    {width: 800px; margin: 0 auto; background-color:#0e210e; position:relative}
    Div Element:
    #aemcSlider
        text-align:center;
        list-style:none;
        width: 450px;
        height: 114px;
        margin: 0 auto;
        padding-top: 0px;
        padding-right: 0px;
        padding-bottom: 0px;
        padding-left: 0px;
        top: 67px;
        position: relative;
        overflow: hidden;
    #aemcSlider a {margin-right: -12px;}
    Left & Right Buttons:
    a.arrowLeft
        width: 29px;
        height: 96px;
        float:left;
        position:absolute;
        margin: 0 auto;
        display: block;
        background-image: url(../Images/arrowLeft.png);
        background-repeat: no-repeat;
        left: 311px;
        top: 91px;
        opacity: 0;
    a.arrowLeft:hover
    background-image: url(../Images/arrowLeft.png);
    opacity: 0.5;
    a.arrowRight
        width: 29px;
        height: 96px;
        position:absolute;
        float:right;
        margin: 0 auto;
        display: block;
        background-image: url(../Images/arrowRight.png);
        background-repeat: no-repeat;
        opacity: 0;
        left: 720px;
        top: 92px;
    a.arrowRight:hover
    background-image: url(../Images/arrowRight.png);
    opacity: 0.5;
    Here are the things I've done to troubleshoot:
    If I put the div element as an absolute container, the left button disapears.
    I get the same effect when I change the position to relative.
    I tried changing the position to relative for both buttons.
    I also tried to position the buttons outside the Main Div container and no go.
    How can I position the relative div element under these controller button?
    Any help would be muchly appreciated.
    ~LA

    OK,
    Got the site onto a public web space.
    Here sre the links...
    http://www.aliciaalmeidagraphicdesigner.com/Work.html
    http://www.aliciaalmeidagraphicdesigner.com/style/Body.css
    http://www.aliciaalmeidagraphicdesigner.com/js/functions.js
    Anyone can help me out, please?
    Thanks!
    LA
    PS: Dissapointed...my website looks much better from my local file than remote

  • Position a button

    how come when i compile, it says :
    :\Documents and Settings\Tang\Desktop\Grid.java:22: cannot find symbol
    symbol : class Position
    location: class Grid
              container.add (button , new Position (0,0) ) ;
    how do i position a button???
    import javax.swing.* ;
    import java.awt.*;
    class Grid extends JFrame
         public static void main (String args [])
              Grid grid = new Grid ();
         public Grid ()
              init() ;
         public void init()
              JFrame frame = new JFrame() ;
              Container container = frame.getContentPane() ;
              container.setLayout (new GridLayout (3,3)) ;
              JButton button = new JButton ("BUTTON1") ;
              container.add (button ,new Position (0,0) ) ;
    }

    There's JavaDoc for Position:
    * Represents a location within a document. It is intended to abstract away
    * implementation details of the document and enable specification of
    * positions within the document that are capable of tracking of change as
    * the document is edited (i.e. offsets are fragile).
    Where the hell is there any word about GridLayout?
    If You want to add to GdidLayout at a given position, you have to select the index of a Component:
    0 | 1 | 2
    3 | 4 | 5
    6 | 7 | 8
    so if you want to add it into center grid:
    add(button,4)

  • Can anybody help me? How to set the position of a pop up window(new Jframe)

    in my program, there is a functionality such as this: user clicks the button and then system generate a new window(new Jframe),
    but the posistion in the screen where the window was generated is fixed, everytime it pops up at the left side of my main frame, I am just wondering is there a way of seting the posistion of the window which will pop up?
    thanks for your reply

    Sure. Read the JFrame API. Look at all the setXXX methods and you will find one that allows you to set the location of the frame on the desktop.

  • Bad Position Volume Button!

    Anybody else have a problem with the volume button getting pressed as you hold the iPad2 in your lap? I ssit on the couch, feet on an ottoman, iPad2 propped on my lap with the Smart Dcover folded under, and as I shift the iPad around, the volume button will decrease! It seems to me this is a bad position for a toggle switch on an edge that is frequently positioned against your lap! With it in this place, there needs to be a lock, either software or hardware, to keep it from fluctuating. Any thoughts?

    Is it not in the same position as on the original. No matter where they put it, someone will complain that it is in a bad position.
    Perhaps you should condition yourself to use the device that you have, not the one that does not exist.
    Going on two weeks with an iPad 2 and have never accidentally changed the volume.
    Dah•veed

  • Change position of button in navigation menu

    I hope this is a simple issue. I want to make it so that if I change the position of a button I put in the navigation menu the position will change throughout the whole site.
    Thanks

    Georgeonetwothree wrote:
    it is part of a dreamweaver template
    If it's part of a DW template then once you save the page all pages using that template should update automatically.

  • Button pops link in a new window

    Hello everyone,
    This is a rather simple question for all gurus out there, but
    it seems a bit hard to find on documentation. How can you open a
    link in a new window with a button in a flash form? I want a button
    on my form to pop a new window with the specified link (on this
    case, with certain parameters attached to it). How would you
    approach this?

    What would the syntax for that be, and what would I add for
    it to pop on a new window? Pardon, but I'm new on this

  • Configure This Portlet 'Edit' button pop up shows error

    When I try to create a new portlet based on the 'Header' portlet by opening the Portlet Configuration Wizard and choosing the 'Header' portlet from the 'Published Content Portlets' 'en' folder, that works fine. But then once the pop up closes and the parent browser changes to the 'Create Portlet' screen, I click on the 'Edit' button next to 'Configure This Portlet', and the pop up shows me the following error in plain text:
    "Unable to locate the configuration for the portlet template from which the portlet was created. Portlet template folder may have been deleted."
    I noticed I have a file called published-content-portlets.zip in the C:\Program Files\plumtree\ptcs\6.2\settings\migration folder. Was I supposed to unzip this somewhere? I did the import server package when I installed publisher and I'm sure that worked great - else I wouldn't be seeing my Publisher admin folder w/ all the goodies in it. Thoughts or help?

    i have same problem i wrote other newsgroup but no any reply.
    mine is publisher 6.4
    and i found that it cann not migrate the all object from
    published-content-portlets.zip
    Becuase when check from log it says
    unable to import files from folder ........
    any suggestion.

  • [iOS][Playlists] Offline Music Confirmation Button/pop-up (mobile app)

    In the mobile app (IOS and Android), I would like to see a confirmation button or pop-up window if I push the button to make a playlist available Offline OR when removing a playlist from Offline availablility.
    OR if possible, instead of just a button, make the "Available Offline" slider longer so the motion is more deliberate, rather than a simple tap.
    In trying to get used to holding a new phone (iphone6) I accidentally removed a playlist from offline availability.  I tapped the button again and managed to save about 3/4 of the playlist, but it still meant having to sync up about 100songs again.
    Thank you,
    -Dave

    Updated: 2015-07-27Hello and thanks for the feedback!
    A similar idea has also been suggested here:
    https://community.spotify.com/t5/Live-Ideas/Double-check-when-people-touch-the-offline-button/idi-p/1034137
    Add your kudos and comments there please! ;)

  • Subpicture Highlight shifts position on button when a shadow is applied in PS.

    Hi all,
    I created a menu in PS CS4 with text (some with drop shadows) that i assigned as buttons in Encore CS4. When i converted the text into buttons, I discovered that the ones with drop shadows caused the subpicture highlight to shift position up and to the right of the button.
    Can someone verify this?

    Jim,
    I'm not sure why you are having troubles with your converted to DV-AVI files. I get handed MPEG-2 material in several delivery schemes, and just do the conversion with DigitalMedia Converter, before I Import into PrPro. I seldom have any issues with these. The only issue is that with a very few, PrPro does not see the proper Duration. I have found that with these, I just open them in PrElements (they always show correct Duration), and then just do an Export as DV-AVI Type II (same exact format/CODEC and settings as what I Imported), and these "processed" files work 100% in PrPro. I've never been able to find any difference between the DMC converted DV-AVI's, and those run through PrE, but there has to be something different.
    As for the quality, you have to remember that the source footage was first compressed to MPEG-2, and to get it onto DVD, you'll be recompressing it again. Now, for light editing, there are NLE programs that do "smart rendering," where the Exported MPEG-2 will NOT be re-compressed, except for the exact areas that were changed. PrPro does not have smart rendering.
    Exporting to DV-AVI Type II, and Importing those into Encore, will give you quality as good as it will get. You CAN Export as MPEG-2 (DVD-compliant) from PrPro and can adjust your bit-rate (controls quality), but you are likely to not do better than Encore will on Automatic.
    Working from perviously compressed material will never yield results as good as going back to the original camera footage. Those compressions/re-compressions destroy quality.
    Good luck,
    Hunt
    PS - globally replacing Assets in PrPro is not really possible. Unless CS4.2 (coming soon) has a new feature in the Project Panel, I only know of one way - Offline Media, the Link Media. As there are no Actions, or Scripting in PrPro, like in Photoshop, it's a manual, and often tedious process.

  • How do I position menu buttons individually?

    I'm new to Muse and I'm working on a header for my website.  I have our company's logo in the middle as part of the header, so I'm trying to position the menu buttons around the logo.  Right now, one of the buttons overlaps the logo and I cannot figure out how to push that button over to the other side so it doesn't block the logo (Please see attached screenshot).
    Can someone please help?
    Thanks!
    Cody

    One possible way is to have the center button be "home" and then Arrange your logo to the top of the layer so it hides it.
    See: http://www.youtube.com/watch?v=MBKL2hCIj_U

  • How to position a button in Calendar?

    By default in a Calendar Region template, the #PREVIOUS# or #NEXT# regional buttons are on the bottom of the Calendar Region. What I want to do is move these button next to the Month Title.
    For example, #PREVIOUS# September 2009 #NEXT#.
    When I try to position this in the Calendar region, the regional buttons do not show up, but just the character words of "#PREVIOUS# September 2009 #NEXT#".
    Here is what I used to add..
    <td class="t13MonthTitle" class="t13Button">#PREVIOUS# #IMONTH# #YYYY# #NEXT#</td>
    I'm able to move the item buttons in different positions, but not on the Monthly title. It seems the regional buttons can only be position on top or botton of the calendar.
    Any help would be appreciated.
    Rod

    Hi,
    Create a copy of your calendar template, attach this to your calendar and then edit the template. Add in:
    &lt;a href="javascript:doSubmit('PREVIOUS')" class="t13Button" &gt;&amp;lt; Previous&lt;/a&gt;
    and
    &lt;a href="javascript:doSubmit('NEXT')" class="t13Button" &gt;Next &amp;gt;&lt;/a&gt;
    wherever you want the buttons to be.
    On your page, set a Condition of Never for the two actual buttons.
    Andy

Maybe you are looking for