Can I programmatically trigger a menu item tag selected event?

I am trying to trigger a menu item selected event using built-in vi's. I want my Handle Menu vi to handle the case where the user checks on a boolean control as well as slected the menu option. I don't want to use POSTMESSAGE with acceleration key combination. Are there any built-in vi's which can "post" such a message?

I have a similar situation and understand why adding a message to the menu queue would be an elegant solution to the problem.
I have lots of menu bar selections in my program, and I would like to set up a button bar like most applications now have. To do this using the "in parallel" way becomes a ratsnets of wires and would take up a lot of window space.
I have attached a file that is a good example of how to solve this problem with Event Structures in LabVIEW 6.1. It doesn't take up much additional diagram space and it can be quickly and easily reconfigured.
It would be nice if future versions of LabVIEW had a more integrated button bar.
Matt
Attachments:
Menu_and_button_bars.vi ‏68 KB

Similar Messages

  • Strange ATV2 behaviour - Movies can't be selected for downloaded & most menu items not selectable??

    ATV2 fully online, previews movies, downloads YouTube, Homesharing all good (and a seasoned ATV owner and user)
    However download movies is not working, and no error message just a "beep" sound when you select "rent movie".
    Also many of the menu items cannot be selected.  You cannot down select most of the items under General, so it's impossible to change settings, or to do any troubleshooting.  You get the same "beep" sound when you select Name, Network, iTunes Store, Reset, etc.
    I have done the usual power down, plus reset using remote, but the system doesn't seem to go back to factory default.  I haven't tried the mini-USB connection to MAC as I don't have a cable but hoping someone can help?

    <Button guid="guidCBExtensionPkgCmdSet" id="cmdIdCBAutoSave" priority="0x0100" type="Button">
    <Parent guid="guidCBExtensionPkgCmdSet" id="CBAutoSaveGroup" />
    <Icon guid="guidImages" id="bmpDisk" />
    <CommandFlag>TextChanges</CommandFlag>
    <!--<CommandFlag>DefaultDisabled</CommandFlag>-->
    <Strings>
    <ButtonText>Enable Document AutoSave</ButtonText>
    </Strings>
    </Button>
    private void OnBeforeQueryStatus(object sender, EventArgs e)
    DbgMessage("OnBeforeQueryStatus");
    var myCommand = sender as OleMenuCommand;
    if (null != myCommand)
    switch (myCommand.CommandID.ID)
    case (int)PkgCmdIdList.CmdIdCBAutoSave:
    myCommand.Enabled = true;
    myCommand.Text = _autosaveEnabled ? "Disable Document AutoSave" : "Enable Document AutoSave";
    break;
    case (int)PkgCmdIdList.CmdIdCBAutoSaveProject:
    myCommand.Text = _autosaveProjectEnabled ? "Disable AutoSaveProject" : "Enable AutoSaveProject";
    myCommand.Enabled = _autosaveEnabled;
    break;
    default:
    break;
    DbgMessage(string.Format("Id: {0} Text: {1}", myCommand.CommandID.ID, myCommand.Text));
    Very puzzling that I have only seen the bad behavior on Win8.1, and not when debugging the extension.  (Haven't been able to try the extension on Win8, but have tried it on several Win7 computers, and one WinServer 2012 R2 computer.)
    Is there someplace to look for runtime exceptions?  I haven't seen any in the Output window when the bad behavior occurs....
    (If you want to try the extension, you can add a gallery and point it to www.cbates.net/VSIX/atom.xml.)

  • [Gnome 3.2 fallback] Can't edit Applications - Accessories menu items

    Since the upgrade to 3.2 I can't edit Accessories menu list. Any idea how to to remove this feature?
    Off-topic:
    Does anyone else gets gray-to-black gradient on focused window list (panel) items? I've installed fresh Arch with Gnome 3.2 in VBox and I get the same thing there too (including inability to edit Accessories list).

    How do you mean 'editing Accessories menu'? You can enable/disable elements from Applications menu by right clicking on it, and select 'Edit menus'. You can get a more functional menu editor by installing alacarte (gtk2) or alacarte-git (gtk3) from AUR.
    And I also get gray-to-black gradient for active window on windows list on bottom panel, which makes the name of the window unreadable.

  • LabVIEW 7.1: menu driven event structure question: How can I cause an event case to fire when either a boolean object or a menu item is selected without polling?

    I am using an event structure to eliminate the overhead associated with polling from the GUI. I have build cases associated with each front panel button, and would like to programmatically generate a menu for the vi, adding each selection from the menu to its associated case. However adding a "user event" to a case that is already associated with a front panel button does not seem to allow the selection of the associated user event. Do I have to register each option on the custom menu? Should I programmatically generate the menu and use the same array to register the choices? Are there any examples out there
    that would help me?
    Thanks!!!!
    Steve

    Hello:
    I visited the forum for the purpose of getting some ideas on user
    events architecture. Well, I have to finished standalone working
    modular VI codes one which works as a standalone local control and
    one  which works on a remote communications mode. Now these 
    codes in themselves has event driven capabilities my problem is I
    needed to create another topmost layer VI that will be capable of
    switching between these remote and local operating mode - which I was
    thinking also to be event driven. This maybe a poor idea but I tried
    anyway. Is the User Event loop can be nested? Meaning an event within
    an event thing?
    Regards,
    Berns B.
    Bernardino Jerez Buenaobra
    Senior Test and Systems Development Engineer
    Test and Systems Development Group
    Integrated Microelectronics Inc.- Philippines
    Telephone:+632772-4941-43
    Fax/Data: +632772-4944
    URL: http://www.imiphil.com/our_location.html
    email: [email protected]

  • How Do You Control the Order That Menu Items Are Selected

    I am using iDVD 6 with the Portfolio Theme (iDVD 5). I created a project with one 15-minutes iMovie project and seven slideshows (created in iDVD).
    In Preview mode (or with the final) DVD, the order that entries on the main menu are selected does not seem to follow a logical pattern. As I try to advance using the right cursor, the second item (horizontally) is skipped. (I have two rows, each with four items). When I have one of the other three items in that row selected, the second item is selected if I hit the down arrow.
    In 'flowchart view' the eight items are in the order I want them to be selected. That is, the item that is being skipped is in the second position on the flowchart.
    Any insight on this would be appreciated.
    PowerBook G4 1.33 Ghz (me) & FP iMac - 1.0 Ghz (kids)   Mac OS X (10.4.4)   iMac (for the kids)

    I created an iMovie and then exported to iDVD, iDVD used the same sequence as the iMovie. When you build you Movie or slide show it follows the sequence that you place them in the time line. I have a Slide Show movie with video clips in the time line all of the shows and clips play in the order that I placed them. When you move through the menu use the right arrow to move accross the menu and the down arrow to move down to the next row. There is an button to move to the next menu. I have 13 chapters in my iDVD and they appear on 3 menus. Each menu shows 6 buttons you can edit the button titles and reposition them if you deselect the snap to grid and select the other option. When I open my project after exporting the titles overlayed each other. The buttons picted up my iMovie titles so I had to fix them and reduce the type size and move the buttons to separate them. The time line sets the order and the arrow keys move throgh the buttons on you Mac screen you can select with the mouse by clicking the button. On a DVD player you are stuck with the arrows and enter keys on the remote. You may have a glitch in your data check the time line along bottom of your original to see if the chapter markers are in position.
    Richard
    1.25 GHz Dual G4 Desk Top Mac OS X (10.4.6)

  • Multiple menu items != multiple event handlers?

    I'm developing a program whereby a user can rate how much they like certain images when displayed on screen. The bulk of the work is done, but my rating mechanism (first attempt at one) is currently a right-click pop-up menu with the values 1-10 in ten menu items - naff I know, but its early design stages ;)
    This brings obvious problems, and I don't want to have to code event handlers for each and every Menu item just to set the same parameter to a different value depending on which menu item the user clicked (i.e. I don't want to have to create an event for the first menu item that simply sets and int variable to 1, and do the same for #2 through 10). What I was wondering was, is there any simpler way of implementing this? I.e. can I use the same event for the whole popup menu and detect the value of the option clicked and set the value accordingly? This would also mean, should I need to extend the rating scale above ten, say perhaps to twenty, then there would be no further coding necessary (which is nice! Lol!).
    Can anyone offer any suggestions? I did search, but tbh didn't have a clue what to search for. Your advice is appreciated.

    Implement the ActionListner that allows the constructor to take an argument as to the rating of the menu item, and then set the required rating variable to this when called. For example
    class MyRatingSystem
        int rating = 0;
        public void createMenus()
            JMenu ratings = new JMenu("Ratings");
            for(int i = 0; i < 10; i++)
                JMenuItem rating = new JMenuItem("Vote: " + i);
                rating.addActionListener(new RatingListener(i));
                ratings.add(rating);
        class RatingListener imlpements ActionListener{
            final int rate;
            public RatingListener(int rate)
                this.rate = rate;
            public void actionPerformed(ActionEvent ae)
                rating = this.rate;
    }The above code is inefficient and is only there to serve the purpose of an example(look at the loop, although I would think the compiler could do some loop unrolling?)
    HTH

  • How to make menu to auto close when a menu item is selected?

    hi ...my question is described above..
    to make things clearer i have written a mini code to demonstrate my problem
    import java.awt.event.ActionEvent;
    import java.awt.event.ActionListener;
    import javax.swing.*;
    /* just a frame with a JMenuBar with a JMenu with two RadioButtons
    public class myFrame2 extends JFrame implements ActionListener{
         JMenuBar mb ;
         JMenu mi;
         JRadioButton rb1;
         JRadioButton rb2;
         public myFrame2(){
              super();
              mb = new JMenuBar();
              mi = new JMenu("New");
              rb1 = new JRadioButton("Button 1");
              rb1.addActionListener(this);
              rb1.setActionCommand("action1");
              rb2 = new JRadioButton("Button 2");
              rb2.addActionListener(this);
              rb2.setActionCommand("action2");
              mi.add(rb1);
              mi.add(rb2);
              mb.add(mi);
              setJMenuBar(mb);
              pack();
              setVisible(true);
         @Override
         public void actionPerformed(ActionEvent e) {
              // Do something......
         public static void main(String args[]){
              new myFrame2();
    }If you run this program you will see that when you select a RadioButton the menu doesn't hide ...
    How can i make it hide when a menu item (JradioButton) is selected?
    thanks in advance
    Edited by: Pitelk on Jun 10, 2008 7:42 AM

    On a menu use JRadioButtonMenuItem.
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    public class JRadioButtonMenuItemExample {
        public static void main(String[] args) {
            EventQueue.invokeLater(new Runnable(){
                public void run() {
                    launch();
        static void launch() {
            JMenuBar mb = new JMenuBar();
            JMenu menu = new JMenu("menu");
            mb.add(menu);
            ButtonGroup bg = new ButtonGroup();
            JRadioButtonMenuItem item1 = new JRadioButtonMenuItem("alpha");
            bg.add(item1);
            menu.add(item1);
            JRadioButtonMenuItem item2 = new JRadioButtonMenuItem("beta");
            bg.add(item2);
            menu.add(item2);
            JRadioButtonMenuItem item3 = new JRadioButtonMenuItem("gamma");
            bg.add(item3);
            menu.add(item3);
            JFrame f = new JFrame();
            f.setJMenuBar(mb);
            f.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
            f.setSize(400, 300);
            f.setLocationRelativeTo(null);
            f.setVisible(true);
    }

  • When menu items are selected they become invsible

    when I select a menu item the words become invisible.

    Start Firefox in [[Safe Mode]] to check if one of the add-ons is causing the problem (switch to the DEFAULT theme: Tools > Add-ons > Themes).
    * Don't make any changes on the Safe mode start window.
    See:
    * [[Troubleshooting extensions and themes]]
    If it does work in Safe-mode then disable all extensions and then try to find which is causing it by enabling one at a time until the problem reappears.
    * Use "Disable all add-ons" on the [[Safe mode]] start window to disable all extensions.
    * Close and restart Firefox after each change via "File > Exit" (Mac: "Firefox > Quit"; Linux: "File > Quit")

  • Since I upgraded to Yosemite I can no longer upload photos to eBay by selecting "events"  all my photos pop up together.  Anyone know how to fix this?

    I recently updated to Yosemite 10.10.1.  Since I updated I can no longer upload photos to eBay, Shutterfly, Craigslist by selecting "events".  It is no longer an option.
    All my photos come up as one entire library.  When I view them in iPhoto they are divided into events, however once I go to upload them the entire library appears without any defining options, such as "events", recent imports, etc.   I thought at first this might be an issue with eBay, but realized it wasn't when I tried to list on Craigslist.  This is a nuisance and time consuming process.  Does anyone know if there is a fix in the future or if I am just missing some quick fix?

    I would like to add that Comcast is my internet provider. Perhaps that is part of the issue although the Connection Doctor confirms the mail box is connecting to the internet. No other function processes when Connection Doctor program is used to find the source of the issue. I have read forum posts but am unable to find a way to get my Apple mail to be delivered to my computer. It worked fine up until I chose to transfer mail to the Cloud. My mail account is a .mac account.
    Still hoping someone out there can help me.
    thanks,
    anne

  • Can't remove old contextual menu item after uninstall on package...

    Had PhoneValet installed with PhoneValet Anywhere. Support ended prior to Lion. I have run the un-installer and everything seems to be gone except two entries in the contexutal menu. When I'm in Contacts and click on a phone number I get: "PhoneValet Anywhere:Dial" and  "PhoneValet Anywhere:Dial Exactly".
    If I select either choice I get prompted to porvide a location for the missing app.
    These menu choices are NOT listed in the System Prefs->Keyboar->Services list.
    I tried rebuilding the servers db and it did not remove the entries.
    I'm assuming they are residual text strings in a file but I don't know where to look to remove them.
    OSX ia 10.8.5. I have searched the support forums and tried various suggestions but no success.
    Any help?

    Please read this whole message before doing anything.
    I've tested these instructions only with the Safari web browser. If you use another browser, they may not work as described.
    This procedure is a diagnostic test. It won’t solve your problem. Don’t be disappointed when you find that nothing has changed after you complete it.
    Third-party system modifications are a common cause of usability problems. By a “system modification,” I mean software that affects the operation of other software — potentially for the worse. The following procedure will help identify which such modifications you've installed. Don’t be alarmed by the complexity of these instructions — they’re easy to carry out and won’t change anything on your Mac. 
    These steps are to be taken while booted in “normal” mode, not in safe mode. If you’re now running in safe mode, reboot as usual before continuing. 
    Below are instructions to enter some UNIX shell commands. The commands are harmless, but they must be entered exactly as given in order to work. If you have doubts about the safety of the procedure suggested here, search this site for other discussions in which it’s been followed without any report of ill effects. 
    Some of the commands will line-wrap or scroll in your browser, but each one is really just a single line, all of which must be selected. You can accomplish this easily by triple-clicking anywhere in the line. The whole line will highlight, and you can then copy it. The headings “Step 1” and so on are not part of the commands. 
    Note: If you have more than one user account, Step 2 must be taken as an administrator. Ordinarily that would be the user created automatically when you booted the system for the first time. The other steps should be taken as the user who has the problem, if different. Most personal Macs have only one user, and in that case this paragraph doesn’t apply. 
    Launch the Terminal application in any of the following ways: 
    ☞ Enter the first few letters of its name into a Spotlight search. Select it in the results (it should be at the top.) 
    ☞ In the Finder, select Go ▹ Utilities from the menu bar, or press the key combination shift-command-U. The application is in the folder that opens. 
    ☞ Open LaunchPad. Click Utilities, then Terminal in the icon grid. 
    When you launch Terminal, a text window will open with a line already in it, ending either in a dollar sign (“$”) or a percent sign (“%”). If you get the percent sign, enter “sh” and press return. You should then get a new line ending in a dollar sign. 
    Step 1 
    Triple-click anywhere in the line of text below on this page to select it:
    kextstat -kl | awk '!/com\.apple/{printf "%s %s\n", $6, $7}' | open -ef 
    Copy the selected text to the Clipboard by pressing the key combination command-C. Then click anywhere in the Terminal window and paste (command-V). A TextEdit window will open with the output of the command. If the command produced no output, the window will be empty. Post the contents of the TextEdit window (not the Terminal window), if any — the text, please, not a screenshot. You can then close the TextEdit window. The title of the window doesn't matter, and you don't need to post that. No typing is involved in this step.
    Step 2 
    Repeat with this line:
    { sudo launchctl list | sed 1d | awk '!/0x|com\.(apple|openssh|vix\.cron)|org\.(amav|apac|cups|isc|ntp|postf|x)/{print $3}'; echo; sudo defaults read com.apple.loginwindow LoginHook; echo; sudo crontab -l; } 2> /dev/null | open -ef 
    This time you'll be prompted for your login password, which you do have to type. Nothing will be displayed when you type it. Type it carefully and then press return. You may get a one-time warning to be careful. Heed that warning, but don't post it. If you see a message that your username "is not in the sudoers file," then you're not logged in as an administrator. 
    Note: If you don’t have a login password, you’ll need to set one before taking this step. If that’s not possible, skip to the next step. 
    Step 3
    { launchctl list | sed 1d | awk '!/0x|com\.apple|org\.(x|openbsd)/{print $3}'; echo; crontab -l 2> /dev/null; } | open -ef 
    Step 4
    ls -A /e*/{cr,la,mach}* {,/}Lib*/{Ad,Compon,Ex,Fram,In,Keyb,La,Mail/Bu,P*P,Priv,Qu,Scripti,Servi,Spo,Sta}* L*/Fonts .la* 2> /dev/null | open -ef  
    Important: If you formerly synchronized with a MobileMe account, your me.com email address may appear in the output of the above command. If so, anonymize it before posting. 
    Step 5
    osascript -e 'tell application "System Events" to get name of login items' | open -ef 
    Remember, steps 1-5 are all copy-and-paste — no typing, except your password. Also remember to post the output. 
    You can then quit Terminal.

  • 1,000 menu items - each selection plays unique audio clip with same video

    Hi all,
    We're familiar with playing different audio tracks based on a menu selection - but we have a large number of clips for this project... so, here's our question:
    A viewer of our 30 minute dvd throws it in the player and selects the city they live. We want to have about 1,000 city names they can choose from.
    Based on their selection, (eg: Los Angeles) the DVD will play and then at 7 different points during playback, we need the name "Los Angeles" inserted/played along the main audio track.  If someone selects Portland, then Portland would be spoken in that spot instead, etc. 
    In terms of audio files, we have the one main audio that is the same for all menu selections, except for the spots where the city goes, it is just blank.
    We have recorded 1,000 unique audio clips of just the city name we want to include . (1 to 2 seconds long)
    What's the best way to insert the audio where we need it during playback - or is it even possible? (non-blu ray).  There is audio just before and after the point where the city name has to go, so the timing during playback is critical. (no pause or hiccup when inserting.)
    We thought about outputting 1,000 unique audio tracks (each 30 minutes long) that include the full audio along with the city, but we seem limited in the number of audio tracks on the Encore timeline (at least based on our limited authoring experience - is there a way to get more clips in encore beyond the # of audio tracks it allows?)
    In reading other posts, it seems we can set markers along the main audio track, dump all our city clips on a handful of audio tracks and have them pull in where needed but it seems it will cause the dvd to pause when doing this, and make for an interrupted viewing experience. Is that true?
    Any ideas/thoughts are greatly appreciated...
    kay

    Let's see if someone can tell us how this might be done, but I say the answer is "no."
    First, DVDs are made for playing on TVs as programs, not as interactive media. You pick one audio track, and that is all you get. To do what you want (the main audio track with one of a thousand names spoken also), you need a thousand audio tracks.
    Even if it were possible, I think the number of menu choices (max 36 buttons on a single 4:3 menu) and the max 1 gig of menu on a disk, and if not those, the max 99 vts per disk (and for Encore which uses 1 vts per timeline, a  huge task to figure out how to make all those clips into chapters on timelines) etc.

  • Programmatically setting box list items as selected

    Hi,
    I am trying to set all the entries of a multi-select list box as selected in the docReady event.
    The code looks something like:
    ..this.setItemState(i, true) //for all entries of the list.
    However, as reported in some forum contributions and documented in "Adobe Reader 9.0 Compatibility Overview", there seems to be a bug in the API, and only the first item of the list is marked as selected.
    I would therefore like to ask whether someone has found a workaround for this problem and still manages to highlight all entries of a listbox (for instance by using a different event)?
    Thanks,
    Regards

    Worthy of an ER due to a common usecase? Possibly? We've a list of "down under" banks to show, approx 50, but there are only 4 primary banks in Australia so it makes sense to put them in the MRU list, with the MRU updating itself if the user makes use of other entries in the pop list. When we said to the business custodians that we could possibly do this, they were fairly keen.
    I can imagine the use case for a list of postcodes/suburbs or countries too? I'm happy to raise an ER.
    It does raise the question, what's the process of the JDev team evaluating ERs? Is it just the number of names against the ER? If customers out there don't know to raise a specific ER, how do you ever judge demand?
    Cheers,
    CM.

  • Menutab not shown properly when second menu-item is selected.

    When my menutabs are shown everything seems fine, but when you click the 2nd menu-tab the first menu-tab isn't shown properly anymore.
    If I have a look at the code-source I can see that the first gif that's needed for the tabbed-view isn't present anymore if the 2nd menu-tab is clicked.
    Could somebody explain the different skins that are used by the menuTab component so I know if maybe I've forget to define a specific in my custom skin?
    Maybe somebody already used custom skins with your custom images for the tabbed view of menuTabs?
    Regards,
    Nathalie

    >
    Yes, you are right. In this sample program,
    paintcomponent() is not really necessary, but it is in
    the real program I am doing. So I can not get rid of
    the paintComponent() method. In this paintComponent()
    method I have added (add) and painted (paint) several
    JComponent objects and this is the only one which
    fails. I can not find the reason why.
    Regards.
    the reason is that on each call to paint , you add new components to the panel.
    the scenario goes like this:
    1. frame is made visible -> paintComponent() gets called - > fillPanel() gets called ,
    so on the panel are the following 4 components:
    one JButton
    one JTextField
    one JCheckBox
    one ComboBox
    2. click on the combobox, -> the popup list of the combo is displayed -> paintComponent() is called -> fillPanel() is called
    so you have 8 components on the panel;
    The popup list remain visible, is not actualy contained in the PanelNullLayout component due to the swing mecanics
    3. you select an option in the list, the list becomes invisible, paint() gets called -> fillPanel getsCalled(),
    so, again four componets are added. you have 12 components in the panel.
    The components are painted in the order they have been added to therir container. The first combo box, that you first clicked, has selected index 1, but the last two have selected index 0. As these two are added after the first one, they are painted "above" first one, so you see the last comboBox added.
    Add this code to the paintComponet method if you did not understand
    // public void paintComponent(Graphics g) {
    // super.paintComponent(g);
    // fillPanell();
    int count = getComponentCount();
    System.out.println("Total components :" +count);
    for ( int i = 0; i < count; i++ ) {
    Component c = getComponent(i);
    if ( c instanceof javax.swing.JComboBox ) {
    System.out.println("Selected index in combo " i+" :"+( (JComboBox) c ).getSelectedIndex() );

  • MenuBar Menu Items Events?

    Hi
    I have just started playing with Flex 2 Builder and I have
    built a simple
    app to get my feet wet. I have a menubar at the top of my app
    with three
    menus each with three choices
    MENU1
    SUB1A
    SUB1B
    SUB1C
    MENU2
    SUB2A
    SUB2B
    SUB2C
    MENU3
    SUB3A
    SUB3B
    SUB3C
    My problem is that there does not seem to be a way to access
    the sub menu
    items and assign events to each. When I put an onClick event
    in the
    <mx:MenuBar> it fires regardless of which submenu item
    I choose.
    Is there a way, or what is the best way, to create individual
    events for
    each submenu? Additionally, can I add additional elements to
    my <menuitem>
    tags such as <menuitem label="SUB3A" someValue="XYZ">
    and then access
    "someValue" from whatever event I get to fire when the sub
    menu is clicked?
    Thanks
    Rich

    Hi --
    Thanks for this example. This should really help me out.
    Rich
    "ntsiii" <[email protected]> wrote in message
    news:e8bnbt$2lk$[email protected]..
    > When the event fires, the event object passed into the
    handler can be used
    > to
    > access the item that created the menu option. You can
    use information in
    > the
    > item to decide what action to take. Here is a simple
    example:
    >
    > Tracy
    >
    > <?xml version="1.0"?>
    > <!-- Simple example to demonstrate the MenuBar
    control. -->
    > <mx:Application xmlns:mx="
    http://www.adobe.com/2006/mxml"
    > creationComplete="initCollections();" >
    >
    > <mx:Script>
    > <![CDATA[
    >
    > import mx.events.MenuEvent;
    > import mx.controls.Alert;
    > import mx.collections.*;
    >
    > [Bindable]
    > public var menuBarCollection:XMLListCollection;
    >
    > private var menubarXML:XML =
    > <root>
    > <menuitem label="Menu1">
    > <menuitem label="MenuItem 1-A" data="1A"/>
    > <menuitem label="MenuItem 1-B" data="1B"/>
    > </menuitem>
    > <menuitem label="Menu2">
    > <menuitem label="MenuItem 2-A" type="check"
    > data="2A"/>
    > <menuitem type="separator" />
    > <menuitem label="MenuItem 2-B" >
    > <menuitem label="SubMenuItem 3-A" type="radio"
    > groupName="one" data="3A"/>
    > <menuitem label="SubMenuItem 3-B" type="radio"
    > groupName="one" data="3B"/>
    > </menuitem>
    > </menuitem>
    > </root>;
    >
    > // Event handler for the MenuBar control's change event.
    > private function menuHandler(event:MenuEvent):void
    > {
    > Alert.show("Label: " + event.item.@label + "Data: " +
    > event.item.@data, "Clicked menu item");
    > }
    >
    > // Event handler to initialize the MenuBar control.
    > private function initCollections():void
    > {
    > menuBarCollection = new
    > XMLListCollection(menubarXML.children());
    > }
    > ]]>
    > </mx:Script>
    >
    > <mx:Panel title="MenuBar Control Example"
    height="75%" width="75%"
    > paddingTop="10" paddingLeft="10">
    >
    > <mx:MenuBar labelField="@label"
    change="menuHandler(event);"
    > dataProvider="{menuBarCollection}" />
    >
    > </mx:Panel>
    > </mx:Application>
    >
    >

  • "Application access" menu item is grey: how to ena...

    Hi,
    Can any one Please help me know why the "Application access" is grey ?
    How to enable "Application access" menu item ?
     NOKIA 5610 Xpress music v 08.23 RM-359 variant 33.26
    Thanks,
    Sri

    Hi,
    Thank you for this link, this solution is working well with "SendKeys %ft" <=> "File > Page Setup..."
    I have also found a way to invoke menu item Tag but it just don't do anything with "APP_PRINTER_SETUP" <=> "Page Setup..." !!!
    http://forums.lavag.org/Two-small-tools-and-one-question-about-copy-and-paste-t5829.html&pid=36824&m...
    Best Regards,
    Emmanuel

Maybe you are looking for

  • No longer able to access shared files on my pc over my network from my mac

    For months I have been able to access my shared files folder located on my pc, sharing a network with my PowerBook G4 (OS X 10.3 +). Suddenly, when I try to access the pc now, I get the spinning beachball and nothing. I can see my pc in the network,

  • Pointing ItunesU.class to a cgi-bin directory.

    Our school is setting up an ITuneU page and we have successfully compiled the ITunesU.class file but for some reason our web server does not have a cgi-bin directory to put these files into. Can we put the Java files into a different directory or is

  • Avi compression

    Hello. I have a problem converting a file to AVI. It is a 4min. video (DV PAL) that needs to be compressed to an under 10mb AVI for e-mail difussion. These people all have PCs, and MPEG4 videos are not compatible. They can only play AVIs, but, of cou

  • IBAN field in vendor lsmw

    Hi, i'm having problem with populating IBAN field in vendor LSMW. I'm using standard LSMW object for vendor available with SAP. and I'm passing the IBAN field in my input structure. But the standard LSMW structure BLFBK doesn't have any provision to

  • Doubt on bapi_fixedassert_ovetake_create

    In this bapi the in the import parameter there is key and reference. What is the difference between these two?