How do I create a main menu?

I want to create a main menu so I can access three different vi's.

Hi,
Have you tried the examples installled with your labVIEW.
Look under Build User Interfaces | Menus and Toolbars.
The example Dynamic Insert Demo.vi is a good place to start.
Regards
Ray Farmer
Regards
Ray Farmer

Similar Messages

  • How do I create a context menu in the new CL_SALV

    I like a function xx in context menu. How do I create a context menu in the  CL_SALV ?
    thank you!
    CLASS lcl_event_handler DEFINITION.
      PUBLIC SECTION.
        TYPES: t_proc TYPE zmp_c00_pr_d,
               tt_proc TYPE STANDARD TABLE OF t_proc,
               tt_proces_subpr TYPE TABLE OF ltyp_proces_subpr.
        CLASS-DATA: lr_context TYPE REF TO cl_gui_alv_grid,
        r_selections TYPE REF TO cl_salv_selections,
        lr_menu type ref to cl_ctmenu.
        CLASS-METHODS: main CHANGING ct_zmp_c00_pr_d TYPE tt_proc
                                     ct_proces_subpr TYPE tt_proces_subpr
                                     cv_screen TYPE i.
      PRIVATE SECTION.
        CLASS-DATA lt_zmp_c00_pr_d TYPE TABLE OF zmp_c00_pr_d.
        CLASS-DATA ls_process TYPE zmp_c00_pr_d.
        CLASS-METHODS: handle_double_click
                   FOR EVENT double_click  OF cl_salv_events_table
                   IMPORTING row column,
                   detail
                   IMPORTING l_objkey TYPE zmp_c00_pr_d-objkey.
    ENDCLASS.                    "lcl_events DEFINITION
    * CLASS lcl_event_handler IMPLEMENTATION
    CLASS lcl_event_handler IMPLEMENTATION.
      METHOD main.
        DATA: lr_alv TYPE REF TO cl_salv_table,
              lr_events TYPE REF TO cl_salv_events_table,
              lr_columns TYPE REF TO cl_salv_columns,
              lt_col_tab TYPE salv_t_column_ref.
        FIELD-SYMBOLS <column> LIKE LINE OF lt_col_tab.
        IF r_container IS INITIAL.
          CREATE OBJECT r_container
            EXPORTING
              container_name              = 'CONTAINER'
            EXCEPTIONS
              cntl_error                  = 1
              cntl_system_error           = 2
              create_error                = 3
              lifetime_error              = 4
              lifetime_dynpro_dynpro_link = 5
              OTHERS                      = 6.
          IF sy-subrc <> 0.
            MESSAGE i004(z_pm_tool).
          ENDIF.
    *Für Dynpro 1400
          IF cv_screen = '1400'.
            TRY.
                CALL METHOD cl_salv_table=>factory
                  EXPORTING
    *    list_display   = IF_SALV_C_BOOL_SAP=>FALSE
                    r_container    = r_container
                  IMPORTING
                    r_salv_table   = r_alv
                  CHANGING
                    t_table        = ct_proces_subpr.
              CATCH cx_salv_msg .
            ENDTRY.
            TRY.
    * zeige die Daten
                r_alv->display( ).
                IF sy-subrc NE 0.
                  MESSAGE i001(z_pm_tool).
                ENDIF.
              CATCH cx_salv_msg.
            ENDTRY.
          ENDIF.
    * Für Dynpro 1100
          TRY.
              CALL METHOD cl_salv_table=>factory
                EXPORTING
    *    list_display   = IF_SALV_C_BOOL_SAP=>FALSE
                  r_container    = r_container
                IMPORTING
                  r_salv_table   = r_alv
                CHANGING
                  t_table        = ct_zmp_c00_pr_d  .
            CATCH cx_salv_msg .
          ENDTRY.
          TRY.
    * zeige die Daten
              r_alv->display( ).
              IF sy-subrc NE 0.
                MESSAGE i001(z_pm_tool).
              ENDIF.
            CATCH cx_salv_msg.
          ENDTRY.
    *Ereignisobjekt holen
          lr_events = r_alv->get_event( ).
    ** get the SELECTIONS object
    *r_selections = r_alv->get_selections( ).
    * Interne-Tabelle füllen und an die Methode handle_double_click übergeben
          LOOP AT ct_zmp_c00_pr_d INTO ls_process.
            APPEND ls_process TO lt_zmp_c00_pr_d.
          ENDLOOP.
    * Zeiger auf Container für Kontexmenu
          CREATE OBJECT lr_context
            EXPORTING
              i_parent = r_container.
          DATA: lt_events TYPE cntl_simple_events.
          CALL METHOD lr_context->set_registered_events
            EXPORTING
              events                    = lt_events
            EXCEPTIONS
              cntl_error                = 1
              cntl_system_error         = 2
              illegal_event_combination = 3
              OTHERS                    = 4.
          IF sy-subrc <> 0.
    * MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    *            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
          ENDIF.
    * Interne-Tabelle füllen und an die Methode handle_double_click übergeben
          LOOP AT ct_zmp_c00_pr_d INTO ls_process.
            APPEND ls_process TO lt_zmp_c00_pr_d.
          ENDLOOP.
    * Event: Add Function
          SET HANDLER: on_added_function FOR lr_events.
    * Event: Kontexmenu
    *      SET HANDLER: on_context_menu_request FOR lr_context.
    * Event: Doppelklick
          SET HANDLER handle_double_click FOR lr_events.
    * get the SELECTIONS object
          r_selections = r_alv->get_selections( ).
    * Einzelne Spalte holen
          lr_columns = r_alv->get_columns( ).
    * Doppelklick funktioniert nur auf das Feld OBJKEY
          LOOP AT lt_col_tab ASSIGNING <column>.
            <column>-r_column->set_output_length( 20 ).
            IF <column>-columnname = 'OBJKEY'.
              <column>-r_column->set_visible( 'X' ).
            ELSE.
              <column>-r_column->set_visible( ' ' ).
            ENDIF.
          ENDLOOP.
          IF lt_col_tab IS NOT INITIAL AND sy-subrc <> 0.
            MESSAGE i002(z_pm_tool).
          ENDIF.
        ENDIF.
      ENDMETHOD.                    "main
      METHOD handle_double_click.
        FIELD-SYMBOLS <fs_zmp_c00_pr_d> TYPE zmp_c00_pr_d.
        READ TABLE lt_zmp_c00_pr_d INDEX row ASSIGNING <fs_zmp_c00_pr_d>. " vor dem Changing Parameter der Klasse
    *    READ TABLE ct_zmp_c00_pr_d INDEX row ASSIGNING <fs_zmp_c00_pr_d>.
        IF sy-subrc <> 0.
          RETURN.
        ENDIF.
        IF column = 'OBJKEY'.
          lcl_event_handler=>detail( <fs_zmp_c00_pr_d>-zz_slotid_a ).
        ENDIF.
      ENDMETHOD.                    "handle_double_click
      METHOD detail.
        DATA: lr_alv TYPE REF TO cl_salv_table,
              lt_alv_tab TYPE TABLE OF zmp_p00_sp_d.
    * Subprozess holen
        SELECT * FROM zmp_p00_sp_d INTO TABLE lt_alv_tab
          WHERE objkey = l_objkey.
        IF sy-subrc <> 0.
          MESSAGE i003(z_pm_tool).
        ENDIF.
        TRY.
    * Neu erzeugte Instanz für ALV-Tabellenobjekt holen
            cl_salv_table=>factory( IMPORTING r_salv_table = lr_alv
                                     CHANGING t_table = lt_alv_tab ).
    * Ausgabe Fenster für SubScreens
            lr_alv->set_screen_popup( start_column = 1
                                   end_column = 130
                                   start_line = 1
                                   end_line = 10 ).
    * Anzeige der Daten
            lr_alv->display( ).
            IF sy-subrc <> 0.
              MESSAGE i001(z_pm_tool).
            ENDIF.
          CATCH cx_salv_msg.
        ENDTRY.
      ENDMETHOD.                    "detail
    ENDCLASS."lcl_event_handler IMPLEMENTATION
    Edited by: polaris1 on Dec 15, 2010 12:18 PM

    Can't read that jumble, but suggest you look at the excellent SALV tutorials by Rich Heilman by searching for SALV tutorial on SCN.  You'll find working code and how-to for adding your own functions to SALV.

  • How do I create a main instance?

    Hello,
    when I want to create an application component in the process scenario edtior I can choose a "main instance". However how do I create a main instance? I suppose that this has to be done in SLD but I found nothing there.
    When can a main instance and a product be different? I do not yet fully understand the concept behind it as both consist of several product component versions that can be installed on a technical system, right?
    Any explanation is highly appreciated. Thank you.

    Hi!
    I hope this makes things clearer:
    "A main instance is a group of technically interdependent software component versions, which are all installed and run on one server. A main instance represents the smallest non-divisible unit within a system landscape. An application component in a Process Integration scenario represents a system at configuration time and at runtime. Therefore, use main instances by default. This is because main instances represent the software component versions installed on a system. Only if a product comprises exactly one main instance may you also use a product version."
    Regards,
    Volker

  • My main menu does not appear when I turn on my apple tv first generation.  How do I restore my main menu?

    My main menu does not appear when I turn on my apple TV first generation, how do I restore my main menu screen?

    When I turn on, it asks for language choice, then it asks for 1080i, then it asks for network choices.  I choose my network, then it asks for my network password.  I enter the password, then it say it does not connect to network, and if I hit menu on remote, it goes back to network selection.  I can not get to main menu to see my setting for the network, because there is no menu. 

  • Using fluid grid layout in Dreamweaver CC - how do I create a dropdown menu within my main navigation?

    I am new to using the responsive fluid grid layouts in Dreamweaver CC - and I am unable to find any information on creating a dropdown menu within my main navigation.
    Any ideas?

    You'll need to find a menu system that is responsive and mobile friendly for touch screen devices.
    If you have a budget to work with, Project Seven's Pop-Menu Magic3 is a commercial extension for DW that works great out of the box.
    http://projectseven.com/products/menusystems/pmm3/index.htm
    If you don't have a budget, you'll need to create a desktop menu and add a jQuery plugin for mobile devices.
    Basic CSS Drop Menu
    http://jsfiddle.net/mD4zW/28/
    jQuery MeanMenu for mobile/tablet devices
    MeanThemes | MeanMenu
    This is a working example inside a FluidGrid Layout (resize viewport)
    Alt-Web :: Fluid Grid Test
    Nancy O.

  • How do you return to main menu at end of movie in iDVD 11?

    I have created a movie in iMovie '11 with chapter markers, and imported it into iDVD 7.1.2 (1158) on an iMac
    running OS X Lion 10.7.2
    The movie imports all chapters with corresponding labels perfectly. I added a chapter at the very beginning of the movie in iMovie, and it shows up fine in iDVD.
    I removed AutoPlay since I want the DVD to play the Main Menu upon inserting it into a DVD player. What I can't figure out is how to make the DVD return to the Main Menu once it finishes playing to the end of the movie. It will automatically go to the Chapters selection menu instead. Is it possible to have it return to the Main Menu?
    In God's Harmony

    It is very possible that your iDVD Project has no Chapter Markers.
    It's possible.  My "project" which included pictures as well as movies was all done in iPhoto as a slide show.  From there I exported the slideshow into iDVD.
    I sort of messed up "I think."  I believe I did the original burn incorrectly-tester #1.  I re-burned another one this afternoon which turned out very well-tester #2.  Think I will stick with the options I used for tester #2 since it was the easiest.
    For "chapters" I will need to do some extensive "how to" reading especially when it comes to iMove.  I used iPhoto since it accepts both photos & movies.  I "think" iMovie only deals with movies?
    Thank you very much for your last post.  It was very helpful. 
    Now onto the iPhoto fourms to learn how to "add" photos & movies to where I want them, not where the computer wants to put them.

  • How can you create a spry menu bar with no background colour?

    How can you create the first level of a spry menu bar to have no colour? I have a coloured background right now and the colour matches when you load the site in Internet explorer but does not match in Firefox. Any suggestions are welcomed on how to fix this.
    Thanks!
    HK

    Here is the site:
    http://partnersnaturally.ca/
    I am learning with code, (obviously) so any feedback would be nice. I use dreamweaver CS4, but when I originally designed the site it was in a much older version of dreamweaver. I wonder if that could also be a cause. (besides human error)
    Thanks again,
    HK

  • How do I create a context menu in the new ALV object model (cl_salv_table)?

    Hi,
    Does anyone know how to create a context menu (right click on line or field) in the new ALV object model (class CL_SALV_TABLE)?
    Thanks in advance
    Keld Gregersen
    PS: In the past we could use event CONTEXT_MENU_REQUEST in class CL_GUI_ALV_GRID, so it must be possible

    I don't think there's "any such animal" in the new class. I'm not 100% certain however but the new class is only useful for fairly simple display only type grids.
    There's no edit capability either.
    I'd stick with cl_gui_alv_grid until there's some decent extra functionality in the cl_salv_table class.
    It's fine for quick "bog standard" displays as it doesn't need a field catalog or any screens to be created by the user or developer  - but you pay a price for that in limited fnctionality.
    Cheers
    jimbo

  • How do I make a main menu for a game?

    Hi,
    I need to make a main menu for this tower defense game that I am making.  I have 2 parts to the menu that I need to put together.  I have it as follows:
    I have a start screen where the player presses the start button.  I now need it to take the user to the main menu itself.  I have both the start menu and main menu in the same document but on different layers.  I have a button labeled as start which I have set up to where when it is clicked, it changes colors but I also need it to hide/show the menu layer.  I just need the that start button to take users to the menu layer where I have 3 more buttons which are resume, new, and options.  I will need those buttons to go to their different layers also.  After users hit the resume or new buttons, I need the game itself to start which I will start making after I figure out the other issues. 
    I am new to Flash and I really want to learn how to make tower defense games.  For now, I am using http://www.ehow.com/how_7788131_make-tower-defense-game-flash.html as a guide to make the game stuff but it doesn't say anything about a main menu.  I am using a trial version of Flash Pro CS6 and it is due to expire in 28 days.
    Any and all help will be great! Thanks, xp3tp85

    I used this and it worked:
    import flash.events.MouseEvent;
    start_button.addEventListener(MouseEvent.CLICK,startF);
    function startF (e:MouseEvent):void{
    gotoAndStop("main_menu");
    On the next layer I used this and it worked too:
    back_button.addEventListener(MouseEvent.CLICK, buttonClick);
    function buttonClick(event:MouseEvent):void{
           gotoAndStop(1);
    Apparently it wont let me use the same code twice on one timeline.  Is there any way around this?  I need a few more buttons on the main menu for the game.

  • How can i create a panel menu?

    As i know,configrator is only can create an "About" menu.
    How can i create more menu?
    Thanks!

    Those panels are created with Extension Builder programically. You need to program in ActionScript to create the menus.

  • How to start AD Administration Main Menu

    Hi,
    I have installed R12 on a Win XP platform. How can I start the AD Administration Main Menu?
    Thanks,

    Hi,
    Make sure you source the application env file (%APPL_TOP%\envshell<CONTEXT_NAME>) first before you type adadmin.
    Regards,
    Hussein

  • How to return to Application Main menu

    Hello,
    I am coding custom SSHR function and many times I would like to cancel the whole action and return to main menu.
    How do I do it with JSPForward ? What to put in URL parameter of the method ?
    Does it have to do with {@@RETURN_TO_MENU}
    Thank You so much in advance
    Michal

    You could call OA.jsp?OAFunc=<HomePage Function Name>
    something like
    pageContext.setForwardURL("OA.jsp?OAFunc=OAHOMEPAGE",
    null,
    OAWebBeanConstants.KEEP_MENU_CONTEXT,
    null,
    null,
    true, // Retain AM
    OAWebBeanConstants.ADD_BREAD_CRUMB_YES,
    OAWebBeanConstants.IGNORE_MESSAGES);

  • How to auto return to main menu after track plays

    On my main menu I have two buttons. Each accesses a different video asset. But when the user selects one of the videos to play at the end of play I need the user to be returned to the main menu. Currently, at the end of video play the screen just sits on the last frame, which is black, and does not return to the main menu. In the simulator, if I hit the menu button it goes back to the main menu but I would like it to return to the main menu automatically after the video that has been selected is finished playing. I have searched through the DVD SP manual and so far can't find out how to do this. Do I have to write a script for this simple action? Is there a setting that simply makes a target track jump back to the main menu after it plays? Thanks as ever for your excellent advice.

    You need to set the end jump for the track... click on the track in the outline or graphical view, look in the property inspector. Near the top there is a drop down for the end jump - use that to set where to go back to... in your case the menu.

  • How can I create own side menu in DW

    I have created a sample below of what I am trying to achieve...
    Problems I have:
    1) H2 text in menu wraps around when there is no need.
    2) need to have blue menus change on hover.
    3) need to have content in document area load on clicking the menu section/div - not the link within it
    4) document area should fill space remaining on right.
    Now I have tried the section onclick event but it fails miserably.
    In order to resolve the above issues I have stripped the below code back to basics with in-document css.
    I'd like to understand though why the :hover does not work on either the h2 OR the section/div.
    I've looked at the spry accordion and several online accordians but they are not what I want.
    Thank you in advance for any feedback.
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>Untitled Document</title>
    <style type="text/css">
    #pageWrapper {
    background-color: #F00;
    height: 100%;
    width: 100%;
    #wrapper960 {
    width: 960px;
    background-color: #0F0;
    margin-right: auto;
    margin-left: auto;
    #header {
    background-color: #C9F;
    #footer {
    background-color: #C0F;
    clear:left;
    /*Define Accordion box*/
    .accordian {
    background-color: #CCC;
    overflow: hidden;
    width:930px; overflow:hidden;
    /*.horizontal section{ width:5%; height:400px;}*/
    .accordian section{ width:5%; height:400px;}
    .accordion section:hover {background-color:#444;}
    .Menu {
    width: 35px;
    background-color: #06F;
    float: left;
    margin-right: 5px;
    height:500px;
    .Menu: hover {
    background-color: #FFF;
    .Menu h2{
    -webkit-transform: rotate(90deg);
    -moz-transform: rotate(90deg);
    -o-transform: rotate(90deg);
    -ms-transform: rotate(90deg);
    transform: rotate(90deg);
    #documentArea {
    background-color: #FFF;
    float: left;
    overflow: hidden;
    </style>
    </head>
    <body>
    <div id="pageWrapper">
    <div id="wrapper960">Content for  id "pageWrapper" Goes Here
            <div id="header">This area is reserved for logo</div>
        <div class="accordian horizontal">
        <section class="Menu" onclick="">
            <h2><a href="#about">About Us</a></h2>
        </section>
        <section class="Menu">
            <h2><a href="#about2">Our Services</a></h2>
        </section>
        <section class="Menu">
            <h2><a href="#about3">Portfolio and Gallery</a></h2>
        </section>
              <div id="documentArea">
            <h2>Document Area</h2>
        </div>
      </div>
         <div id="footer">This area is reserved for footer</div>
      </div>
    </div>
    </body>
    </html>

    terryfoster wrote:
    Thank you Osgood but one issue still remains which is the main one.
    I want the menu to activate on clicking the bar - not the hyperlink in it.
    It's very good and I dont want to appear ungrateful, but that was the point of this exercise.
    Terry
    You just need to place the jQuery event activator on the h2 tag to achieve that (see code below). 'rel' just allows jQuery to identify which container to activate when an event trigger is clicked.
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>Untitled Document</title>
    <style type="text/css">
    .html, body {
        height: 100%;
    #pageWrapper {
    background-color: #F00;
    height: 100%;
    width: 100%;
    #wrapper960 {
    width: 960px;
    background-color: #0F0;
    margin-right: auto;
    margin-left: auto;
    #header {
    background-color: #C9F;
    #footer {
    background-color: #C0F;
    clear:left;
    /*Define Accordion box*/
    .accordian {
    background-color: #CCC;
    overflow: hidden;
    width:930px;
    /*.horizontal section{ width:5%; height:400px;}*/
    .accordian section{
    height:400px;
    .accordion section:hover {background-color:#444;}
    .Menu {
    width: 40px;
    background-color: #06F;
    float: left;
    margin-right: 5px;
    .Menu:hover {
    background-color: #FFF;
    .Menu h2{
    -webkit-transform: rotate(90deg);
    -moz-transform: rotate(90deg);
    -o-transform: rotate(90deg);
    -ms-transform: rotate(90deg);
    transform: rotate(90deg);
    white-space: nowrap;
    .Menu h2 a{
        text-decoration: none;
    display: block;
    height: 100%;
    .content {
    background-color: #FFF;
    float: left;
    width: 795px;
    height: 400px;
    display: none;
    .active {
    display: block;
    </style>
    <script src="http://code.jquery.com/jquery-1.10.2.min.js"></script>
    <script>
    $(document).ready(function() {
    $('.Menu').css('cursor', 'pointer');
    $('.Menu').click(function() {
    var selectPanel = $(this).attr('rel');
    $('.active').slideUp(300, function() {
    $(this).removeClass('active');
    $('#'+selectPanel).slideDown(300, function() {
    $(this).addClass('active');
    </script>
    </head>
    <body>
    <div id="pageWrapper">
    <div id="wrapper960">Content for  id "pageWrapper" Goes Here
    <div id="header">This area is reserved for logo</div>
    <div class="accordian horizontal">
    <section class="Menu" rel="documentArea_1">
    <h2><a href="#" >About Us</a></h2>
    </section>
    <section  class="Menu" rel="documentArea_2">
    <h2><a href="#">Our Services</a></h2>
    </section>
    <section class="Menu" rel="documentArea_3">
    <h2><a href="#">Portfolio and Gallery</a></h2>
    </section>
    <div id="documentArea_1" class="content active">
    <h2>About Us</h2>
    </div>
    <div id="documentArea_2" class="content">
    <h2>Our Services</h2>
    </div>
    <div id="documentArea_3" class="content">
    <h2>Portfolio and Gallery</h2>
    </div>
      </div>
    <div id="footer">This area is reserved for footer</div>
      </div>
    </div>
    </body>
    </html>

  • How to get to the main menu from home share

    My apple tv is frozen in the home share menu.   I can't go back to the main menu

    My first option would be to reboot the apple tv. if this does not work then you can do a restore.
    If you have apple tv 2nd or 3rd gen follow these instructions:
    http://support.apple.com/kb/HT3180
    If you have the 1st gen follow these (you probably have 2nd or 3rd. not sure home sharing is part of 1st. only computer linking)
    http://support.apple.com/kb/HT3199
    I hope this helps.

Maybe you are looking for

  • MATSHITA DVD-R UJ-816 won't play *some* DVDs now (mysteriously!).

    Quite mysteriously, my Mac is refusing to play some of my DVDs. The DVDs aren't scratched or unplayable. I tested them this weekend on someone else's multi-regional player. These DVDs most certainly did play before on this laptop (a late-2003 Titaniu

  • Windows XP Crash

    Hi I've had my MacBook for almost 3 yrs now. I had Windows wiht Boot Camp for only about a year. However, in the past 2 days, everytime i switch to Windows, it suddenly crashes. The black screen with Windows logo comes up with the green sliding thing

  • Has anyone managed to connect a canon 5d3 to FMLE for live streaming?

    Been trying to get this sorted for a project but its not proving simple at the moment. Any help at all will be appreciated

  • Inserting date in iMovie?

    With Apple iPhone videos is there a way to show the date on screen from the meta data in iMovie on an iPad? Thanks

  • HELP!  how do you view your WEP hex key value in OSX?

    Hi, I need to add a network device to an existing Airport network. The network works perfect, however the new device needs to know the cipher WEP HEX KEY in use for the router (base station). I thought that airport generates a hex value for my user d