Saving all checked menu items before closing the vi (.exe) panel to a file & restoring it later

Hello all,
I am using a customized menu bar for my labview application. I need to have a feature to save the context of the entire menu bar before closing the vi and also to restore it  later on reopening. Basically I have given menu items which get "checked" upon user selection. Is there any efficient way to handle this?..Though I have seen an example (under default examples which come with labview) of context saving for controls and indicators, but it is becoming tedious for menu bar as it has a lot of menu items to be saved.
Please suggest something for this.
Thanks

Maintain an array that keeps track of all the menu items that become checked or are changed to a non-default status.  Every time a menu gets changed, add that to the array.  Anytime that a menu gets set back to the default value, search the array and delete that item from it.
Now when your program closes, you have an array of everything that is non-default.  Write that out to a file.  When your program restarts, load that file and change all the menu times listed to match.

Similar Messages

  • Check Points we should check before closing the shipment

    Hi Guys
    What all the check  points we should check before closing the shipment.
    Thanks in advance
    SAP MM

    No need, the installer uses root and it can do whatever it wants.
    If you later have problems with User Account Permissions, then see #6 here as Disk Utiliy doesn't fix those, nor should the upgrade.
    ..Step by Step to fix your Mac
    You SHOULD clone your present boot drive to a external drive,
    How to clone your boot drive
    this way you can avoid the mega-hassle of returning to a previous OS X version manually like so
    How to revert OS X back from Mavericks

  • When I restart the browser, its not opening the previously opened tabs even though I saved before closing the browser. Pls guide me.

    Dear sir,
    When I restart the browser, its not opening the previously opened tabs even though I saved before closing the browser. This problem was not there in the older versions less than 3.6.8. Even the browser speed has gone down. This is everyday problem with this browser.
    Pls suggest ASAP.
    Thanks & Regards,
    Tripad

    See this article for some suggestions: [[Firefox has just updated tab shows each time you start Firefox]]
    See also http://kb.mozillazine.org/Preferences_not_saved and Preferences are not saved

  • Check menue item does not work

    Hello,
    I create a menu item MI_DEBUG of type Check in a submenu named EXTRAS_MENU.
    In the menu item code I want to enable debug logging of the current user actions.
    In the Menu Startup Code I set the status UNCHECKED.
    When the user clicks the menu item I want the status to be changed to CHECKED and back on a second click
    Menu Startup Code
    DECLARE
        mi_id   MENUITEM;
    BEGIN
        mi_id   := find_menu_item('EXTRAS_MENU.MI_DEBUG');
        IF id_null(mi_id) THEN
            my_debug.pl('EXTRAS_MENU.MI_DEBUG not found','zvc_menu.mmb Menu Startup Code');
        ELSE
            set_menu_item_property(mi_id,CHECKED,PROPERTY_FALSE);
        END IF;
    END;Menu Item Code
    DECLARE
        mi_id   MENUITEM;
    BEGIN
        mi_id   := find_menu_item('EXTRAS_MENU.MI_DEBUG');
        IF id_null(mi_id) THEN
            my_debug.pl('EXTRAS_MENU.MI_DEBUG not found','zvc_menu.mmb mi_debug');
        ELSE
            my_debug.pl('EXTRAS_MENU.MI_DEBUG found','zvc_menu.mmb mi_debug');
            my_debug.pl('Status '||get_menu_item_property(mi_id,CHECKED),'zvc_menu.mmb mi_debug');
            IF get_menu_item_property(mi_id,CHECKED) = 'TRUE' THEN
                my_debug.pl('property(CHECKED) = TRUE','zvc_menu.mmb mi_debug');
                set_menu_item_property(mi_id,CHECKED,PROPERTY_FALSE);
            ELSE
                my_debug.pl('property(CHECKED) = FALSE','zvc_menu.mmb mi_debug');
                set_menu_item_property(mi_id,CHECKED,PROPERTY_TRUE);
            END IF;
        END IF;
    END;But I never get the checked sign in the menu and every time my debug messages say, that the property CHECKED = 'TRUE'.
    I even have tried it with PROPERTY_ON/OFF as some examples suggest, but it doesn't work.
    Any ideas what is wrong with my code?
    Forms [32 Bit] Version 11.1.1.4.0 (Production)
    Oracle Database 11g Enterprise Edition Release 11.2.0.2.0 - 64bit Production
    Regards
    Marcus

    Hm. In that case the only thing that comes to my mind is to apply the latest patchset for forms 11gR1 which is 11.1.1.6 if memory serves.Not possible, applying patches requires tons of tests for many applications.
    Does it work in a previous version of forms?This is a new menu item and I have not other version available to test.
    Another thing I found: When I open or close a form after clicking the menu item, then the check mark appears. Changing the label of an item works without opening a form.
    Therefore I changed my Menu Item Code to
    DECLARE
        mi_id   MENUITEM;
    BEGIN
        mi_id   := find_menu_item('EXTRAS_MENU.MI_DEBUG');
        IF id_null(mi_id) THEN
            my_debug.pl('EXTRAS_MENU.MI_DEBUG not found','zvc_menu.mmb mi_debug');
        ELSE
            my_debug.pl('EXTRAS_MENU.MI_DEBUG found','zvc_menu.mmb mi_debug');
            my_debug.pl('Status '||get_menu_item_property(mi_id,CHECKED),'zvc_menu.mmb mi_debug');
            IF get_menu_item_property(mi_id,CHECKED) = 'TRUE' THEN
                my_debug.pl('property(CHECKED) = TRUE','zvc_menu.mmb mi_debug');
                set_menu_item_property(mi_id,CHECKED,PROPERTY_FALSE);
                set_menu_item_property(mi_id,LABEL,'Debug on');
            ELSE
                my_debug.pl('property(CHECKED) = FALSE','zvc_menu.mmb mi_debug');
                set_menu_item_property(mi_id,CHECKED,PROPERTY_TRUE);
                set_menu_item_property(mi_id,LABEL,'Debug off');
            END IF;
        END IF;
    END;Now when I click the menu item the first time, the label changes immediately, but not the check mark. When I click the menu item a second time without opening a form the label does not change, this means, that the property CHECKED is only changed, when a form is opend/closed.
    Even better: The initial label id Debug, clicking the item should change it to+ Debug on+ and on subsequent clicks change between Debug on and Debug off
    1. Click -> Label changes to "Debug on", check mark unchanged
    2. open a form
    3. Check mark is shown but label is the default Debug
    4. close the form
    5. Check mark is not shown, label is back to Debug on
    6. Repeat step 2 - 5 with the same result
    Different sequences of clicking and opening/closing forms give seemingly random combinations of check mark on/off and label texts.
    Conclusion:
    A menu check item is a very obstinate thing. I will not use it if I can avoid it.
    Regards
    Marcus

  • I was using open office spreadsheet today and inadvertantly clicked on a menu item that caused the Apple toolbar to disappear when I am in open office.  How do I get it back at the top of my screen?  I am currently using OS 10 Lion.

    I was using open office spreadsheet today and inadvertantly clicked on a menu item that caused the Apple toolbar to disappear when I am in open office.  How do I get it back at the top of my screen?  I am currently using OS 10 Lion.

    Click on the Menu bar  and go to View .  Or, hover over where the Menu bar shiuld be and click on it when it appears.  Try quitting and relaunching Finder.

  • Multiple drop down menu items to populate the a separate text box...more help please

    Thanks to Gilad D67 for showing me how to have multiple drop down menu items appear in a separate text box. This stuff blows my mind. Is there any script I can use to make a new drop down menu item appear in the same text box, but on a new line below a previous entry. For example. I select 'cat' from my drop down menu and it appears in my text box. Now I choose 'dog' from my menu and it appears in my text box like so  'cat dog.' Is there any way I can make 'dog' go straight to a new line automatically without having to manually go into the text box and change it?
    cat
    dog (new selection goes straight to a new line)
    Now, I don't have a clue if this is also possible, but imagine, I don't like my drop down menu selection of 'dog' and I go back into the menu and I change to 'rat' but in the text box, 'dog' still appears and 'rat' is added. Do I have to manually delete 'dog' from the text box or is there script that can do this for me.
    Any assistance would be incredible. It amazes me how people know this stuff.
    This is the script I have so far
    (function () {
        // Do nothing if not committed
        if (event.willCommit) return;
        // Set up an array to hold the individual paragraphs of text
        var aQuotes = [3];
        // Populate the array with the paragraph text
        aQuotes[0] = "Use common singular nouns, plural nouns [plural ‘s’] and proper names to say what things are"
        aQuotes[1] = "Use numbers 1–10 to count"
        aQuotes[2] = "Use basic adjectives and colours to say what someone/something is or has"
        // Get the selected item, which is the export value of the selected combo box item
        var item = event.changeEx
        // Display the text corresponding to the selected item in the text field
        getField("Text30").value += " " + aQuotes[item];

    You have to set the option for the text field to be multiline and then change the last line of the script to:
    getField("Text30").value += "\r" + aQuotes[item];
    To reset the field you can use a separate button with a Clear Form command, and then you just select this one field from the list.

  • Multiple drop down menu items to populate the same separate text box. How can I do it?

    In Acrobat Pro X, I've figured out how to create a drop down menu with items that will populate a separate text box, but how can I get multiple menu items to populate the same text box. For example. My drop down menu has three items  cat, dog, mouse. I choose cat and it appears in my separate text box (hooray). Next, I choose 'dog' from the same menu. I would like it to appear in the same text box along with my previous selection 'cat.' Is this possible? I'm very new to Java Script, any assistance would be greatly appreciated! Thank you

    She is the script I'm using
    (function () {
        // Do nothing if not committed
        if (event.willCommit) return;
        // Set up an array to hold the individual paragraphs of text
        var aQuotes = [3];
        // Populate the array with the paragraph text
        aQuotes[0] = "cat"
        aQuotes[1] = "dog"
        aQuotes[2] = "mouse"
        // Get the selected item, which is the export value of the selected combo box item
        var item = event.changeEx
        // Display the text corresponding to the selected item in the text field
        getField("Text field 1").value = aQuotes[item];

  • Cannot save opened tabs before closing the browser

    Cannot save opened tabs before closing the browser. I do not know if there is such a feature (should be), and how to activate it.
    It was very useful with previous version.

    One change in Firefox 4 is to by default stop Firefox displaying the warning message, but it can be turned back on by changing some preferences.
    # Type '''about:config''' into the location bar and press enter
    # Accept the warning message that appears, you will be taken to a list of preferences
    # Locate the preference '''browser.tabs.warnOnClose''', if its value is set to '''false''', double-click on it to change its value to '''true'''
    # Repeat this for these 3 preferences '''browser.warnOnQuit''', '''browser.warnOnRestart''' and '''browser.showQuitWarning'''
    If you always open the last set of tabs an alternative approach is this:
    # Click the orange Firefox button, then select options to open the options window
    # Go to the General panel
    # Change the setting "When Firefox starts" to "Show my windows and tabs from last time"

  • Can Dropdown menu item stay on the "roll over" state while the user's mouse is hoving over the sub

    Can Dropdown menu item stay on the "roll over" state while the user's mouse is hoving over the parent's sub-menus?
    Thanks

    Thanks for the response. My main goal here is to get the drop
    down menu word "Overview" to remain red once it reaches the frame
    "WhoWeAre" or "OurMission" on the main timeline. If I turn the
    button inside the movie clip into an MC to do this, the drop down
    menu no longer works. Any thoughts on how to get this drop down
    menu to do this?

  • How do  we check the check box items based on the databse fields.

    Hi All,
    I have a requirement like as mentioned below#
    1. I have a combox box whcih i will be populated from database.
    2. I have created two check box as "Stategric " and "Non Stategric".
    3. Now when i select the combox box condition i need to select the check box items.
    4. But the problem is i wil be knowing weather it is a stategric or Non stategirc based on the database column.
    5. How do i need to map the database point of view and correlacte with javascript pont of view.
    6. Do we need to write any Application process to achieve this task and who we can do that.
    Thanks,
    Anoo..

    Hi VC,
    As per my understanding the code should be placed between --.
    Based on this i have placed the code
    function setCheckbox(pThis, pItem){
    alert('inside');
        var l_code = '';
        // Get checkbox name
        rName = document.getElementsById('P1_ENG_BAU').firstChild.name;
    alert("The value is"+rName);
        // Fire AJAX
        var get = new htmldb_Get(null,html_GetElement('pFlowId').value,'APPLICATION_PROCESS=CHECKBOX_LIST',0);
        get.add('F120_COMPANY',pThis.value);
        gReturn = get.get('XML');
        if (gReturn) {
          var values = gReturn.getElementsByTagName('value');
          var messages = gReturn.getElementsByTagName('message');
          // Build the checkbox
          for (i=0; i<values.length; i++) {
            var rValue = values.firstChild.nodeValue;
    var rMessage = messages[i].firstChild.nodeValue;
    l_code+='<input id='+P1_ENG_BAU+'_'+i+' type=checkbox value='+rValue+' name='+rName+'>';
    l_code+='<label for='+P1_ENG_BAU+'_'+i+'>'+rMessage+'</label>
    document.getElementsById('P1_ENG_BAU').innerHTML = l_code;
    Correct me if iam understanding is wrong.
    Thanks,
    Anoo..
    Edited by: Anoo on May 31, 2012 11:04 AM                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • How a menu item can read the parameter from a Form module and ....

    I would like to specify the menu item to go_block from a Form module, or even open window, reading parameters.
    But there is an Error says "CANNOT CALL LINK-IN FORM from Form builder"
    How to make it works??
    Plesae HELP~~~~~

    Dear Friend,
    There is one Procedure by which you can get the value of the paramtere passed to the form.. this procedure is NAME_IN...
    Hope this will solve your problem..
    Ok
    Email me when your problem is solved...
    My email is "[email protected]"
    Regards
    Shan

  • Do I have to deinstall all Adobe CC software before formatting the HD?

    Due to technical problems I have to reinstall (format the hard drive) my system software. Do I have to deinstall ALL Adobe CC Applications before system installation/formatting? I backed up my HD (Time machine) but maybe have to install the Adobe programs one after the other from new to find out if the technical problems were caused by installed (Adobe?) software. MacBook Pro Retina with OS X 10.9.4. Tank you!

    Sign out of your Cloud account before you wipe your drive, sign in to your Cloud account and install when you are ready

  • Make a menu item that changes the window

    Since I am always changing the interface of Brandsonic Web, I would like to make a menu item that would allow the user to change the window to a window they like. The structure of the app is I have 3 different windows objects and I would like a way to change between them with a menu item choice. How do I go about doing this? Thanks!

    Click on the Menu bar  and go to View .  Or, hover over where the Menu bar shiuld be and click on it when it appears.  Try quitting and relaunching Finder.

  • Quitting the Application Before Closing the Window?

    I have a 6 day old iMac running Snow Leopard. I already knew that closing the window on most Apps did not close the program, so instead of closing the window, I would just click on, ie, "Quit Safari" and the Safari window would then close. I don't do that anymore, now I close the Window first, and then quit the App. Could I have caused any harm to the OS by just quitting the App, and letting that close the window?

    It's OK to close the app without closing the window. I never close the windows when quitting an app, I just hit CMD-Q. It does no damage.
    Regards,
    Captfred

  • Is it necessary to do a backup before installing the new ios7 and then do a restore? We have 4th

    I am not sure if I need to do a backup before installing the new upgrade of iOS7 and then do restore all files. I have heard of someone losing all their contacts! Any ideas please?

    I would back up anything you don't want to lose. Chances are, you wont' lose a thing.....but backups are always nice to have.

Maybe you are looking for

  • Configuring Database Server to Shared Server Architecture

    Hello! Sir/Madam, Presently Our server configuration is Dedicated Server Architecture, due to number of connections opening in the dedicated server, we are shifting our server configuration to the Shared Server Archiecture. Will any One send me what

  • Auditing SAP Application - users lists

    Hello everybody, i am trying to find a way to report a list of users that have the following authorizations: u2022     access to administrative tasks u2022     access to batch input administration u2022     access to monitoring tools and logs u2022  

  • Zsh - lots of blank space upon resizing VTE based terminals

    Hello I have an issue that is rendering me sleepless these days. It's about zsh and its behaviour when being run inside a VTE based terminal (e.g. gnome-terminal, xfce4-terminal, roxterm, sakura, ...). When I increase the terminal height, if the buff

  • Create User in OID

    I am doing exactly same thing for Create User in OID. Following is my code. String adminDN = "cn=orcladmin"; String adminPWD = "oracle10g"; boolean isSSL = false; InitialLdapContext ctx = null; System.out.println(adminDN); System.out.println(adminPWD

  • Trying to remove Adobe Illustrator CS3 for a re-install

    I am trying to remove Adobe Illustrator CS3 for a re-install but have come across some problems in the process. I am working in Windows XP SP2 When I go to uninstall, the Adobe screen won't let me proceed because updates have been made to the softwar