Deactivation parent panel when a popup opens

Hello smartprogrammer, are you aware of this note from the help for InstallPopup?
Note  While you can pass a child panel to this function, it is not recommended. Although the panel will retain its status as a child panel, it will not behave like one while it is modal, which might produce unpredictable results elsewhere in your program.
Is there a special reason to use a child panel? Can you rethink your framework so that a regular panel is used?
Note: I suppose this discussion and this other one are strictly related: am I right?

Hello there!
I think the solution you are looking for is somewhere along the lines you just posted: using the InstallPopup LabWindows/CVI function.
Here are a few source where you can learn more about creating modal dialogs/panels, which are essentially stacked windows which block the input of the underlaying panels:
The CreateProgressDialog is a Programmer's Toolbox function that creates a wait window for lenghty operations. You can look in the implementation of the function at <CVI Install Directory>\toolslib\toolbox\toolbox.h.
Refer to the Creating Modal Pop-Up Panel In LabWindows/CVI KB: http://digital.ni.com/public.nsf/allkb/83EDCFB10FA8B8D2862565E7007EA350 for another handy sample application.
Learn more from the InstallPopup help topic or the related sample applications: http://zone.ni.com/reference/en-XX/help/370051Y-01/cvi/uiref/cviinstallpopup/
Best regards!
- Johannes

