First modal panel dislpayed is hidden???

Not sure if this is a LabVIEW or TestStand question, will post on both boards just in case.
We have developed a number of popup panels (with modal properties), in LabVIEW, that are called from a TestStand sequence to get information from and dislpay information to the user. 
Our target machine is has a dual monitor display from which the user can select which display to use; consequently we have to programmaticaly set the position of our modal panels before we display them to the user. 
We have implemented this functionality and when running on my development machine everything is displayed in the correct location. 
However when running on the target hardware (LabVIEW RTE and a LabVIEW TestStand Operator Interface) our popups in the FrontEndCallback are dislpayed correctly, but once we have selected and run a test sequence; the very first popup (which happens to be in the Process Model) is not dislpayed and the sequence hangs waiting for an operator interaction with the popup. 
We know the popup is being called because if we open any panel over the top of the TestStand Operator Interface (we have been using WindowsXP Control Panel but I am sure any other panel will have the same effect) and then close the panel (to force a redraw of the dislpay) our popup is there positioned correctly.  Once the first panel has been given this little kick start to make it displayed, all other popups are displayed correctly.
It seems like it is a screen update order sort of thing, that affects only the first popup after the TestStand Operator Interface has been given focus.
Any suggestions greatly appreciated.
Regards
Steve
https://decibel.ni.com/content/blogs/DailyCLAD
Solved!
Go to Solution.

Hi Steve
Thanks for your response. 
Good call.  Things have moved on a bit since my post.  We are using SetWindowPos to set the Z-Plane position, to TopMost, of our panels and it is ensuring the panels are displayed at the front of the display (which is nice), but it seems overkill to me.  I have technical queried NI and they can't find me an alternative solution, so user32.dll it is.
Steve
https://decibel.ni.com/content/blogs/DailyCLAD

