inserting submenu items via the code - not the file editor graphics *.uir (not the edit > > Menu Bars... method!)

How submenu items are constructed by code and not the edit menu bar settings in the *.uir Editor?  NemMenuItem (...) does not do that, or I'm not plugging in parameters correctly, which I doubt is the case.  BTW, he has no explanation in the help of v.8.0.1 AIC menu items on NewSubMenu (...) and how to use the subMenuHandler for all other functions.  At least everything I found had nothing to do with submenu items.  Is it impossible to do it by programming?

Hi Chris,

You can paste the code below directly to the interactive execution window and run.

The result is in the attachment.

#include

public static int NLP, mbar, menu;
public static int mitem, submit, submitem;

NLP = NewPanel (0, "", 250, 250, 250, 250);
mbar = NewMenuBar (NLP);
menu = NewMenu (mbar, "menu",-1);

mitem = NewMenuItem (mbar, menu, "submenu",-1, 0, 0, 0);
prese = NewSubMenu (mbar, mitem);
submitem = NewMenuItem (mbar, submit, "submenuitem",-1, 0, 0, 0);

DisplayPanel (NLP);
RunUserInterface ();

I hope that's what you asked for.

Have a nice weekend

Tags: NI Software

Similar Questions

  • How I rename an item in the main menu bar ('file', 'Edit'...)? With userChrome.css, I changed the 'content', but the 'label' wrote then.

    I'm changing the name of the main "bookmarks" menu item
    Regarding submenu items, I managed to change their 'content' via userChrome.css.
    But setting a name different in a "content" of the bookmarksMenu in this way only leads to show the new name of the menu with its next "bookmarks" label.
    How can I change the tag or remove its display?

    You cannot change the name of a menu via the code item in userChrome.css because you can use this file to make CSS changes and do not change the attributes.

    If you use a content property {content: "new label"} then you add only the text before or after existing text if you want that button would you like to work.

    You create a simple extension to make such a change or possibly use the extension userchromeJS.

  • I can't find the pdf file using the Edit menu bar | To find

    I can't find a pdf file in Firefox. I select the form to change the bar then find menu in the menu dropdown. I then get a research work in the lower part of the right text box but she blushed and does nothing.

    When I view the same pdf file in Internet Explorer, it works.

    I solved this problem by going to Tools/Options and change the setting of "Adobe Acrobat Document" to "Use Acrobat reader (in Firefox)" to "(by default) use Acrobat Reader.
    Sounds illogical to me, but it works.

  • When I right click the tab recent items on the start menu, the option to clear recent does not appear.

    When I right click on the RECENT ITEMS tab on the right on the display of the menu pane START, the option CLEAR the RECENT ITEMS LIST does not appear.

    How can I restore it?
    original title: restoration CLEARLY the RECENT POSTS

    Hello

    This occurs if the file desktop.ini in the recent folder is deleted.

    a. Click Start, type "% AppData%\Microsoft\Windows" and press {ENTER}

    b. right click on the folder named recent, then choose Delete. Click Yes when you are prompted.

    c. now, type the command "shell: recent" in the start - menu search box, and then press {ENTER}.

    Note: The command above recreates the recent folder, as well as a new desktop.ini file and opens the file.

    d. disconnect and return connection. You should now see the context menu list of recent items clear when you right click on the recent items on the start menu folder.

  • Is it possible to change the order of items in the context menu of 'link' (I want to 'open in a new window... ("Be the first)?

    I did an upgrade FF v3.6.xx to v17.0.x and found that the order of items in the context menu 'Link' is not the same.
    v3.6 menu looks as follows: 1. "Open link in a new window", 2. "Open link in a new tab,"
    order of the items in menu v17.0 is 1 reverse. "Open link in a new tab", 2. " Open the link in a new window. "
    Position of all the other elements are uninteresting to me.
    How to exchange it two points higher in the contextual menu "link"?

    The two ways are useful:

    "Drag-n-drop" in the Editor window works.

    For my Windows XP path looks like: "C:\Documents and Settings\%account%\Application Data\Mozilla\Firefox\Profiles\%random_name%\chrome\userChrome.css".

  • I have Adobe Acrobat Pro XI.  I went to special characters from the Edit menu and choose some emoji as Favorites, but I can't understand how to insert in the document.  How can I insert special characters into a document?

    How can I insert emoji or other special characters in a document using Adobe Acrobat Pro XI?  I went to special characters from the Edit menu and may not understand how to insert the special character in the document.

    He's not that kind of editor. You can use the characters in a font. If you can select a font with the emoji, which fits into the case, and then enter the characters, it can work.

    This suggests that you try to do TOO MUCH with a PDF file. It is a common thing, but the message should be: everything simply because you can edit a PDF file, does not mean that it is the most effective way for you to do your job.

  • I am not happy with the new menu bar. I made a mistake in the change. Want to use the button refresh or open a new tab when requested without

    I made a mistake some how. I'm not the best a computer news as the new avg with the research changes. I want to return my old menu bar. I want to be able to open a new tab without going through an open search window. I don't like new tiny 'file above it don't help me. I want the option to click the Refresh button bit. How to get back to what I had before?

    I don't know what happened to your menus and toolbars. Has this happened after an update of Firefox, or a change in your add-ons?

    (1) you can switch between the Firefox button orange with its abbreviated menus and the classic menu bar, by using the following text:

    ALT + v (open the menu Classic view) > toolbars > Menu bar

    (2) in the new tab, you wanted it is empty? Are there currently AVG research? If you want to get rid of the search for AVG, you probably have to disable to remove one or more modules from here:

    Orange Firefox button or classic menu Tools > Modules > category: Extensions

    Does make a difference?

    (3) the reload button is nestled at the end of the address bar, after the star icon and the drop-marker. If you prefer that your button to reload on the bar itself, you can do that using the personalization feature.

    ALT + v (open the menu Classic view) > toolbars > customize

    In order to avoid the button reload to slip into the URL bar, you can perform the following actions:

    • Move the button reload for the left side of the address box
    • Move another button between the address box and reload
    • Move another button between the reload and stop buttons
    • Reverse the order of the reload and stop buttons

    You can get as you wish?

  • The find command in the Edit menu does not work. No window in which enter the words I want to find opens.

    When I go to edit and click on find no window opens and so I can't enter the words I'm looking for on the Web page. The same result is delivered with the help of Ctrl + f. Infact, when I click on the Edit menu, I noticed that Find is not followed the habit... Does that mean that search doesn't do not form part of this new version of Firefox and if so why?

    If you use Edit > Find or Ctrl + F, then you should see a bar of search at the bottom of the browser window. The current versions of Firefox do not show a pop-up window.

  • Cannot display some items on the start menu

    When I opened my laptop, go to the internet, then open the start menu, this alert rises; Unable to display some items in the start menu...

    What can I do? What the menu items start? This can be corrected?

    Thanks for the help

    Tim

    Hello

    Were there any changes (hardware or software) to the computer before the show?

    Perform the steps mentioned below and see if the problem persists.

    a: right click on the Start button, then click on Properties.

    b: now click on the Start Menu tab and click the Customize button.

    c: Now in the option which reads, number of programs to display the value less than 5 , then click on ok.

    Hope this information helps.

  • How to add the menu item in the context menu of the Gallery

    Hi all

    I am new bie BlackBerrry development. Does anyone know how to add a menu item in the context menu of the BlackBerry Gallery. In other words, when I am browsing photos in the Gallery, click on the menu, there will be a configurable option so that my request will be executed when I select this item.

    Thank you
    TuanSandman

    See this article.

    http://www.BlackBerry.com/knowledgecenterpublic/livelink.exe/fetch/2000/348583/800332/800367/How_To _...

    Check the class ApplicationMenuItemRepository for applications where you can add the custom menu item.

  • JumpLists disabled; 'store and display of recently opened items in the Start Menu and the taskbar' is greyed out

    My option 'store and display of recently opened items in the Start Menu and the taskbar' is grayed out. Are also grayed out any mention of "jumplists" system (i.e. the number of items to display in the jumplists). Have I inadvertently disabled this feature? If so, how can I return it?

    Hi, landonblaine:

    When the option store and display recently opened items in the start menu and the taskbar is disabled and grayed out, it is a symptom that two Windows fonts are applied to your system.

    Open the Publisher of the registry (Regedit.exe) and navigate to this key: HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer. If there is a registry that NoRecentDocsMenu value set to 1, delete it. If there is a registry that NoRecentDocsHistory value set to 1, remove it as well.

    Repeat the same steps in the HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer registry key (it cannot exist).

    Restart your computer and see if the problem is resolved. Microsoft MVP Windows Desktop Experience

  • I use Photoshop CC and have just watched a tutorial by Andy Anderson about bosses. In the tutorial Andy put a frame around a picture using the fill on the Edit menu. When I try the exercise my fill window is different and that is not the image

    I use Photoshop CC and have just watched a tutorial by Andy Anderson about bosses. In the tutorial Andy put a frame around a picture using the fill on the Edit menu. When trying to exercise my fill window is different and does not have the picture frame option. How to overcome this please?

    Hello

    Please, go to the filter menu and choose make it > photo frame.

    Thank you

  • [JS CS4] Add menu item to the context menu of the control panel paragraph styles

    Hi all

    I am trying to add a menu item in the context menu of control panel of the paragraph styles, that appears when you right click on any paragraph style name in the Panel. But I can't find the menu in app.menus.

    In app.menus there is, for example, a 'Menu of the Pages panel framework', 'object Styles point context Menu. But there is no similar menu for the paragraph or character style.

    Someone help me?

    Paul

    RtMenuStyleListItem

  • Background of the Spry menu bar problem

    Hello
    I tried to search for this problem, and although I found others with the same problem, there has been no response (probably so obvious I missed it and they understood.) And I update the Spry menu bar to the latest version.

    The Horizontal Spry menu bar works fine on Firefox and IE 7, the background is white and the submenus, not the intention. Alignment and size is fine, just designed background colors do not work (on the menu itself, I want a transparent background on submenus, #777079.)
    Website: September Entertainment Site
    Style sheet Spry: Spry CSS

    Thank you in advance for any help you can give me.
    See you soon,.
    Janell

    Hello
    Just found the problem for someone who is having the same thing happen. This is the cut down "Sections":

    /*******************************************************************************

    BROWSER HACKS: hacks below should not be changed, unless you are an expert

    *******************************************************************************/

    / * HACK FOR IE: to ensure that sub menus show above form controls, underpin us each submenu with an iframe * /.
    UL. MenuBarHorizontal iframe
    {
    position: absolute;
    z index: 1010;
    Filter:alpha(opacity:0.1);
    }
    / * HACK FOR IE: to stabilize the appearance of the menu items. the slash in the float is to keep IE 5.0 analysis * /.
    @media screen, projection
    {
    UL. MenuBarHorizontal li. MenuBarItemIE
    {
    display: inline;
    f\loat: left;
    background: fff;
    }
    }

    Where it says: "background: fff;" change to everything that you need, in my case, "background: transparent;"

    Voila!
    See you soon,.
    Janell

  • The Spry menu bar navigation

    I am using the Spry menu bar and have several menu on my home page items that have incorporated under them. For example, I have an element of menu 'navigate' on the home page, and the slot 'Browse' 'saw inventory"and"wish list ". I want users to be able to access the sub through the menu item "Browse" items but does not allow users to open "Browse."

    I would like suggestions.

    Thank you

    Iain

    Just put a # where otherwise the URL would go as a

  • Browse
  • GRAMPS

Maybe you are looking for

  • HP 15 Notebook: no audio input jack

    Hi all my laptop has a shot of audio output for headphones, so my question is: how is it possible to record from an internal audio source using my laptop? For example, I would like to record audio from my digital piano. Thank you Luciano

  • Tecra A11 - 11: BSOD when plugging in USB devices

    Help. We have several laptop Tecra A11 - 11 to different schools * ALL * with the same problems. When the laptop is up and running if a USB device is plugged into one of the USB ports the laptop flashes a very quick BSOD and dies. What is more remark

  • Sine table undeclared in FindMinMax in Sample1.c

    I try to work through the tutorial getting started for Labwindows and in Chapter 5, and I like to add int CVICALLBACK (int, int int event, Sub control panel FindMaxMin * callbackData, int eventData1, int eventData2) { int min_index; Double min; int m

  • Help - problem usb :(

    Hello. This is my first time writing here. I have a problem. I have HP Pavilion dv7-6178us notebook. I have 4 ports usb on it (2 on the left side) and two on the right side. The problem is that both of the USB ports do not (both on the left side). Ca

  • Drive hard dead - new drive installed no operating system - XP key for that computer is portable hard disk newly installed?

    Changed the bad disk to another - XP key will transfer fees drive installed and how to make xp on the fresh drive?