Similar Messages

  • Looking for a way to programmatically set the visible portion of the front panel when a subVI opens

    I am looking for a way to programmatically set the visible portion of the front panel when a subVI opens.  Haven't found any posts that relate, but I'm not sure how to ask the right question.  To be clear, I want to write a helper VI to go through a list of subVIs to make sure the background images are all in the same place when their respective subVIs open.  I hate manually playing with scroll bars before I save each of the VIs...  I'm figuring I need to find the top/left location of the background image (know how to do this already) and then set a VI FP property to  these values or some offset, but I can't find the relevant property. FP:run-timeposition:custom looked promissing, but only affects the location of the window, not the area of the front panel the window is displaying.
    Solved!
    Go to Solution.

    Cool.  Getting closer.  The way I implemented your suggestion affects the subVI only if it is open.  I can use this to do what I'm after, perhaps putting the code into each subVI.  Maybe open all subs, run the helper, and save.    Seems like I'm missing the elegant version...
    My proof of concept code:

  • My other shared computers in my network don't show up the side panel when saving or opening in Illustrator after upgrading to OS X 10.10

    When trying to save a file to the computer I use for printing, the entire "Shared" section does NOT show up on my side panel. If I open up a Finder window, they are there and I have no issues accessing them. I just can't get them to appear to select them inside of Illustrator.

    Understood, but that's not the issue here, the "shared" section disappears from open/save dialog boxes within the Adobe applications.
    I've been testing this with Mavericks and so far have been unable to reproduce the issue, I think this is a Yosemite exclusive issue.
    61446 - I'll let you know the final results of our testing, but it looks like downgrading to Mavericks may be the solution here.

  • Change Text on Tab of Tabbed Panel When it's Open.

    I posted this on the DW board but it was suggested I try here.
    I am using a tabbed panel to hide and reveal a page of text on this page: www.imagesandwords.org.uk/Don/pages/essay.php
    The reason I am using the tabbed panel to reveal the page is to try to keep every page looking the same throughout the site.
    When the panel is open the text in the tab still says, "More" and I wonder if there is a way to make it say, "Hide" or something when it's open.  Although it isn't uploaded yet my last task was to put tiny up and down arrows in the tab so that helps with a down arrow on closed and an up arrow on open.
    As well as the question about changing the text on the tab, is there anything wrong with using the tabbed panel like this?  I guess it might be clunky if the user has javascript turned off but I''m thinking of putting up a .pdf for download once the content is dealth with.
    Kind regards
    Martin

    Hi Martin,
    The error is very genuine and need to be fixed.
    You know what the problem is...
    We are calling same funtion from a span that is inside a div which is again calling the same funtion. So the innerHTML is not getting updated correctly.
    So what we need to do is to duplicate our JS funtion and call name it as say....cchange()
    /* for the Tab/DIV based click*/
    function change(){
    var temp=document.getElementById('moreContent').innerHTML;
    if(temp=='More...'){
    document.getElementById('moreContent').innerHTML='Hide...';
    if(temp=='Hide...'){
          document.getElementById('moreContent').innerHTML= 'More...';
    /* for the span/text based click*/
    function cchange(){
    var temp=document.getElementById('moreContent').innerHTML;
    if(temp=='More...'){
    document.getElementById('moreContent').innerHTML='Hide...';
    if(temp=='Hide...'){
         document.getElementById('moreContent').innerHTML= 'More...';
    and in our HTML it becomes
    <div class="CollapsiblePanelTab" onclick="change();"><span id="moreContent" onclick="ccchange();">More...</span> </div>
    This should finally do the required icing on cake
    Regards,
    Vinay

  • How send menu shortcut keystroke from child to parent panel

    Hello,
    I have simple question:
    Parent (main) panel has a menubar and menuitems (menu_callbacks), with some shortcut keys (like <F5>, <Ctrl>+<R> etc).
    The task is propagate the keystroke from the child panel to the parent panel when the parent panel is INACTIVE.
    I try to make solution via EVENT_KEYSTROKE and CallPanelCallback(), but this solution doesn't work correctly ...
    Any hits will be appreciated!
    George

    Hi, Roberto,
    you are right, the example of course works correctly.
    I'm such a fool,  - because I thought of the child panels in "user", not the programmatic concept.
    Explanation: the "child" panels are programmed as "top-level panel", I use
    panel = DuplicatePanel (0, gui_dpl_pPoll, title, VAL_KEEP_SAME_POSITION, VAL_KEEP_SAME_POSITION);
    because I want to let the child panel 'float' over whole display ().
    When I change
    panel = DuplicatePanel (main_pMain, gui_dpl_pPoll, title, ...
    the keystroke is propagated correctly .... But the child panel is (of course) cropped to parent panel boundary.
    So I rephrase the question - how to send menu shortcut keystroke (not processed) from one (top-level) panel to another panel?
    George

  • Access the main panel when a message popup is open

    Hi,
    I would apprecaite if someone can help me out with my current problem. Basically  i am trying to access my main panel when a messege popup is open...say i choose a file to save my data from the user panel.....after i select the fiel.....a messege pops up saying file selected or something....but i dont want to make the user press the ok button before he can do anything else on the main UAP.....is there a way i can have the popup be there but yet hv access to the stuff on the main window and later the user can press ok....basically thats popup is just t notify the user..
    Hope to hear from someone.
    Thanks
    k1_ke

    You cannot do it with popup panels: a popup is intrinsically a modal window, that is user input is confined to this window and the operator cannot access other panels in your applicatin until the popup is closed.
    You need to create a panel to display your messages and setup it as a "floating" panel: floating style is one of the additiona attributes of the panels, located in the same dialogue into which you specify if the panel is sizable, movable... A floating panel remains on top of other panels of the application but the user can operate on those other panels while the floating one is displayed (you'll need to show it with DisplayPanel instead of InstallPopup).
    Proud to use LW/CVI from 3.1 on.
    My contributions to the Developer Zone Community
    If I have helped you, why not giving me a kudos?

  • How to make it selected when clicked and open popup

    Hi,
    I 've a form in the parent page with many form elements.
    I've 2 radio buttons with values "Yes" and "No". I am opening a modal popup when clicked on "Yes" radio button. The modal popup is opening fine.
    But when I click "Yes", it' s not selected. After modal popup is closed, when I return to parent page, the option "Yes" is still not selected.
    How to make it selected when clicked and open popup?

    Perhaps try moving the application to your preferred desktop and then right-click it's dock icon > options > Assign to This Desktop.

  • Firefox should save session when only popup windows is open

    When I have some window with multiple tabs open and I click close button on top, it saves the session and quits. Thats ok. But when there is some hidden popup window open (or source code) it destroys the session and leaves the popup open!!!! So the menu is gone and you lose your session. When i restart FF tabs are gone. So it should save session when only some popup windows are open.
    Also it should ask what to do when i click close window, when it's unclear what to do

    It is always a good idea to close a Firefox session by clicking File > Exit or Firefox button > Exit for proper shutdown.
    Those pop-up windows are produced by JavaScript. JavaScript can disable certain features in the pop-up window. You can set some preferences using '''about:config''' so that those features are not disabled in the pop-up window. See:
    *How to use '''about:config''': http://kb.mozillazine.org/About:config
    #type '''''about:config''''' in the URL/Location bar and press the Enter key
    #if you see a warning, accept it (promise to be careful)
    #Filter = '''dom. disable_window_open_feature.'''
    #reset preferences you want to '''''false''''' by double-clicking on that preference in the lower panel on the '''about:config''' tab
    #Preferences you can reset in this case: http://kb.mozillazine.org/Prevent_websites_from_disabling_new_window_features
    <br />
    <br />
    '''You need to update the following.''' The Plugin version(s) shown below was/were submitted with your question and is/are out of date. You should update to avoid known security issues with the version(s) you have installed. Click on "More system info..." to the right of your question to see what was included with your question.
    *Adobe PDF Plug-In For Firefox and Netscape "9.4.3"
    *Shockwave Flash 10.2 r159
    *Next Generation Java Plug-in 1.6.0_24 for Mozilla browsers
    #'''''Check your plugin versions''''' on either of the following links':
    #*http://www.mozilla.com/en-US/plugincheck/
    #*https://www-trunk.stage.mozilla.com/en-US/plugincheck/
    #*'''Note: plugin check page does not have information on all plugin versions'''
    #*There are plugin specific testing links available from this page:
    #**http://kb.mozillazine.org/Testing_plugins
    #'''Update Adobe Reader (PDF plugin):'''
    #*From within your existing Adobe Reader ('''<u>if you have it already installed</u>'''):
    #**Open the Adobe Reader program from your Programs list
    #**Click Help > Check for Updates
    #**Follow the prompts for updating
    #**If this method works for you, skip the "Download complete installer" section below and proceed to "After the installation" below
    #*Download complete installer ('''if you do <u>NOT</u> have Adobe Reader installed'''):
    #**SAVE the installer to your hard drive (save to your Desktop so that you can find it after the download). Exit/Close Firefox. Run the installer you just downloaded.
    #**Use either of the links below:
    #***https://support.mozilla.com/en-US/kb/Using+the+Adobe+Reader+plugin+with+Firefox ''(click on "Installing and updating Adobe Reader")''
    #***''<u>Also see Download link</u>''': http://get.adobe.com/reader/otherversions/
    #*After the installation, start Firefox and check your version again.
    #'''Update the [[Managing the Flash plugin|Flash]] plugin''' to the latest version.
    #*Download and SAVE to your Desktop so you can find the installer later
    #*If you do not have the current version, click on the "Player Download Center" link on the "'''Download and information'''" or "'''Download Manual installers'''" below
    #*After download is complete, exit Firefox
    #*Click on the installer you just downloaded and install
    #**Windows 7 and Vista: may need to right-click the installer and choose "Run as Administrator"
    #*Start Firefox and check your version again or test the installation by going back to the download link below
    #*'''Download and information''': http://www.adobe.com/software/flash/about/
    #**Use Firefox to go to the above site to update the Firefox plugin (will also install plugin for most other browsers; except IE)
    #**Use IE to go to the above site to update the IE ActiveX
    #*'''Download Manual installers'''.
    #**http://kb2.adobe.com/cps/191/tn_19166.html#main_ManualInstaller
    #**Note separate links for:
    #***Plugin for Firefox and most other browsers
    #***ActiveX for IE
    #'''Update the [[Java]] plugin''' to the latest version.
    #*Download site: http://www.oracle.com/technetwork/java/javase/downloads/index.html (Java Platform: Download JRE)
    #**'''''Be sure to <u>un-check the Yahoo Toolbar</u> option during the install if you do not want it installed.
    #*Also see "Manual Update" in this article to update from the Java Control Panel in Windows Control Panel: http://support.mozilla.com/en-US/kb/Using+the+Java+plugin+with+Firefox#Updates
    #* Removing old versions (if needed): http://www.java.com/en/download/faq/remove_olderversions.xml
    #* Remove multiple Java Console extensions (if needed): http://kb.mozillazine.org/Firefox_:_FAQs_:_Install_Java#Multiple_Java_Console_extensions
    #*Java Test: http://www.java.com/en/download/help/testvm.xml

  • Displaying the title of the open panel when attached to a window...?

    This is probably a really obvious question... but when displaying the open panel as a panel/sheet attached to another window - is there a way to display the panel's title, or some other way to prompt the user?
    For example, I have a preferences window that the user can click a variety of controls, several of which display the open panel... I'd like some way to remind the user which path to select (eg. "Select the path for BLAH").
    One way around it is to temporarily set the title of the window the open panel is attaching to, but I have several windows, and the panel may attach to any one of them... I'd rather not test for each possibility (because, for example, the nib for that window might not be loaded yet, etc.).
    Any ideas?

    Wow, I should probably get some sleep...
    The answer is obvious... after all, I need to know which window to attach the panel to.

  • Sub vi front panel opens when main vi opens

    When I open my main vi I have one of my sub vi front panels that opens.  I looked in the properties for the sub vi and Show front panel when loaded is NOT checked. Is there something else I need to look at?
    Solved!
    Go to Solution.

    please clarify;
    Q1)
    The sub-VI FP opens when
    You open the top VI but BEFORE you run it
    OR
    The sub-VI FP opens after you start the top level VI
    Q2)
    If the above Q was after you run....
    Is the sub-VI running or paused when it opens?
    If it is puased you may have a breakpoint set in it.
    Ben
    Ben Rayner
    I am currently active on.. MainStream Preppers
    Rayner's Ridge is under construction

  • JTree blocking popup from parent panel

    OK, I have a JPanel and I listen to its mouse events and put up a popup when a popup trigger is sent.
    I have a JTree on this JPanel and it doesn't pass the mouse events back to the panel apparently.
    Is there a straightforward way to pass these events back, or should I simply listen on both my panel AND the JTREE?

    hmm. Not sure, but at the end of your tree listener, try panel.dispatchEvent(yourEvent);

  • Knowing when popup opened

    In win32 programming when you open a modal dialog/popup the
    underlying application does not recieve any ui-related messages, but not so in flex..
    I have a problem with a custom uiComponent that hides/changes the mouse cursor when the cursor goes over it.
    It still occurs when a modal dialog is open so I need to know the best way to handle disabling this behaviour when a popup is open.
    I could not see a function to tell if any popups are currently open.
    Andrew

    ok then thanks.
    The mouse behaviour is non-standard - it is receiving stage mouse move events because there is a bug in windows meaning I don't get local mouse move events when mouseX is equal to 0 which I require (bug has been submitted).

  • Hide front panel when opened

    I have a VI running as a back ground task (VI_A) to the main VI (VI_B). VI_B starts VI_A and the idea is that VI_A will be minimised on startup. There is a button on VI_B to restore the window and a button on VI_A to hide the window and return to VI_B.
    This is all working OK, I open VI_A front panel when called, VI_B minimises VI_A straight away etc, I am using the WINUTIL.LLB functions to perform this. The problem I have is VI_A front panel is visible upon start up for a couple of seconds (there is no real delay in my execution to minimise). I have tried setting VI_A to be at teh back within VI_A but still it appears at the front for a couple of seconds.
    Does anyone have any suggestions as to why this is occuring.
    Cheers,
    Wayne

    One thing that you could do is to change the Windows Appearance property to NOT open front panel when called. You can then have your main VI (VI_B) open the panel for VI_A as before, but it will not start with the panel open. If you are creating an executable, go to the VI Settings tab page and click on the line with VI_A and then Edit Settings. Turn OFF the Remove Panel property. This should work for you (I've done similar already anyway).
    Rob

  • Open Accordion Panel when on Active Page

    I am trying program a panel tab to open based on which page
    is active ... For instance I have five panels and each panel has
    from one to 5 links. I would like to have the panel tab to stay
    open if I am on that links current page ... Does anyone have the
    time to explain how to do this?

    Both the accordions should show the same colours and operate the same way.  Yet on one page, the colours don't change and the accordion seems to be in a box (there is an outline all around).
    It shows up the same in either firefox or IE.  I didn't know I was using an old version of Spry, so will try upgrading and see what happens.  Thanks for pointing that out.

  • How do I play a sound when a popup window opens.

    I don't want to block the popup. It's just a notice of a timeout for a site I frequent. I want to enable a sound to play when the popup appears so I know the site is about to time out. I'm using Firefox 35.0.1 on a MacBook. Thanks in advance for any help!

    You may need an add on or third party software for this.

Maybe you are looking for

  • How to compare Item Text in Purchase Order

    God day Gurus, I have a scenario where in I have to compare the saved Item Text to the current edited one in Purchase Oder. I used READ_TEXT function but it only get the saved item text in the document. Is there a way to compare the original and edit

  • HT201250 My mac cannot access to the backup disc since I started using os 10.7.4

    Hi all, Since I started using os 10.7.4, i cannot use time capsule to back up. "The backup disk image "/Volumes/*************/*'s iMac.sparsebundle" could not be accessed (error -1)." WIll this issue be fixed if I upgrade to Mountain Lion

  • Performance and scratch disks

    hello! i am currently working with the follow: Mac Pro 3.5GHz 6-Core intel Xeon E5 64GB RAM 1867 MHz DDR3 500GB flash storage external G RAID 8TB thunderbolt my question is regarding my photoshop performance, recently i have been working on some mass

  • Two oracle homes on linux !

    Hello ! Can we make two oracle homes in Linux . In one home i have to install 8i database and in the other home i have to install 9iAS. What i think is , for two oracle homes in linux u need to make two oracle users first ,and in two different bash_p

  • Error in pinging database

    Hi, I am trying to connect to a db2 database using java studio. I have created a connection pool with following properties: Datasource Classname: com.sun.sql.jdbcx.db2.DB2DataSource Resource Type: javax.sql.DataSource Additional properties: URL: jdbc