Relative positioning of windows

I need class B, which is called from class A to appear at the same coordinates as A when it is called. I've included code below, can anyone tell me where I'm going wrong? Which is the best way to do it?
import javax.swing.JFrame;
import javax.swing.JPanel;
import javax.swing.JComponent;
public class A extends JPanel {
     public JFrame aFrame;
     public int x=aFrame.getX();
     public int y=aFrame.getY();
     public static void main(String[] args) {
         javax.swing.SwingUtilities.invokeLater(new Runnable() {
             public void run() {
                 A a = new A();
                 new B();
    public A()
        aFrame = new JFrame("A");
        aFrame.setSize(400,400);
        aFrame.setLocationRelativeTo(null);     //centres frame on screen
        aFrame.setLocation(10,10);
        aFrame.getContentPane().add(addFormComponents());
        //Display the window.
        aFrame.pack();
        aFrame.setVisible(true);
    public JComponent addFormComponents()
         JPanel form = new JPanel();
         //     add stuff here
         return form;
import javax.swing.JFrame;
import javax.swing.JPanel;
import javax.swing.JComponent;
public class B extends A {
     public JFrame frame;
    public B()
        frame = new JFrame("B");
        frame.setSize(400,400);
        //JComponent c=aFrame;
        //frame.setLocationRelativeTo(aFrame.getX(), aFrame.getY());
        //frame.setLocationRelativeTo(c);
        frame.setLocation(x,y);
        frame.getContentPane().add(addFormComponents());
        //Display the window.
        frame.pack();
        frame.setVisible(true);
    public JComponent addFormComponents()
         JPanel form = new JPanel();
         //     add stuff here
         return form;
}

Initialize the x and y after aFrame.setLocation
i.e.
public class A extends JPanel {
public int x;
public int y;
public A()
        aFrame = new JFrame("A");
        aFrame.setSize(400,400);
        aFrame.setLocationRelativeTo(null);     //centres frame on screen
        aFrame.setLocation(10,10);
        x=aFrame.getX();
         y=aFrame.getY();
        aFrame.getContentPane().add(addFormComponents());
        //Display the window.
        aFrame.pack();
        aFrame.setVisible(true);
    }In your original code after getting the value of x and y you are changing the position of A. For this your B is not coming in the same co-ordibate
Hope it helps :)

Similar Messages

  • Font Smoothing + Relative Positioning = Problem

    Hello,
    I ran across a strange inconsistency while designing a relative position based layout.
    My page has two divs, both relative positioned for height. They do not overlap. The page renders excellent in Firefox 3.5, and not bad in Chrome (though a little different from FF). Safari however pushes my second div down too far.
    I found that by disabling font smoothing (or rather switching it to anything besides "windows standard") fixes this issue. However there isn't even any actual text on the site, at all. There's 4 images, a couple input fields and a submit button.
    I can post some of the code, or example screenshots of what's happening. I've tried a couple css hacks to target safari (without targeting chrome) with no success. Anybody have any advice?
    Thanks,
    Tom

    Please disreard...
    I got it figured out. I just moved the paragraph tag outside
    of the table
    and changed the position from bottom:50% to top:50%
    once the <p> was moved out of the table, it's normal
    position would be at
    the very top. So, I moved it 50% down from the top using
    relative
    positioning. Being inside the table caused it to not work in
    Gecko? I
    wonder why?
    "-D-" <[email protected]> wrote in message
    news:f7fr0d$jb8$[email protected]..
    > I'm using relative positioning for an <p> tag that
    is positioned normally
    > at the bottom of a table cell "valign="bottom".
    >
    > I set the paragraph tag to <p
    >
    style="position:relative;bottom:50%;text-align:center;line-height:1.6em;">
    >
    > so, the text will position itself 50% from the bottom
    positioning. This
    > works fine in IE, but Mozilla and Netscape still
    position the text at the
    > bottom of the table cell.
    >
    > Here is the test page to see what is happening:
    >
    http://www.dwayneepps.com/contact.aspx
    >
    > fill out the form and click send to see the problem.
    >
    > Thanks for any help.
    >

  • Relative position of splitter in panelSplitter

    Hi.
    I wount to set the splitterPosition in panelSplitter to a relative value, e.g. 50%.
    I see that only an integer value is possible for this attribute.
    Is it possible to achieve a relative position to the availabe space on the screen?
    I need it also for the case the web browser window is resized and the splitters should be moved relativelly to the new available screen size.
    Best regards.
    Paul.

    Hmmmm... That's not working either.
    Inserting this expression into an Effect's point control doesn't put it in the right position.  I tried inserting this expression into another (2D) null's position, but it's in the same incorrect place.
    Original Null A Position (from C4D project import).  This comp is put into Comp ZZ.
    Applying that Expression to Null's position in Comp ZZ puts the new Null B way off in the corner.

  • Problems with relative positioning divs

    Hi all,
    I'm still new to this css layouts thing, but am stumped by this problem. I have numerous parent divs with multiple child divs within them on my page design, and for some reason these child divs are not taking up the correct spacing that I enter in the CSS. They are all relative positioned, mostly using floats and clears (and I don't think I've missed any of those). Help! Hoping that it's something simple I've missed.
    To pinpoint one example of this recurring problem, the #sidenav_one div will float: left with a spacing of top 8px and left 8px, but then #sidenav_two refuses to float: left, clear: both with a spacing of top 8px (I've had to put in 16px to actually get 8px, in both Firefox, Safari and Opera). (relevant parts of code highlighted).
    I am happy to change how I've structured the page, if people think there is a better or cleaner way to do it. Thanks in advance.
    A
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
    <title>United Future Foundation</title>
    <style type="text/css">
    <!--
    #container {
        position:absolute;
        left:517px;
        top:15px;
        width:972px;
        height:auto;
        z-index:1;
        background-color: #999;
        margin-left: -461px;
        padding-bottom: 25px;
    #banner {
        position:relative;
        width:872px;
        height:210px;
        z-index:2;
        background-color: #FFF;
        float: left;
        left: 50px;
        top: 15px;
        color: #999; 
    #banner_left { 
        position:relative; 
        width:450px; 
        height:70px; 
        z-index:2; 
        float: left; 
        left: 5px; 
        top: 5px; 
    #banner_right { 
        position:relative; 
        width:208px; 
        height:200px; 
        z-index:2; 
        float: right; 
        top: 5px; 
        right: 5px; 
    #banner_name { 
        position:relative; 
        width:550px; 
        height:140px; 
        z-index:2; 
        clear: left; 
        float: left; 
        left: 5px; 
    .rounded { 
        -moz-border-radius:5px; 
        -webkit-border-radius:5px; 
    body { 
        font-family: "Myriad Pro", "Helvetica Neue", sans-serif; 
    p { 
        font-family: "Myriad Pro", "Helvetica Neue", sans-serif; 
        font-size: 14px; 
        color: #000; 
    h1 { 
        font-size: 16px; 
        color: #000; 
        text-align: center; 
        vertical-align: top; 
    h2 { 
        font-size: 20px; 
        color: #000; 
        text-align: left; 
    #content { 
        position:relative; 
        left:50px; 
        width:872px; 
        height:auto; 
        z-index:2; 
        clear: both; 
        float: left; 
        background-color: #FFF; 
        top: 20px; 
    #sidenav_one {
        position:relative;
        left:8px;
        top:8px;
        width:136px;
        height:44px;
        z-index:2;
        background-color: #999;
        float: left;
        overflow: hidden;
    #sidenav_two {
        position:relative;
        left:8px;
        top:16px;
        width:136px;
        height:44px;
        z-index:2;
        background-color: #999;
        float: left;
        overflow: hidden;
        clear: left;
    #sidenav_three { 
        position:relative; 
        left:8px; 
        top:24px; 
        width:136px; 
        height:44px; 
        z-index:2; 
        background-color: #999; 
        clear: left; 
        float: left; 
        overflow: hidden; 
    #text { 
        position:relative; 
        top:8px; 
        width:700px; 
        height:auto; 
        z-index:2; 
        background-color: #FFF; 
        float: right; 
        right: 14px; 
    #home_home { 
        position:relative; 
        width:250px; 
        height:188px; 
        z-index:3; 
        clear: both; 
        float: left; 
        top: 10px; 
        left: 31px; 
    #home_about { 
        position:relative; 
        left:30px; 
        width:250px; 
        height:188px; 
        z-index:2; 
        float: left; 
        top: 10px; 
    #home_events { 
        float: left; 
        height: 188px; 
        width: 250px; 
        position: relative; 
        left: 30px; 
        top: 10px; 
    -->
    </style>
    <script type="text/JavaScript" src="curvycorners.js"></script>
    <script type="text/JavaScript">
    window.onload = function() {
        var settings = {
          tl: { radius: 5 },
          tr: { radius: 5 },
          bl: { radius: 5 },
          br: { radius: 5 },
          antiAlias: true
        var divObj = document.getElementById(".rounded"); 
        curvyCorners(settings, divObj);
    function MM_preloadImages() { //v3.0
      var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
        var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
        if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
    function MM_swapImgRestore() { //v3.0
      var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
    function MM_findObj(n, d) { //v4.01
      var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
        d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
      if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
      for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
      if(!x && d.getElementById) x=d.getElementById(n); return x;
    function MM_swapImage() { //v3.0
      var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
       if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
    </script>
    </head> 
    <body onload="MM_preloadImages('images/news_down.jpg','images/about_down.jpg','images/what_up.j pg','images/who_down.jpg','images/support_down.jpg','images/contact_down.jpg')">
    <div class="rounded" id="container">
    <div class="rounded" id="banner">
    <div id="banner_left"><img src="banner_uff.jpg" width="450" height="70" /></div>
    <div id="banner_right"><img src="ufflogo.jpg" width="208" height="200" /></div>
    <div id="banner_name"><img src="banner_name.gif" width="509" height="133" /></div>
    </div>
    <div id="spot">you are here</div>
    <div class="rounded" id="content">
    <div id="text">
    <h2> Breaking the Cycle - United Future Foundation</h2>
    <p>United Future Foundation is an Australian non-government organisation operating in Uganda. UFF is “breaking the cycle” through education. We believe that education is the primary means of creating lasting change, increasing literacy and improving employment. UFF is building a combined primary school and vocational training centre for over 300 students in the Kasanje region of Uganda. </p>
    <p>United Future Foundation is focussed on facilitating access to education and skills training for disadvantaged youth in poverty stricken and remote areas of Uganda. We strongly believe that education is the first and foremost method to break the cycle of illiteracy, ill health and lack of opportunities. </p>
    </div>
    <div class="rounded" id="sidenav_one">
        <h1>News</h1>
    </div>
    <div class="rounded" id="sidenav_two">
      <h1>Press Releases</h1>
    </div>
    <div class="rounded" id="sidenav_three">
        <h1>Media</h1>
    </div>
    <div id="home_home"><a href="#" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('home','','images/news_down.jpg',1)"><img src="images/news_up.jpg" name="home" width="250" height="188" border="0" id="home" /></a></div>
    <div id="home_about"><a href="#" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('about','','images/about_down.jpg',1)"><img src="images/about_up.jpg" name="about" width="250" height="188" border="0" id="about" /></a></div>
    <div id="home_events"><a href="#" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('events','','images/what_up.jpg',1)"><img src="images/what_down.jpg" name="events" width="250" height="188" border="0" id="events" /></a> </div>
    </div>
    </div>
    </body>
    </html>

    This is much simpler than you would think. You're making it hard work for yourself because you believe css is much more comlex than it really is or need be.
    You rarely need to use relative positioning at all. You are using too many <divs> and redundant css attributes to reach your goals.
    Think of the web as a simple structure of boxes and ino those boxes you place html tags or 'when' needed other <divs> ('when' is the choice word here. In time you will know when and when not to)
    Copy the css and page code below and paste into a new Dreamweaver document. See how much leaner and cleaner the css and html code is.
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
    <title>Untitled Document</title>
    <style type="text/css">
    body {
    font-family: "Myriad Pro", "Helvetica Neue", sans-serif;
    p {
    font-family: "Myriad Pro", "Helvetica Neue", sans-serif;
    font-size: 14px;
    color: #000;
    .rounded {
    -moz-border-radius:5px;
    -webkit-border-radius:5px;
    #spot {
    text-align: right;
    #container {
    margin: 0 auto; /* horizontally centers container which has a width */
    margin-top: 15px;
    width: 972px;
    background-color: #999;
    padding-bottom: 25px;
    overflow: hidden; /* a method to clear floated containers within a parent container */
    #banner {
    width: 872px;
    height:210px;
    background-color: #FFF;
    margin: 0 auto; /* horizontally centers container which has a width */
    margin-top: 15px;
    color: #999;
    #banner_left {
    width:509px;
    float: left;
    margin-left: 5px;
    margin-top: 5px;
    #banner_right {
    width:208px;
    height:200px;
    float: right;
    margin-right: 5px;
    margin-top: 5px;
    #banner_name {
    position:relative;
    width:550px;
    height:140px;
    clear: both;
    margin-left: 5px;
    #content {
    margin: 0 auto; /* horizontally centers container which has a width */
    width:872px;
    background-color: #FFF;
    margin-top: 20px;
    overflow: hidden; /* a method to clear floated containers within a parent container */
    #sidenav {
    margin-left:8px;
    margin-top:8px;
    width:136px;
    float: left;
    h1 {
    font-size: 16px;
    color: #000;
    text-align: center;
    background-color: #999;
    padding: 10px 0 10px 0; /* short hand for top/right/bottom/left */
    margin: 0 0 6px 0; /* short hand for top/right/bottom/left */
    #text {
    margin: 8px 0 0 18px; /* short hand for top/right/bottom/left */
    width:700px;
    background-color: #FFF;
    float: left;
    #home_home {
    width:750px;
    height:188px;
    clear: both;
    margin: 10px 0 0 31px; /* short hand for top/right/bottom/left */
    #home_home img {
    float: left;
    </style>
    </head>
    <body>
    <div class="rounded" id="container">
    <div id="spot">you are here</div>
    <div class="rounded" id="banner">
    <div id="banner_left"><img src="banner_uff.jpg" width="450" height="70" /><img src="banner_name.gif" width="509" height="133" /></div><!-- end banner left -->
    <div id="banner_right"><img src="ufflogo.jpg" width="208" height="200" /></div><!-- end banner right -->
    </div><!-- end banner -->
    <div class="rounded" id="content">
    <div class="rounded" id="sidenav">
        <h1>News</h1>
        <h1>Press Releases</h1>
        <h1>Media</h1>
    </div><!-- end sidnav -->
    <div id="text">
    <h2> Breaking the Cycle - United Future Foundation</h2>
    <p>United Future Foundation is an Australian non-government organisation operating in Uganda. UFF is “breaking the cycle” through education. We believe that education is the primary means of creating lasting change, increasing literacy and improving employment. UFF is building a combined primary school and vocational training centre for over 300 students in the Kasanje region of Uganda. </p>
    <p>United Future Foundation is focussed on facilitating access to education and skills training for disadvantaged youth in poverty stricken and remote areas of Uganda. We strongly believe that education is the first and foremost method to break the cycle of illiteracy, ill health and lack of opportunities. </p>
    </div><!-- end text -->
    </div><!-- end content -->
    <div id="home_home"><a href="#" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('home','','images/news_down.jpg',1)"><img src="images/news_up.jpg" name="home" width="250" height="188" border="0" id="home" /></a>
    <a href="#" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('about','','images/about_down.jpg',1)"><img src="images/about_up.jpg" name="about" width="250" height="188" border="0" id="about" /></a>
    <a href="#" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('events','','images/what_up.jpg',1)"><img src="images/what_down.jpg" name="events" width="250" height="188" border="0" id="events" /></a>
    </div><!-- end home_home -->
    </div><!-- end container -->
    </body>
    </html>

  • Is there a script to position document windows?

    I think it's likely that someone (Dave?) has written a script for this, but I can't find one.
    I want to open (or at least reposition) document windows on my second monitor, not under the open panels on the primary display on my MacBook screen; and I'd like to find a way of doing this with keystrokes.
    If a script doesn't exist, is it possible, or is there some roadblock? Should I post in the scripting forum?

    I have indeed written such a script, but it is not aware of second monitors, and off the top of my head, I'm not sure how to make it aware.
    Ah, it doesn't have to be aware. The bounds are relative to the total monitor space. So my script will work.
    Here you go:
    //DESCRIPTION: Resets active window size or uses front window to set default size.
    // Check for WindowDefault.txt; if present use it to set front window
    // if not, use front window to set it after checking with user.
    myPath = app.activeScript;
    myParts = myPath.toString().split("/");
    myParts[(myParts.length - 1)] =  "WindowDefault" + app.version.slice(0,1) + ".txt";
    myNewPath = myParts.join("/");
    mySettingsFile = File(myNewPath);
    // Before proceeding, check that there is a front window
    // If not, offer user the chance to delete the current settings
    if (app.windows.length < 1) {
    beep();
    if (confirm("No window is open; would you like to delete the settings file?")) {
      // User said yes; check that it exists
      if(mySettingsFile.exists) {
       mySettingsFile.remove();
    } else {
    if (mySettingsFile.open("r")) {
      savedBounds = mySettingsFile.read();
      mySettingsFile.close();
      myBounds = savedBounds.split(",");
      for (i = 0; i<myBounds.length; i++) {
       myBounds[i] = Number(myBounds[i]);
      app.windows[0].bounds = myBounds;
    } else {
      beep();
      if (confirm("Settings file is missing. Use current front window to set default?")) {
       // User said: go to it.
       new File(mySettingsFile);
       mySettingsFile.open("w");
       mySettingsFile.write(app.windows[0].bounds);
       mySettingsFile.close();
    Before you run the script for the first time, position a window where you want this script to position all subsequent windows. It keeps the information in a text file in the same folder as the script. You can reset the position by editing the file (that's what I often do to fine tune the position) or by running the script again with no window open.
    Dave

  • White space below footer due to Relative Positioning?

    I'm pretty new to coding. I'm learning how to do a responsive website and everything is working, EXCEPT for the huge blank space below the footer at the largest screen resolution. I know it is because of the relative positioning I used for the "samples" section. I know this question has been asked before. I've tried the suggestions, but cannot seem to get it to work. I cannot figure out a way to accomplish having the "samples" section at the spot I want without using relative positioning. I've tried "float" to no avail.
    Everything is working, except for the huge space below the footer at the largest screen size for my responsive page.
    Instead of pasting my .html and 3 .css files here, here is my site of which you can right click and "view page source" to get all the code. Don't want to make my question look too long!
    Here: grc198.orijenaldesigns.com
    Any help would be much appreciated!

    Hi,
    Please share the URL of the web site.
    Regards,
    Abhishek Maurya

  • Do I understand AP Divs & relative positioning?

    Hello.
    So to cut a long story short....
    I am newbie & plunged into creating my first website using all AP elements, only to find out that this is not a good way because of the nature of the AP's.
    After much help from this forum (PZ in particular) I decided to do my research a little bit more.
    I still have to create another website that I guess should really be built in flash (as suggested by someone). But as I dont know Flash this is not an option. (please see attached design concept).
    The only elements I really need at this point would be for the "get a quote" & "about", "contact" bubbles to have rollover states that change colour when the mouse goes over them.
    I have been trying to find the best way of doing this without AP elements.
    1) Create a Div container with the main image for the background, then insert a table and try to insert the rollover images that way. But after research, I am finding that I should be steering away from tables and moving towards CSS. Which then led me to Idea no 2.
    2) Create a Div container with the main image for the background, then insert Div's and adjust the margins (relative positioning?) to move to the Divs in correct places I need the rollovers. But again I read that this method should only be done for tweaking a web page and not  structuring a webpage as may cause problems.
    3) Create a Div container with the main image for the background, then insert Div's in a grid like system (see attached image of my guides where I would place Div's), But this seems a over complicated way to do it and you end up with divs that have no use & lots of unwanted code.
    OR am I right in thinking this works?
    4) Apply a relative positioned Div, set background image, then place AP div's inside RP Div that I would use for my rollovers? If I did this would this then avoid the problem of the AP divs moving in different browsers?
    Or have I got this all completely wrong and have to go back to the drawing board again?
    Your thoughts would be appreciated :-)
    Many thanks in advance
    Louisa

    Build your HTML content logically from top of page to bottom of page.  Use default CSS positioning (which is no positioning at all) for the majority of your page layout.
    Use AP Divs only when absolutely necessary because doing so removes them from normal content flow.
    To control APDivs in relation to other content on the page, you many need to wrap them inside a relatively positioned container.
    Example of APDivs inside a Relatively positioned container:
    http://alt-web.com/DEMOS/CSS-Disjointed-Menu-Rollover.shtml
    As far as your design concept goes, you could do this a number of ways.  With CSS sprites or an Image Map, for example.
    http://alt-web.com/DEMOS/CSS-Sprites.shtml
    Nancy O.
    Alt-Web Design & Publishing
    Web | Graphics | Print | Media  Specialists
    www.alt-web.com/
    www.twitter.com/altweb
    www.alt-web.blogspot.com

  • Bug: Front Panel objects relative position change when placing merge VI onto Block Diagram

    I've posted a bug report on LAVA, here:
    http://forums.lavag.org/Front-Panel-objects-relati​ve-position-change-when-placing-merge-VI-onto-Bloc​...
    If someone at NI can reproduce, can I please get a CAR #?
    Thanks,
    -Jim
    Solved!
    Go to Solution.

    Donovan B wrote:
    Hi Jim,
    After my previous post, I also saw this behavior, so I decided to do another test.  If there are no decorations in the VI set to “Merge VI” (“Place VI Contents” for LabVIEW 8.5 and later) the controls and indicators are still not selected when dropping the VI from the Functions palette.  I checked this behavior back to LabVIEW 7.1 and it is consistent throughout that controls and indicators are not selected.  (Consequently, so is the fact that when decorations are present they don’t maintain the relative position).
    I am not sure if this would be better suited as a CAR or product suggestion since it has been this way that long, but it does not appear to be related to the fact that decorations are present in the Merge VI.  It does seem strange that the decorations are selected though.  Looks like the best way to work around this is to drop the VI from the Controls palette.  Hopefully, it’s not too much of a hassle.
    Hi  Donovan,
    Thanks for checking in.
    >  I checked this behavior back to LabVIEW 7.1 and it
    is consistent throughout that controls and indicators are not
    selected.  (Consequently, so is the fact that when decorations are
    present they don’t maintain the relative position).
    This just means that not many people use this feature.  However, now that VIPM Professional makes it so easy to edit the palettes, I'm sure that others will start complaining that this doesn't work as they expect.
    > I am not sure if this would be better suited as a CAR or product suggestion
    since it has been this way that long, but it does not appear to be
    related to the fact that decorations are present in the Merge VI.
     Just look up the functional specifications for this feature and see if all objects are supposed to be selected.
    But seriously, is there a reason that only the FP decorations are selected?  Surely this would be documented somewhere, if there was a good reason for this current (IMO, buggy) behavior.
    > It
    does seem strange that the decorations are selected though.  Looks like
    the best way to work around this is to drop the VI from the Controls
    palette.  Hopefully, it’s not too much of a hassle.
    That's not a reasonably work-around, IMO.  It doesn't make sense to drop Block Diagram components onto the Front Panel.  For example, this bug affects the JKI State Machine.  It doesn't make sense to drop a State Machine onto the Front Panel.
    So, I'd file it as a CAR/bug, and then wait to see how LV R&D feels about it.  If they can find some valid reason for why Controls and Indicators shouldn't be selected, then that's fine (and hopefully someone will explain it to me).
    Thanks,
    -Jim

  • Relative position of dock icons cannot be changed by dragging.

    I have just moved from Tiger to Leopard and am trying to reorganize the dock I inherited from the older OS. In particular, I wish to change the relative positions of the icons. The old (Tiger) method of drag and drop didn't work ... any icon I try to move always snaps back into its former position when I release it. This happens in both the applications and folder categories on the dock.
    I consulted the documentation for Leopard and it describes the same old way of moving icons as with Tiger. Clearly this simply does not work. I searched this forum with "dock icon" and didn't find any discussion of this phenomenon.
    It looks like a bug. Has anyone else encountered this?

    Hi Norman,
    Try moving your mouse down when you're shifting icons. I find that if you keep your cursor at the level of the other icons (as opposed to below them), the icons won't shift aside. You could also try pulling the Dock icon you're trying to move out of the Dock region and putting it back in at the new place. It's not the most intuitive of behavior, I know.
    Hope that helps!
    —Hazy

  • Relative positioning of two cross tabs.

    I have two cross tabs. The first one is dynamic as the number of columns change based on user prompts. The second cross tab is fixed one column which is attached as the last column to the first cross tab.
    When the columns of first cross tabs change, the second cross tabs column doesnot move across to fit as a last column i.e., there is no relative positioning between the cross tabs..
    How do we achieve this? Any help would be greatly appreciated.
    Thanks,
    Adam

    Right click on the section where the two crosstabs placed and go to section expert and check the option "Relative Positions"
    Regards,
    Raghavendra

  • Relative Positioning of Slices

    Why doesn't FW allow you to export your slices using relative
    positioning!? I might as well ignore the export css feature all
    together.
    I need to insert FW html into an already existing html
    document, but the absolute positing of the elements is causing me
    to have to hand code every individual slice. A major hassle.
    Is there something I'm missing? Does anyone have a quick way
    of modifying FW css to relative positioning?

    romeogq wrote:
    > Noooo, please don't be serious. That's basically what
    I've been doing... and
    > it's way too time consuming, especially when I could
    simply export using
    > tables. Just trying to figure out the simplest way to
    export to css with
    > relative positioning. My graphic has about 40 slices,
    hence I really do not
    > want to hand code.
    >
    Have you checked out the SMART CSS extension available on
    Adobe's web
    site? It may help.
    Jim Babbage - .:Community MX:. & .:Adobe Community
    Expert:.
    Extending Knowledge, Daily
    http://www.communityMX.com/
    CommunityMX - Free Resources:
    http://www.communitymx.com/free.cfm
    .:Adobe Community Expert for Fireworks:.
    news://forums.macromedia.com/macromedia.fireworks
    news://forums.macromedia.com/macromedia.dreamweaver

  • SAPScript: Positioning a Window (Graphic) behind the main window

    Hello,
    I want to print a graphic behind the main window. But I am not able positioning a window or graphic-window behind the main window. The result is that my graphic always shows up in front of the printed text of the main window and not behind the text of the main window, as I wish. I thought that the order of the windows determines which windows is on top? But I am not able of putting a window before the 'MAIN' design window.
    Regards, Lars.

    Hi Lars
    Please check the following thread:
    ABAP Development
    /: BITMAP MYLOGO OBJECT GRAPHICS ID BMAP TYPE BMON
    I think, trick must be in 'TYPE'.
    Try to explore what options you can have (here it is BMON). I will also try.
    Regards
    Ashish Jain

  • SAP Script :change position of window margins (resize window)

    Hi,
    how to change position of window margins (resize a window)?
    Sounds very simple, but when I open my SAPScript form in layout editing mode it does not allow me to change values of window margins...
    Regards,
    Mindaugas

    Hi...
    Make sure your entering language and orginal language of the script is same or not.
    utilities -> convert orginal language..
    Procedure if you are using English as entering language:
    Enter script name -> Enter language as DE -> change -> utiliteis -> convert orginal language -> change it DE to EN -> now back and re-enter into script...
    Thanks,
    Naveen.I

  • Re: Pre-positioned finder windows get moved automatically!    Mac OS » Ma

    Re: Pre-positioned finder windows get moved automatically! (Mac OS » Mac OS X v10.6 Snow Leopard » Finder and Dock, Sep 19, 2009 11:23 PM)
       I could not find my original post to add this to.
       I have discovered that CONTROL-Command-O will open a pre-positioned window in place while closing its parent. (I think it was Option-Command-O previously.) If you are working in folders within folders, you will need to move the topmost window slightly to the side to allow the first level to open in pre-positioned place.
       Has anyone discovered the procedure to go back up to the top level -- with key strokes or without -- while keeping the original position of the higher up window?
       Is there a way to open an enclosed folder in place without having to close the parent?

    Is there a way to open an enclosed folder in place without having to close the parent?
    Not sure you can get there from here
    Double-clicking will open an enclosed Folder in place, in step fashion....all you need to do to move back is to either click 'Back' in the menu bar of that window.
    Double-click on the parent folder in the icon row along the bottom of that window to move back to it or any higher level folder to the left.
    If you hold the command key and click once on the icon in the top center of that window's upper margin, you will see a vertical list of any parent folders in order (top most at the bottom)...click on one to move to it.
    As you can see, 'back' here is thus defined at least three ways: back, left & down. While it can be distracting to some people who may prefer what at least appears to be a more structured environment, the goal is to provide choices so that the OS appears to provide flexibility rather than being hardwired/inflexible. Don't let the number of choices confuse you - find a style that suits your flow and be happy.
    If you want to peer into some of the thinking behind Apple software, you would do well to invest time (and I don't mean just a quick glance) in reading the 'Apple Human Interface Guidelines' at this link...

  • Reading relative position on multiple axis

    Hi all,
    I need to read the relative position on two axis via the encoders. I have open loop steppers with encoders. I can read the encoder position on one axis easy enough be we need to read the encoder position of two axis simultaniously. I have looked at high speed capture but this only supports one axis. We have the top end motion card 7358. Taking two reads of the encoders a different times is not good enough for our application - any ideas? I guess I could write a DSP program, if this is the answer does anyone know of any examples? I was hoping there would be an easier way to solve this challenge.
    TIA
    -Martin
    Certified LabVIEW Architect

    Dear Martin.D
    To effectively measure and monitor the position of the encoders, use the DAQmx functions. And use a digital trigger with the source as the encoder channel that starts recording data as soon as the encoder is initialised. Look at the Cont Acq & chart samples Int-Clk-Dig Start VI in the examples or from NI.com examples and use this for your two lines. Set the sample clock for both lines as the same so that both are synchronised. The VI is an adaptation on the example using the two lines. Set your relevant sources and what outputs you desire. Please let me know how you get on with this.
    Xiaofengliu, your -70006 error code typically corresponds to an error on the axis input. If you receive this error code when using a Load DAC function, it is
    most likely due to an improper 'DAC' input. This error is common when
    using the flex_load_dac function in a text based programming language.
    The DAC input requires a resource identifier for the DAC to be used.
    This identifier is not just a simple number, but rather a hex id number
    unique to each axis. The resource IDs for DAC outputs are listed below.
    Please see the link I have attached below to guide you through and resolve your error:
    http://digital.ni.com/public.nsf/allkb/6484CBEC9C4​3189486256FDB004CF7F6?OpenDocument
    Many thanks for using the NI forums and I look forward to your reply.
    Kind regards
    David
    Applications Engineer
    National Instruments UK

Maybe you are looking for

  • Numbers 3.2 can´t open a document

    I can´t open a numbers document. I only get a message telling there´s a new version of Numbers, but there isn´t. I´ve got the latest one, Numbers 3.2. The document was created in March 2014 with the current version of Numbers at that moment, and I ha

  • Zen V Plus Line-In Record

    I'm recording various shows on TV and Satellite radio by line-in audio recording. Can anyone tell me if the V Plus can charge and record line-in at the same time? If not, how long can it line-in record before the player shuts down? I have the Nano Pl

  • Selecting the tray or the roll as the paper source for printing

    my printing machine is a canon ipf 5100.With Aperture 2 it was easy to select "tray" or "roll" in the printer driver.With Aperture 3 it is impossible because their is no such option in the Aperture 3 driver.I have tried to download the last version o

  • Hide the Bluetooth File Transfer Window

    Can anyone give me any clues as to how I could stop the File transfer WIndow appearing when I Bluetooth an image from phone to my Mac? It is the Obex Agent window. That says Incoming File etc It will appear over any open applications right in the cen

  • Webdynpro URL Startup Parameters

    Hello, i call my webdynpro application about a html link. it is possible to deliver my application some startup parameters by url, like http://sap:50000/webdynpro/dispatcher/local/Application/Application?<b>parameter=3</b>