Similar Messages

  • Opening a modal panel depending on a server-side decision. How?

    Hi,
    Short version: How can you conditionally open a Richfaces modal panel (or, for that matter, perform any other action) on the client, depending on the (boolean) outcome of a server-side method?
    Long version: I have a form which, among others, contains an address, which needs to be checked against a geo database, in order for the coordinates (latitude/longitude) of that address to be added. Now the thing is, if there is no 100% match (e.g. due to a misspelling or if there are many names for the same town) only the zip codes are matched, and there are zip codes that cover many towns or small villages. In that case, I'd like to popup a modal panel with all the towns/villages with that zip code, so that the user can choose the one that is actually meant. If there is a single exact match (or if the address was not changed at all -- there is also other data on the form) then nothing should popup and the form data just saved as usually.
    What I've tried so far is to bind the submit button to an action method that checks the address and if it's all OK saves the form data to the DB and sets a bean property to false (meaning "no popup"). If there are multiple choices for the address, then the bean does nothing but set the bean property to true (do popup) and return. Then on the client, the modal panel's rendered attribute is bound to that boolean property, so that it is rendered or not as appropriate. Finally, the submit button (which is an <a4j:commandButon>) is set to reRender the modal panel on completion of the submit request, so that the bean property is re-evaluated.
    On theory, this should work. (Or am I missing something?) However, the modal panel just does not pop up, no matter what I do (the business logic itself with saving and matching and stuff works fine). Are there any other ideas about how this behavior could be achieved? Am I missing some point?
    Any comments or ideas are appreciated!
    Greetings,
    Mike

    you can use this:
    <a4j:commandButton data="#{mybean.mybool}"
                       oncomplete=" if (data == true) {
                                       #{rich:component('mymodalpanel')}.show()
                                    } else {
                                       return false;
                                    }" />

  • Modal panel refreshing the parent

    Hi ,
    I am facing a strange issue.
    I have a parent page and a modal panel opening from the parent. The modal panel displays a data table with pagination.
    When a move to each page(by clicking the page number) of the data table, the parent page getting refreshed and the it gets more darker and darker!!!!(I believe because of the modal nature of the child panel).
    I have included the modal panel as a jsp include
    <jsp:include flush="true" page="/jsf/accountGroupLov.jsp"/>
    Inside accountGroupLov.jsp , i have a dialog panel, where i render the data table.
    <p:dialog  header="#{finmsg.accountGroup_search}" modal="true" width="400px" rendered="#{accountGrpLovHandlerBean.lovVisible}"
         Where I am using primefaces dialog component.
    I dont want the parent page to be refreshed each time I navigate to different pages of the data table in the modal panel.
    Can anybody give a clue?
    Thanks in advance.
    Shaiju

    Hi,
    I have a similar scenario where I want to insert the data to a table and then close the popup window on a 'Apply & Return' button.
    On the button I have set target as URL and URL Target as javascript:passBack2();
    passBack2() is the call to java script I am using from Denes Kubicek application.
    <script language="JavaScript">
       function passBack2()
          doSubmit();window.opener.doSubmit();window.close();
    </script>I have PL/SQL process(After Submit) which triggers on this button to insert the data into the table.
    But when I invoke the popup and enter the data and click on 'Apply & Return', it navigates back to the calling page and refreshes it without executing the PL/SQL process.
    Any thoughts on this please.
    Thanks,
    Raj.

  • Setting accordion content panel height with hidden content

    Following previous instructions, I set
    <!--
    var acc7 = new Spry.Widget.Accordion("Acc7", {
    useFixedPanelHeights: false });
    //-->
    at the bottom of the content page. However, some of the
    accordion panel content is hidden until the user selects a radio
    button. The panel height is not dynamically adjusted to the
    content. FYI, the content is hidden using
    style.visibility = 'hidden
    In SpryAccordion.css, I commented out the height attribute.
    .AccordionPanelContent {
    overflow: auto;
    margin: 0px;
    padding: 0px;
    /* height: 200px; */
    It appears to me that the panel height is still fixed, but by
    what I am not sure. Any clues would be appreciated. Here's the demo
    page:
    http://www.phelpstek.com/cr/wildflower_wedding_favors/index.html
    Thanks for any input/ideas.
    Brian Phelps
    www.phelpstek.com

    graylensman wrote:
    || I'm working on a website with two column layout. The left
    column
    || contains a list of site navigation links, the right column
    contains
    || actual content for any given page. I'm using CSS to set a
    left-hand
    || rule that runs the height of the right-hand column. On
    some pages,
    || there's a lot of content; on others, very little. When
    there's
    || little content, my rule doesn't run as long as the links
    list,
    || because the rule is applied to the right column.
    ||
    || So, I want this rule to run at least as long as that left
    column,
    || but run as long as the content in the right column when
    needed. Here
    || are links to a couple of pages, so you can see what's
    going on:
    ||
    || Good:
    ||
    http://www.hillphoenix.com/web_redesign/techInfo/techInfo.html
    ||
    || Not so good:
    ||
    http://www.hillphoenix.com/web_redesign/communications/whatsNew.html
    ||
    ||
    || Thanks for your help, in advance!
    hello,
    apply this to your right column div and change 430px to
    whatever you want
    min-height: 430px;
    height:auto;
    _height: 430px;
    regards
    bretz

  • Skip validation while opening modal panel

    Hi,
    I have a form where it got an icon to open an LOV(List Of Values) panel.The LOV panel is nothing but a modal panel.
    The original form(the parent form ) got couple of inputText with required="true" validation. To open the LOV panel i.e the modal panel, I am using a h:commandLink
    <h:commandButton title="Search" value="Search" action="#{accountGrpLovHandlerBean.processLov}"  image="/images/Search-32.png" >
                                  <f:setPropertyActionListener target="#{accountGrpLovHandlerBean.backingBean}" value="accntHeadTemplateBean" />
                                  <f:setPropertyActionListener target="#{accountGrpLovHandlerBean.backingBeanAttribute}" value="accountHeadTemplate.accntGrp" />
                                  <f:setPropertyActionListener target="#{accountGrpLovHandlerBean.lovVisible}" value="true" />
                             </h:commandButton> Now the issue is , the moment I click on this button, the required="true" validation for the inputTextBox get fired and stays back in the page,with validation error messages.
    If I enter some value in the text box , the modal panels shows up ,as the validation is passed this time.
    I have tried using a4j:commanButton also , but without any luck.
    Can anybody suggest ??
    Thanks in advance.
    Shaiju

    Add immediate="true" to your command button to escape validation phase

  • Sliding Panel Content Not Hidden

    Hi All. This is my first post so apologies if I do something wrong.
    I'm setting up sliding panels to work on my site (I've used them before) and this time I can't get the panels that aren't displayed to hide. The panels slide, but all panels are visable at all times. Here is the code -
    CSS
    .SlidingPanels {
        position: relative;
        width: 221px;
        height: 260px;
        padding: 0px;
        border: none;
    .SlidingPanelsContentGroup {
        position: relative;
        width: 10000px;
        margin: 0px;
        padding: 0px;
        border: none;
    .SlidingPanelsContent {
        width: 221px;
        height: 260px;
        overflow: hidden;
        margin: 0px;
        padding: 0px;
        border: none;
    .SlidingPanelsAnimating * {
        overflow: hidden !important;
    .SlidingPanelsCurrentPanel {
    .SlidingPanelsFocused {
    TEST.PHP
    <!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>
    <script src="http://www.guaranteedprofit.co.uk/Scripts/SprySlidingPanels.js" type="text/javascript"></script>
    <link href="http://www.guaranteedprofit.co.uk/sandbox.css" rel="stylesheet" type="text/css" />
    </head>
    <body>
    <a href="#" onclick="sp1.showFirstPanel();">First Panel</a> | <a
        href="#" onclick="sp1.showPreviousPanel();">Previous Panel</a> |
    <a href="#" onclick="sp1.showNextPanel();">Next Panel</a> | <a href="#"
        onclick="sp1.showLastPanel();">Last Panel</a>
    <div id="panelwidget" class="SlidingPanels">
      <div class="SlidingPanelsContentGroup">
        <div class="SlidingPanelsContent" id="p1">Panel 1</div>
        <div class="SlidingPanelsContent" id="p2">Panel 2</div>
        <div class="SlidingPanelsContent" id="p3">Panel 3</div>
        <div class="SlidingPanelsContent" id="p4">Panel 4</div>
        <div class="SlidingPanelsContent" id="p5">Panel 5</div>
        <div class="SlidingPanelsContent" id="p6">Panel 6</div>
      </div>
    </div>
    <script type="text/javascript">
    var sp1 = new Spry.Widget.SlidingPanels("panelwidget");
    </script>
    Has anyone got any suggestions please as I know it's something simple, I just can't work it out. I've tested it in FF and IE6
    Thanks in advance, Adam

    Solved it. I've been at this since 5am and put a rouge <! -- in the css file which screwed it up

  • Moving Modal Panels without Title Bars

    We have custom modal dialog boxes without Title Bars that we want to be able to move around the display by dragging and dropping in the usual way but by left clicking on the panel background rather than the title bar.
    Programmatically I appear to have to re-position the front panel and all of the display/control elements on that panel fo every move step, is this right or is there an easier way?
    Does anyone have any thoughts?
    Regards
    Steve
    There are 10 types of people in the world that understand binary, those that do and those that don't.

    Hi Chris,
    you're answer came close, I modified it a bit to be more accurate. The things I've done are:
    move the location reading into the event structure (it's better correlated, in the time-out you had a lag of 10 ms.)
    set the timeout to -1 when the mouse is inside the pane (mouse-enter and mouse-leave events)
    Then I'd thought wouldn't it be nice if this code can be a sub-vi called on a mouse-down event?
    That worked BUT in the subvi there are no events generated on the pane class, althought dynamic registration worked I can't seem to trigger events...
    So the sub-vi works but only because of the time-out case....
    Sorry but i can't add attachments
    Ton
    Free Code Capture Tool! Version 2.1.3 with comments, web-upload, back-save and snippets!
    Nederlandse LabVIEW user groep www.lvug.nl
    My LabVIEW Ideas
    LabVIEW, programming like it should be!

  • Dreamweaver properties panel is half hidden / obscured

    I recently installed Dreamweaver CS4 on a Win 7 laptop and noticed that some of the elements on the properties pane are half obscured so you can't see them (see highlight in attached screenshot).  I've tried moving the panel to other parts of the screen and tried to see if I could drag to expand it, but nothing seemed to work.  Any ideas on how to fix this?  The screen resolution is 1280x1024, same as it was on the previous computer running XP which did not have this problem.

    See
    CS4 Property inspector fields truncated (Windows)
    http://forums.adobe.com/thread/446724

  • When placing each search result in its own collapse panel, only first panel works (PHP foreach loop)

    Hi there,
    <?php foreach ($results as $result): ?>
      <div id="CollapsiblePanel1" class="CollapsiblePanel">
        <div class="CollapsiblePanelTab">
    <?php echo htmlspecialchars($result['name'], ENT_QUOTES, 'UTF-8'); ?>   
        </div>
        <div class="CollapsiblePanelContent">
      <?php echo htmlspecialchars($result['description'], ENT_QUOTES, 'UTF-8'); ?>
        </div>
      </div>
      <?php endforeach; ?>
    <script type="text/javascript">
    var CollapsiblePanel1 = new Spry.Widget.CollapsiblePanel("CollapsiblePanel1");
      </script>
    Above is the segment where I want to generate a list of results using PHP/SQL. I know for sure that there isn't anything wrong with the PHP, there's something about the collapsible panels that I can't get my head around...
    WHAT I WANT IT TO DO:
    Display the result of my query, each in a collapsible panel with the Name in the panel's tab and the additional Description on the panel's content area. Do this for all results.
    WHAT IT DOES:
    The above, except that only the first collapsible panel works (collapses fine). The results following are still in collapsible panels with the exception that they don't collapse at all.
    So can anyone come up with a good solution to fix this? Something quick will do (that I don't have to make drastic changes to my code), I suspect that it has something to do with this line:
    var CollapsiblePanel1 = new Spry.Widget.CollapsiblePanel("CollapsiblePanel1");
    That it recognizes the first panel as CollapsiblePanel1, the other panels are just unknown... I don't know, that's all I can come up with. Thanks for your time.

    Thanks for the tip Gramps, got to the solution!
    <?php foreach ($results as $result): ?>
      <div id="CollapsiblePanel<?php echo htmlspecialchars($result['id'], ENT_QUOTES, 'UTF-8'); ?>"  " class="CollapsiblePanel">
        <div class="CollapsiblePanelTab">
    <?php echo htmlspecialchars($result['name'], ENT_QUOTES, 'UTF-8'); ?>  
        </div>
        <div class="CollapsiblePanelContent">
      <?php echo htmlspecialchars($result['description'], ENT_QUOTES, 'UTF-8'); ?>
        </div>
      </div>
    <script type="text/javascript">
    var CollapsiblePanel<?php echo htmlspecialchars($result['id'], ENT_QUOTES, 'UTF-8'); ?> = new Spry.Widget.CollapsiblePanel("CollapsiblePanel<?php echo htmlspecialchars($result['id'], ENT_QUOTES, 'UTF-8'); ?>");
      </script>
      <?php endforeach; ?>
    By allowing the script to loop and matching the id. Nice suggestion for the accordion but unfortunately the code above was just an example... the actual results will include tables, <hr> and whatnot.
    Being new to the Dreamweaver scene (actually to be honest, I've only started learning about web development a week ago) why are the Spry js (or just Spry in particular) files so large? Are there plugins/methods I can get to delete some features I don't need? I have absolutely no experience with JS... yet.

  • Lightroom 1.3 Web Module - Appearance Panel Partially Hidden

    When I go to the Web module, the right margin of the Appearance panel is partially hidden such that I can't access all of the controls....it's driving me nuts. Is this just me or is anyone else having this problem. I can't figure out how to shift the panel horizontally. Any help would be appreciated. Happy New Year!
    Bill
    PS - running on a 17" Macbook Pro with a 30" external monitor, OSX 10.5, LR 1.3.1

    Try restarting LR. Try cycling between Fullscreen modes with 'f'.
    Try Shift-tab a couple times to hide and show the panels to see if this affects the panel. Are you attempting to use, using two monitors?
    Obviously I grasping at straws here, but this ain't usual!
    Don
    Don Ricklin, MacBook 2Ghz Duo 2 Core running 10.5.1 & Win XP, Pentax *ist D
    See LR Links list at my
    Blog for related sites.

  • KDE: dropping (auto) hidden panel

    Hi,
    A hidden panel drops into view as soon as the mouse cursor strikes the display edge; that's OK. Is there a way to make it less prompt? I'd like the panel to remain hidden unless I do something more than accidentally hit the tripwire with the mouse cursor. (More) Settings panel menu doesn't seem to offer any keyboard shortcuts or something.
    Last edited by Llama (2010-05-16 07:46:10)

    The thing will probably never see the light of day. I'd settle for something like "hold Alt and then push the mouse", but KDE provides shortcuts for everything but panels (?).

  • Accessing Panel Collection property( View & Detach) in programmatically

    Hi All,
    I am using JDeveloper 11.1.2.0.My scenario is two pages have same table surrounded by Panel Collection layout. Now User hiding some columns in first page table using panel colletion View property then he navigate to the
    second page the hidden columns from first table need to be hidden in second page table also.How to get the hidden columns from the panel collection layout (VIEW property)?....
    Thanks,
    Arun D.

    Hi,
    column visible state is defined on the columns
    http://docs.oracle.com/cd/E23943_01/apirefs.1111/e12419/tagdoc/af_column.html
    So before navigating to page 2, you access the table instance, call getChildren to access a list of columns, iterate over the columns and check the value of the "visible" property. This should show false for columns that you did hide using the paneCollection menu. Pass this settings on to thenext page and hide the columns there (e.g. referencing a managed bean from the visible property)
    Frank

  • MessageArea in Modal Window..

    Hi,
    Does anyone knows how can I get the MessageArea UI element to display on a Modal Window?
    Regards,
    Daniel

    Hi Timo,
    Thanks for those links. I assumed at first some problem in the Component. Matter of fact, I have a MessageArea element in the underneath View, still this is a problem with the element and they should fix it. (I requested a fix in an OSS message)
    Satish,
    It's not a "Model" window.. it's a "Modal Panel". A "Modal Panel" can be created using any 'Window" of any Component you like. This "Window" will have "Views" associated to them. These "View"s carry what we call "UI Elements" - one of them is called Message Area. The MessageArea element is responsible for displaying "Messages".
    Having said that, when you are inside a Modal window, these messages will not show.
    I hope I made myself clear now,
    Regards,
    Daniel

  • Child panel in parent panel- strange top value

    Hi!
    I want to write application where I have menu with buttons. Depending on the button pressed the buttons should hide and another design bring on front.
    I don't have any ideas except make that on different panels. I made one parent panel, and a few child panels. When I click button the panel with buttons hides and I'm displaing another panel with width and height equal to parent panel. I can't understand why I have to always have value equal to 30 in top property of child panel. Left property is set o zero and it's displaing OK. When I set 0 to top property the child panel is partially hidden in parent window.
    Why the top property have to be always set to 30 to display exactly panel in panel? I tried to switch on and off titlebar, but it seems taht is no problem. Anyone can explain me that behaviour? Maybe any other ideas to make that kind of application? I don't want to use tabs.

    I'm attaching some pictures so that there's no confusion over what I'm talking about. I'm using the userint/panels.cws, but I modified childPanel1 to be the exact height of the parent panel as you can see in this picture taken from the UI Editor:
    If I don't programmatically set the top of the panel and auto-center vertically is not set to true, then I get this when the panel is loaded. You can see that the panel is being cut off because it loads inside the parent panel using the top value set in the UIEditor.
    If I set the child panel to auto-center vertically it looks like this. You can see that the child panel's title bar is partially obscured due to the auto-centering, and the splitter at the bottom of the child panel is not visible.
    If I then programmatically set the top and left to (0,0) I get this. The frame of the child panel (including the title bar) is hidden, but you can see that everything on the panel is visible:
    If I programmatically set the top to 30 it looks like this. The title bar is visible but you can see that the control at the bottom of the panel is now no longer visible:
    I'm assuming that you're seeing the behavior in the 4th screen shot when you set the top to 0 and something similar to the 5th screen shot when you set the child panel top to 30. I'm guessing that due to the font being used on your machine, the thickness of the child panel title bar is actually 30 so it doesn't stand out quite as much as mine.
    When setting the position of a panel inside another panel, the frame (which includes the titlebar) is ignored, so that (0,0) cooresponds to the very first pixel that is actually visible in the panel. I'm guessing that what you want to do is either:
    A) Disable the titlebar in the child panel and set the frame thickness to 0, or
    B) If you need the titlebar of the child panel to visible, change the height of the of the child panel to be = (height of parent panel - 30).
    Kevin B.
    National Instruments

  • Modal Frame or Dialog with Minimize/Maximize buttons

    I want to create a window (dialog or frame) that is modal and has the minimize/maximize buttons. Is it possible? How?
    I normally would use a dialog if I wanted the window to be modal, but a dialog does not have the minimize/maximize buttons. I normally would use a frame if I wanted the window have the minimize/maximize buttons, but a frame cannot be modal.
    Any suggestions, please?

    You can make your "modal panel" listener the window events from all others frames:
    public class YourModalFrame extends JFrame implements WindowListener{
      public YourModalFrame(JFrame owner){
        super("Modal Frame");
        this.owner = owner;
        // we put a glass panel into the main frame
        JPanel glassPanel = new JPanel();
        glassPanel.setOpaque(false);
        glassPanel.setCursor(Cursor.getPredefinedCursor(Cursor.WAIT_CURSOR));
        // blocking the events!!!
        glassPanel.addKeyListener        (new KeyAdapter()        {});
        glassPanel.addMouseListener      (new MouseAdapter()      {});
        glassPanel.addMouseMotionListener(new MouseMotionAdapter(){});
        owner.setGlassPane(glassPanel);
        // the frame will listener owner windows events
        owner.addWindowListener(this);
      // Window Listener  //
       * Invoked the first time a window is made visible.
      public void windowOpened(WindowEvent e){}
       * Invoked when the user attempts to close the window
       * from the window's system menu.  If the program does not
       * explicitly hide or dispose the window while processing
       * this event, the window close operation will be cancelled.
      public void windowClosing(WindowEvent e){}
       * Invoked when a window has been closed as the result
       * of calling dispose on the window.
      public void windowClosed(WindowEvent e){}
       * Invoked when a window is changed from a normal to a
       * minimized state. For many platforms, a minimized window
       * is displayed as the icon specified in the window's
       * iconImage property.
       * @see java.awt.Frame#setIconImage
      public void windowIconified(WindowEvent e){
        // Do you want this too?
        //super.setState(JFrame.ICONIFIED);
       * Invoked when a window is changed from a minimized
       * to a normal state.
      public void windowDeiconified(WindowEvent e){
        if(super.getState() == JFrame.ICONIFIED)
          super.setState(JFrame.NORMAL);
        this.requestFocus();
       * Invoked when the window is set to be the user's
       * active window, which means the window (or one of its
       * subcomponents) will receive keyboard events.
      public void windowActivated(WindowEvent e){
        this.requestFocus();
       * Invoked when a window is no longer the user's active
       * window, which means that keyboard events will no longer
       * be delivered to the window or its subcomponents.
      public void windowDeactivated(WindowEvent e){}
    }

Maybe you are looking for