Manipulate the menu refnum

Is it possible to manipulate the paths menu item in the same way that you can manipulate the paths?  With the files, you can build paths and trails band will get where you want to go, but I don't see any way to do with menus.

I have an application that dynamically generates the menus.  When a user selects a menu item, I want to give him a check, but I want to uncheck all the other menu items that are in the same submenu.  If the menu items are fixed, it's not a problem, but if the menu items are dynamic, I'm having a devil of a time.

I solved my problem.  I had a typo in very stupid that I didn't notice.

Tags: NI Software

Similar Questions

  • Collect the value of edittext box & menu drop-down list to manipulate the project

    I built a simple GUI with a dropdown Panel and three boxes of edittext. I know not how to retrieve the values of each object to pass to the ASP (layers of text, project items). I'm still confussed on how to the onClick, onChange, onDeactivate, etc. methods work with functions... If I want to for example, to take the values in the boxes edittext to change values to text in a model layer, how could - I collect these values and pass them? In the sample code below it passes the default values for areas of edittext straight for layers of text in the model as soon as the GUI is launched...

    myGUI (this);

    function myGUI (thisObj) {}

    var myGUIPalette = myGUI_buildUI (thisObj);

    function myGUI_buildUI (thisObj) {}

    var myPanel = (thisObj instanceof Panel)? thisObj: new window ("palette", "user input panel', undefined, {resizable: true}");

    {//Build GUI

    res = "group {orientation:"column",-}".

    titleGroup: group {orientation: 'row', \}

    myStaticText: StaticText {text: 'Handset team word interludes'}, \

    },\

    textLineGroup: Panel {orientation: "column,"------}

    teamList:DropDownList {properties: {items: ['SORT CODES', '-', "ARI", "ATL", "BALL"]}}, \

    line01: EditText {}, \

    line02: EditText {}, \

    line03: EditText {}, \

    },\

    'ButtonGroup': group {orientation: 'row', \}

    clearButton: button {text: 'Clear'}, \

    renderButton: button {text: 'Making'}, \

    },\

    }";

    }

    myPanel.grp = myPanel.add (res);

    Default values

    var myPanel.grp.textLineGroup = textBox;

    textBox.teamList.selection = 0;

    textBox.line02.visible = false;

    textBox.line03.visible = false;

    var button = myPanel.grp.buttonGroup;

    var textBoxSize = (200, 20);

    var textBoxCharacters = 30;

    textBox.line01.size = textBoxSize;

    textBox.line01.characters = textBoxCharacters;

    textBox.line02.characters = textBoxCharacters;

    textBox.line03.characters = textBoxCharacters;

    Text box settings

    var defaultText01 = "enter the text of the line 01 ';

    var defaultText02 = "enter the text of the line 02."

    var defaultText03 = "enter line 03 Text."

    var myPanel.grp.textLineGroup = textBox;

    textBox.line01.text = defaultText01;

    textBox.line02.text = defaultText02;

    textBox.line03.text = defaultText03;

    textBox.line01.onActivate = function() {setTextBox (textBox.line01, defaultText01)};

    textBox.line02.onActivate = function() {setTextBox (textBox.line02, defaultText02)};

    textBox.line03.onActivate = function() {setTextBox (textBox.line03, defaultText03)};

    function setTextBox (activeTextBox, defaultText) {}

    if(activeTextBox.Text == DefaultText) {}

    activeTextBox.text = "";

    }

    activeTextBox.onDeactivate = function() {}

    If (activeTextBox.text == "") {}

    activeTextBox.text = defaultText;

    }

    ElseIf (activeTextBox == textBox.line01) {}

    textBox.line02.visible = true;

    }

    ElseIf (activeTextBox == textBox.line02) {}

    textBox.line03.visible = true;

    }

    };

    }

    var teamTri;

    textBox.teamList.onChange = function() {teamTri = textBox.teamList.selection};

    Settings button

    button.clearButton.onClick = function() {}

    textBox.line01.active = false;

    textBox.line02.active = false;

    textBox.line03.active = false;

    textBox.line02.visible = false;

    textBox.line03.visible = false;

    textBox.teamList.selection = 0;

    textBox.line01.text = defaultText01;

    textBox.line02.text = defaultText02;

    textBox.line03.text = defaultText03;

    }

    Manipulate the AE project

    ////////////////////////////////////

    ////////////////////////////////////

    #include "/ GFXM1/Script_Workflows/commonFunctions.jsx".

    var targetWidth;  Horizontal limit for altered text layers

    var modifiedLayers = new Array();

    numItems = app.project.items.length; collect the number of project items

    var teamLogosFolderMov = locateProjItems (FolderItem, "teamLogosMov");  Use CompItem to comps

    var teamLogosFolderRaster = locateProjItems (FolderItem, "teamLogosRaster");  Use CompItem to comps

    var teamLogosFolderVector = locateProjItems (FolderItem, "teamLogosVector");  Use CompItem to comps

    If (textBox.line03.text! = ' ': textBox.line03.text! = defaultText03) {}

    lineValue = textBox.line01.text + textBox.line02.text + "\r\n" + "\r\n", textBox.line03.text;

    }

    ElseIf (textBox.line02.text! = ' ': textBox.line02.text! = defaultText03) {}

    lineValue = textBox.line01.text + "\r\n" + textBox.line02.text;

    }

    else {lineValue = textBox.line01.text ;}

    for (c = 1; c < = numItems; c ++) {}

    model var = app.project.items [c];

    If (comp instanceof CompItem) {}

    for (i = 1; i < = comp.numLayers; i ++) {}

    {Switch (COMP. Layer (i). Name)}

    case 'textLines_GD ':

    targetWidth = 1720;

    setTextLayer_caseSensitive (comp.layer (i), lineValue);

    projectName = lineValue;

    If (scaleTextLayer (COMP. Layer (i), comp.layer (i).sourceRectAtTime(1,_true).width, targetWidth)) {}

    modifiedLayers.push (comp.layer (i));

    }

    break;

    case 'teamLogo_GD ':

    var numFolderItems = teamLogosFolderMov.numItems; Get the number of items in the folder teamLogos

    swapTeamLogo (numFolderItems, teamLogosFolderMov, teamTri, comp.layer (i));

    break;

    }

    }

    }

    }

    function swapTeamLogo (numFolderItems, teamLogosFolder, teamTri, layer) {}

    for (b = 1; b < = numFolderItems; b ++) {/ / loop in the teamLogos folder}

    If (teamLogosFolder.item (b) .name == teamTri) {/ / Check for game}

    layer.replaceSource (teamLogosFolder.item (b), true);  team swap in comp teamLogo logo

    }

    } //end check the teamLogos folder

    }

    ////////////////////////////////////

    ////////////////////////////////////

    Return myPanel;

    }

    If ((myGUIPalette! = null) & & (myGUIPalette instanceof window)) {}

    myGUIPalette.center ();

    myGUIPalette.show ();

    }

    }

    Hello, if your range variables are in the scope of your function (which is the case here) you need not pass them as arguments to your function.

    Then you can simply activate what wrote you in a function already and call on events, something like this:

    doIt() function

    {

    var

    targetWidth, numFolderItems, lineValue, ProjectName

    modifiedLayers = new Array(),

    numItems = app.project.items.length; collect the number of project items

    teamLogosFolderMov = locateProjItems (FolderItem, "teamLogosMov"), //Use CompItem for comps

    teamLogosFolderRaster = locateProjItems (FolderItem, "teamLogosRaster"), //Use CompItem for comps

    teamLogosFolderVector = locateProjItems (FolderItem, "teamLogosVector"), //Use CompItem for comps

    model,

    I, c;

    If (textBox.line03.text! = ' ': textBox.line03.text! = defaultText03) lineValue = textBox.line01.text + textBox.line02.text + "\r\n" + "\r\n", textBox.line03.text

    ElseIf (textBox.line02.text! = ' ': textBox.line02.text! = defaultText03) lineValue = textBox.line01.text + "\r\n" + textBox.line02.text

    else lineValue = textBox.line01.text;

    for (c = 1; c<= numitems;="" c++)="" if="" (="" (comp="app.project.item(c))" instanceof="">

    {

    for (i = 1; i<= comp.numlayers;="" i++)="">

    {

    case 'textLines_GD ':

    targetWidth = 1720;

    setTextLayer_caseSensitive (comp.layer (i), lineValue);

    projectName = lineValue;

    If (scaleTextLayer (COMP. Layer (i), comp.layer (i).sourceRectAtTime(1,_true).width, targetWidth)) modifiedLayers.push (comp.layer (i));

    break;

    case 'teamLogo_GD ':

    numFolderItems = teamLogosFolderMov.numItems; Get the number of items in the folder teamLogos

    swapTeamLogo (numFolderItems, teamLogosFolderMov, teamTri, comp.layer (i));

    break;

    default:;

    };

    };

    };

    myPanel.grp.buttonGroup.renderButton.onClick = needs;

    If instead you want to write a function that is independent from the UI variables, IE not dependent on variables of string, then you must pass these values as arguments:

    function must (text01 text02 text03, defaultText01, defaultText02, defaultText03)

    {

    same start

    get lineValue of arguments

    lineValue = text01; If (text02! = "" |) Text02! = defaultText02) {lineValue += "\r\n" + text02;}  If (text03! = "" |) Text03! = defaultText03) lineValue += "\r\n" + text03 ;} ;

    same end

    };

    myPanel.grp.buttonGroup.renderButton.onClick = function() {has (textBox.line01.text, textBox.line02.text, textBox.line03.text, defaultText01, defaultText02, defaultText03) ;};

    Note: I changed my computer var = app.project.items [c]; (does not work) to comp = app.project.item (c); and if (textBox.line02.text! = ' ' | textBox.line02.text! = defaultText03) (risky) if (textBox.line02.text! = ' ': textBox.line02.text! = defaultText03).

    Xavier.

  • By programming the menu default runtime value

    I'm setting up the menu of the duration of a menu custom to the default menu.  I write a string by using the RunTimeMenuPath property node when the VI is inactive.  All combinations of base failed: empty string, 'default', 'default.rm '.  When I opened the VI and check the menu change, the specified string is not found, and the menu is then reset by default.

    Is there another way to set the TIME back at default other than the property of RunTimeMenuPath?

    I have professional LV2010.

    The solution to this problem.   The reference I was using was generic Virtual Instrument and gave me the runtime Menu path as a string.  There is no way to clear the menu.  When I got a VI Refnum instead, setting the path to the changed the default Run Time menu.

  • Run the menu error

    Hello world

    I run intoanother apparently simple problem, but I just can't get my head around it.

    I want to set up a simple menu of execution of a control where the user can select different options.  RTM reviewed and set by default no problem.  Right-click on the control when running, the correct menu does appear, no problem.

    Problem arises when I want to set the menu checked or unchecked entry. My problems are:

    1. Why didn't - not the refnum menu that appears in the "Selection of the Menu?" events (user)  Do I have to intercept the reference of the event "Meu activation?" menu for control?
    2. When I catch the reference in this way (changes reference to each menu selection), I get "Menu invalid 1160 error" when I try to change the items in checked or unchecked...  I store the reference in a registry to offset for later use when a different menu event is triggered.

    Can someone please take a look at this VI and let me know what I am doing wrong?

    Why the run menu not can not simply be read of the property of a control node?  It would be so easy.   Or if I know the name of file for rtm, how can I get a valid reference to it?

    Sorry what are silly questions, but I just can't understand it right now.

    All screws are 8.2.1.

    Thank you

    Shane.

    "When I catch the reference in this way (changes reference to each menu selection), I get"Menu invalid 1160 error"when I try to change the items in checked or unchecked...". »

    Make these changes in "activation of the Menu (user) selection event?

    The menu "(user) the Menu selection event" is after the display was done, so it is normal is not to place a check (make a change)

  • Hide the menu item

    Hello

    I can't disable an element of a menu item, but it's a way to completely hide the option in a menu?

    It is any component menu up there with this feature?

    Thank you

    Or you can have a collection of ArrayCollection which manipulate you using the methods in the ArrayCollection collection (addItem, removeItem, etc.), to have the correct items for the type of connection.  If your dataProvider is something that implements ICollectionView, mx:Menu listen to collection change events (CollectionEvents) and update the menu accordingly.

    You can also change the dataProvider.

  • Build the menu command does not appear does not (v7.0)

    I'm not able to see the menu in the order of generation. I tried to uninstall and then reinstall Keynote, but also remove the plist file in my preferences, but cannot get the menu to appear. I searched online, and it seems that no one else knows this problem. I use a MacBook Pro 13 "mid-2014 MacOS 10.12

    Is there anything I can try to get this working? It is a menu that sorely miss me.

    To answer my own question, I closed the Keynote used AppCleaner to get rid of the supporting files for Keynote, then restarted the app and everything was fine.

  • The menu bar clock freezes after recovery from sleep mode

    After the upgrade to Sierra, I noticed that the clock in the menu bar (top right) show wrong time.  This occurs when the iMac comes out of his SLEEP.  When I hoover the pointer of the mouse on the clock, it would turn into a spinning ball (i.e. no response).  I have to disconnect and reconnect so that the clock in the menu bar to indicate the correct time.  She would continue to work until the next time that the iMac comes out of SLEEP.

    Anyone facing this problem?

    Have you tried booting in safe mode (hold down the SHIFT key at startup)? The problem persists?

    If you create a new user account, does?

  • I have a grey spinning wheel in the menu bar...

    I have a wheel that turns in the menu bar. I can't delete it, and if I click it, the words "close - close subfolders ' seems... what? What should I do to remove it?

    The following thread might solve your problem.

    Clock bar menus and spinning wheel

  • How to remove the period/point of the day and month in the menu bar

    Since the upgrade to Sierra I noticed that the day and month in the menu bar have now periods (diaphragm openings) after them, for example 'Sun' instead of 'Sun '. It is not possible to change this by using the language and region settings. I find them boring. Is there any other way (for example by using Terminal Server) to get rid of them?

    This is the default value for the Australia, for example. What region is selected in system preferences?

  • Where is the Menu bookmarks?

    In Safari 10 I can only add bookmarks to the 'Favourites' section or to bookmark files, I created myself. I can't add to the bookmarks Menu more because apparently disappeared? Is this a bug? Now I can not add my favorites for the 'root' of the bookmark list more. My bookmarks section contains a list of folders of bookmarks and a few bookmarks in the upper slot that I did not put in such a folder. I used to select the Menu bookmark to add those and decided later if I want to move to a folder of bookmarks. But this Menu bookmarks option has now disappeared. It is not anywhere between my either custom files. So where is he past?

    Open the Bookmarks Sidebar, then click on the URL, and then drag it to the bookmarks.

  • Icon not appearing SIRI is not in the menu bar

    Just installed Sierra - Siri icon appears in the dock but no menu bar. How do I configure that?

    Go to the system preferences window click the siri, then in the window to disable the Siri display in the menu bar and then on again.

  • Siri is not displayed in the menu bar - an idea, why not?

    To http://help.apple.com/macOS/Sierra/WN/?lang=en_US#/siri-WN , I noticed that Siri is supposed to be in the menu bar. And in settings > Siri "display in the menu bar" is selected by default. But he does not appear in my menu bar. Yet it is in my dock.

    No idea why it doesn't appear in the menu bar?

    In addition, Siri has a few display bugs (see screenshot).

    Turn off your computer and restart.

     > System Preferences > Siri > Siri display in the menu bar

  • Impossible to disable the menu bar black in El Capitan

    An application that I used works option "menu bar black" of OSX and while I like it better than the light menu bar some of my menu icons are not visible in dark mode and so I would like to disable. However, the problem is that I can't. Whenever I have untick "use the menu bar black and anchor" setting in system preferences > general, nothing happens. Then when I close the system preferences and open it again, I find that the box is checked once more. (I also uninstalled all traces of the original application that made that change, reinstalled, tried to turn the option off, clear again, etc. - all without success).

    I tried to check in the Library/preferences /. GlobalPreferences, but it doesn't seem to be an option for this setting (while I can see the setting to hide the menu bar).

    Any ideas?

    Try

    remove parameters by default g AppleInterfaceStyle

  • Apple music app - how to remove radio in the menu?

    I am not a subscriber of Apple's music and have it turned off in settings on the iPhone. However, the radio icon always appears in the menu at the bottom between the library and research. Is it possible to get rid of it and go back to being able to have artists and playlists listed here which is what I always used to play music? Looks like a waste have radio it that I never use and now I have an extra press to go through library.

    At present it is not possible to change the way the menu is designed.

    There could be a change in the future, who knows

  • How can I change the language of the menu?

    I just installed Firefox, and the menu I receive is in Thai language. I can't seem to find a way to change English menu. Help, please. I use Firefox 42.0 and Mac OSX 10.11.1

    Thank you.
    Vira

    To choose your language, download from this page:

    https://www.Mozilla.org/Firefox/all/

    Now, I'm not a Mac person, but I understand that to pass one version of Firefox to another, you 'trash' current application of Firefox - without removing data to personal or settings - and then install a new.

    But you can wait for a Mac person confirm the details.

    See also: How to download and install Firefox on Mac

Maybe you are looking for

  • Global portal

    What are the conditions to be eligible for a global portal?

  • Hard disk failed to keep windows 7 for the new hard drive or SSD

    Hi, windows told me recently there is a problem with my hard drive and that I would back up my data to an external storage device, in case it fails, but don't want to backup my files because they aren't important. When I tried to access file Explorer

  • ORA-06508, procedure cannot call the procedure of package

    I have a large stored procedure that calls a package (procedure) that manages a number of procedures to determine whether the process can continue or not.  (It checks authorization of the student to enroll in a class).  We have a web process calling

  • Bug: See Doc blocks before before closing the card

    Well, I don't know what is happening, but every time I open a document order to the doc and then attempt to close the card throw, my pre resets.  It freezes for about 5-10 seconds with the map half off the screen, then I get a Palm logo and a reset. 

  • Lost network redundancy!

    Normally, when die NIC 1, we have netword redundancy. But this time, time 2 die of network card in a standard switch in a 5.1 ESXi host-> that is why, many network down-> affect to multiple virtual machines. There is only avaible network management y