Customize Context Menu in Plot Legend

I am using Labview 2014.  When I click (right or left) on the PLOT Style regions of a XY or waveform graph a menu a menu comes up.  I would like to modify what is in the menu, but  I cannot figure out how.  There are several posts about how to disable but that is NOT what I would like to do.
Does anyone have any ideas?
Solved!
Go to Solution.

Hi Mark,
You can change the plot line type, color and other properties using Property Nodes. To use Property Nodes, you first create a reference to the Front Panel object by right clicking the plot then selecting Create -> Reference. You can then wire a Property Node to the Plot Reference on the Block Diagram and modify the selected properties. Please see the below links for more information on Properties Nodes.
How Can I Programmatically Change the Plot Colors of Multiple Lines on a Single Graph or Chart?
http://digital.ni.com/public.nsf/allkb/C6BFD9BD5F01108C86256F8100638B29
Customizing Graphs and Charts
http://zone.ni.com/reference/en-XX/help/371361J-01/lvconcepts/customizing_graphs_and_charts/
Control References: Overview
http://www.ni.com/white-paper/3159/en/
Thanks,
Frank
Application Engineer
National Instruments
Attachments:
ColorPropertyNode.png ‏14 KB

Similar Messages

  • Customize Context Menu item in BI7

    Hi All,
    The CONTEXT_MENU item in BI7 only allows us to select/unselect items we want to display on the context menu. But, I want to add a customized item in there and it was possible BW3.5. Is this still possible in BI7?
    Thanks.

    I'm not sure the exact SP/Patch level (maybe it's not until EP1?) that you have to be on, but SAP finally supplied a way to do this.  If you are on an older SP or patch level, you can do something similar that I am having to do until you get to the right patch level/enhancement pack.  Declare this function in a script web item in your template:
    function sapbi_buildContextMenu(urpopumenuname, context, index) {
       var lix= 0;
       var oPop = sapbi_cmCreateMenu(index);
    // **** Begin of custom code ****
       var command = new sapbi_Command("SAVE_PERSONALIZATION"); // Bogus filler command entry, never gets fired
       var entry = sapbi_cmCreateEntry("Define this Report", index, false,false,null,command);
       entry.POPUPMENUITEMSELECT='me.show_entry();return false';
       entry.IsLink=0;
       mf_PopupMenu_addItem(oPop, entry);
    // **** End of custom code ****
       lix = lix + sapbi_cmAddBack(oPop, context, index);
       lix = lix + sapbi_cmAddRri(oPop, context, index);
       lix = lix + sapbi_cmAddFilter(oPop, context, index);
       lix = lix + sapbi_cmAddChangeDrillDown(oPop, context, index);
       lix = lix + sapbi_cmAddHierarchy(oPop, context, index);
       sapbi_cmAddExportPDF(oPop, context, index, lix);
       sapbi_cmAddBroadcasting(oPop, context, index);
       sapbi_cmAddSave(oPop, context, index);
       sapbi_cmAddPersonalize(oPop, context, index);
       sapbi_cmAddProperties(oPop, context, index);
       sapbi_cmAddCalculations(oPop, context, index);
       sapbi_cmAddDocuments(oPop, context, index);
       sapbi_cmAddExceptions(oPop, context, index);
       sapbi_cmAddSorting(oPop, context, index);
       mf_PopupMenu_apply(oPop);
       return oPop;
    Below is an explanation of what the code does:
    Create a new sapbi_Command object for a new entry, use SAVE_PERSONALIZATION even though we are going to override it with our own JS onclick.
    var command = new sapbi_Command("SAVE_PERSONALIZATION");
    Create the actual entry (note the last parameter being passed is the filler command we created above)
    var entry = sapbi_cmCreateEntry("Define this Report", index, false,false,null,command);
    Set your onclick event javascript.  Make sure that you prepend "me." to your function name.  (in this case, it's show_entry();  The me. is necessary I think because the context menu is technically an IFRAME so me. refers back to the parent page where your javascript code will be sitting.
    entry.POPUPMENUITEMSELECT='me.show_entry();return false';
    Define entry as not being a link.
    entry.IsLink=0;
    Add the new entry to the context menu
    mf_PopupMenu_addItem(oPop, entry);

  • Plot legend customization bug in 8.5?

    If someone can confirm this for me, I would appreciate it.
    I have 2 issues which I think may be based on the same problem:
    1.  Take the attached control and insert into a LV 7.1 - 8.2 VI.  The plot legend should have the system box instead of the 3D decoration.  Insert the same control into 8.5.  It changes back to the default 3D decoration.  This doesn't appear to happen all the time, as this control properly inserts itself into 8.5.
    2.  The customization of the plot legend is not working properly.  Take any of the attached controls, or use a standard Waveform Graph.  Customize it.  Go into customize mode.  8.5 has taken away the old method where you can simply right click on a decoration of a sub-control and replace it.  But, you can select the sub-control and go to Edit->Customize Control, then replace the decoration.  You can see this works with the Cursor list and axes list.  However, when you select the plot legend, and go to Edit->Customize, LV doesn't do anything.  No error beep, no nothing.  So the plot legend cannot be customized.  I see this behavior for charts, grpahs, and XY plots.
    Message Edited by Matthew Kelton on 11-05-2007 02:47 PM
    Attachments:
    Waveform Graph lost plot legend customization.ctl ‏26 KB
    Waveform Graph kept plot legend customization.ctl ‏12 KB

    OK, I will post more pictures.
    So, I try to customize the standard waveform graph in LV, but right-clicking on the plot and select Advanced-> Customize or Edit->Customize Control form the menu.  Go into Customize mode.
    In 8.2 and before, you used to be able to just right-click on the decoration for the plot legend and replace it with something from the clipboard, etc.
    In 8.5, this functionality has been removed.
    However, you can select the item and go to Edit->Customize Control (I show it here for the cursor legend, as it works).  You get a new control window.
    (Continued in next post)
    Message Edited by Matthew Kelton on 11-06-2007 03:23 PM
    Attachments:
    cursors customize.png ‏15 KB
    customize dec 8.2.png ‏12 KB
    customize dec 8.5.png ‏11 KB

  • How to edit plot legend menu?

    Hello
    Is it possible to customize plot legend menu? Or to export some icons from it?

    Err-
    There are ways to modify the shortcut menu for most front panel objects, but not with the plot legend. As an alternative, you can disable the plot legend and create your own custom controls for the user to manipulate (and just use property nodes). This is more tedious, but may be the only way to get it done.
    Xaq

  • Customize plot legend

    Hello all, I am trying to customize a plot legend. Changing the color to transparent gets me only to the point where the pseudo-3d effect of the surrounding box is gone. How do I get rid of the hole around the plot sample in the legend? I want it to look like a simple plot with, at most, a box around the entire legend. Thank you very much.

    Hello asche,
    I justed tested it:
    I can make everything transparent, so that you only see the text and the line of the legend...
    I only used the color tool to do so.
    Oh wait: to remove the box around the line style of the legend you have to make the border of the
    graph display transparent. It seems to use the same setting: graph fore- and background is the same
    like legend plot style... I made a picture to show this behaviour.
    So it seems that NI has to change a setting in LabView for the next version...
    Best regards,
    GerdW
    Best regards,
    GerdW
    CLAD, using 2009SP1 + LV2011SP1 + LV2014SP1 on WinXP+Win7+cRIO
    Kudos are welcome
    Attachments:
    Graph_legend_transparent.png ‏8 KB

  • How to remove or hide toolbar context menu in visual studio IDE

    Hi All,
    Currently we are extending Visual studio and it's functionality.
    As we know, we can have different categories of tool bars like standard, build, debug etc shown in pic - 
    or we can access the categories via -  View Main Menu -> Toolbars 
    Basically My requirement is that, I don't want to show these options (Build, Debug, Debug Location, Layout, customize , Text Editor, Standard etc) shown in context menu or shown in submenu.  
    How can I achieve it ? Please advice.

    AFAIK, you can only customize it manually, but can't hide the builtin menus:
    http://msdn.microsoft.com/en-us/library/vstudio/wdee4yb6(v=vs.100).aspx
    or maybe you can try vsct:
    https://social.msdn.microsoft.com/Forums/vstudio/en-US/f3acc18c-b176-4f06-a8d1-cccff3d4bf7f/how-to-disable-and-enable-menu-commands-in-vspackage?forum=vsx

  • Why did Word on Office 2013 REMOVE Auto Correct from Right-Click Context Menu??

    Hi Microsoft -
    I normally don't rant, but this is a killer feature removal, and the reason given is for aesthetics - 'Removal of clutter" is how it's worded here:
    [Changes in Office 2013]
    http://technet.microsoft.com/en-us/library/cc178954(en-us).aspx
    I copy n pasted below the operative row from the linked TechNet page as to the reason WHY this critical (and very popular feature) has been removed from Microsoft Office 2013 Word's context-menu: LESS CLUTTER
    And your answer is ambiguous and doesn't solve the issue that you created to make things prettier: "Click the AutoCorrect Options button" Then what?  ADD EACH WORD MANUALLY? 
    Please advise ALL OF US that want this feature back how to have our commonly misspelled words fixed and added automatically to the dictionary.  If I am missing this in a major way somehow, I apologize completely and will issue a public apology via any
    social media platform of your choice.  If it really is gone, and I have to manually add the entries into a buried table 6-clicks deep, then I will issue a public excoriation of this feature on as many social platforms of my choice.
    Sincerely,
    Maximus Mednick
    COPY N PASTE AS FOLLOWS:
    =-=-=-=-=-=-=-=
    Contents of spelling error context menu
                    Word and WordMail within Outlook
    Modifying the feature
    Auto-Correct and certain formatting tools are no longer available from the spelling error context menu.
    To make Word 2013 cleaner and less cluttered, we removed AutoCorrect and certain formatting tools from the spelling error context menu. The features are still available in Word 2013 through other entry points within the Word user interface.
    Less clutter in the spelling error context menu. This enables users to find popular commands more quickly. In addition, the spelling error context menu now fits better on the screen.
    To change AutoCorrect options, do the following:
    Choose File -> Options -> Proofing
    Choose the AutoCorrect Options button.
    =-=-=-=-=-=-=-=
    Thanks, MAXIMUS

    Microsoft used to be about allowing users to customize the OS and apps however they want. This was one reason I have always preferred Windows over Mac. There are 5 ways to do any one thing, and you can customize it to do it however you want. It's all about
    user choice. Please don't go the way of Apple and force users into the way that you *think* we should do things. 
    <rant>
    While I whole heartedly agree with this suggestion, if you look through this blog about the design decisions that went into the 2007 ribbon:
    Jensen Harris: An Office User Interface Blog -
    http://blogs.msdn.com/b/jensenh/archive/2008/03/12/table-of-contents.aspx
    You'll see that one of the considerations of the ribbon was to ELIMINATE/REDUCE customization because it was costing large corporate customers too much time/money to support their users with 2003 customized menu/toolbars.  In other words, the ribbon
    was intentionally built as a fixed design so that average user cannot change it.  The QAT was an afterthought, a sop, to allow users minimal customization. 
    They found that the 2007 lock down was too much of a "good thing", too much like the good old "IBM 360 green screen" (even if most people don't recognize the reference), so in 2010 they
    re-introduced limited Ribbon customization within the UI.
    But you still can't customize the default tabs. And to add injury to insult, if you do want to customize a default tab and go to the effort of trying to recreate the default tabs and groups
    within the Ribbon UI, you'll eventually find that YOU CAN'T'! There is no way inside the UI to force the buttons to layout the same way! AHHH!
    Even in 2007,
    EXPERTS have had the option of creating custom Ribbons/tabs by editing XML, but that is pretty serious programming, out of scope for 99% of users.
    The "solution" to the problem was too simple. Just add an option to allow users to turn on the old menu UI.  Even if it had been buried as a registry hack, the people who really wanted it would have learned about it. Then MS could have collected statistics
    on usage that would have "proved" that the menu was preferred over the ribbon.  The thing is, if the ribbon was defaulted "out of the box", over time people would eventually all switch over to it. Simply because it was the default, because MS only produced
    new training material referring for the ribbon
    Now, I'll concede that the ribbon really may be more "intuitive", but only for new users. For long time users the change is very jarring.
    They made the same choice with Windows 8.  In the last Windows 8 consumer Preview there was a registry hack to bypass the Start Screen.  I learned about it in July or August. But MS was so sure the Start screen/metro was the only way to go they
    rushed out a Windows Update to eliminate that registry entry. And it was eliminated from the RTM version. 
    WHY?
    Why did they remove the user's right to chose the UI that worked best for them? I don't know.
    </end rant>  sorry, this is a hot button for me.

  • How to remove options in context menu of the task in UWL.

    Hi,
    How to remove options or customize the context menu of the task in UWL.
    I have 4 options(Edit,Remove,Forward,Resubmit) is appearing in the context menu.
    My requirement is to delete Forward option form the menu list and only 3 options
    should appear in the list.
    Can anybody suggest where to change?
    Thanks,
    Vikas

    Hi vikas,
    Go to System Admin ->System Config->UWL Admin.
    select your system alias.
    Click on Click to Click to Administrate Item Types and View Definitions.
    Select your UWL configuration.
    Download DTD as well as XML file through Download Configuration.
    Then you can edit the xml file using XML spy editor or anyone.
    to upload go back to the same page and select the tab...Upload new configuration.
    Do not forget to clear the cache after upload.
    Hope this helps you.
    Regards
    Atul Shrivastava

  • Is it possible to add a button to the right-click context menu for a user in Outlook 2010 using VBA?

    I've tried many things and read up quite a bit but I cannot figure this out.
    I cannot create an add-in so I have to use VBA.
    I want to add a a button to the right-click context menu when I right-click on a user. Is this possible?

    Hello,
    Yes, it is possible to customize the context menu in Outlook. See
    Customizing Context Menus in Office 2010 for more information.
    But VBA doesn't allow to customize the Fluent UI in Outlook, you need to develop an add-in instead.

  • In v4 why did you flip the context menu for open in new tab/window. Sucks when you are used to the other way

    I downgraded to 3.x because when I browse I have many new open windows (I have been using FF for so long I automatically select the second option). Seems stupid to change the order of the context menu when it has been the other way forever.
    Please change it back or at least have the order as an option.

    So the answer from TonyE was "That was an intentional change to promote the use of tabbed browsing." (See http://support.mozilla.com/en-US/questions/791244)
    And there is an option to use a menu editor to put them back detailed in that thread as well. The problem, of course, is that you need to perform a complex customization to every computer on which you use Firefox in order to fix a problem that should never have been created, never made it through beta, and that the developers won't fix because they believe that they are right.
    Frankly, eventually you get used to it. But in the mean time, they have annoyed, and in many cases pissed-off a large segment of their users for no reason at all.

  • Context menu enhancement in WAD 7.0

    Hi All,
    I would like to enhance the standard context menu in my webtemplate
    Scenerio
    If I right click broadcast and export in context menu  I get the following
    - Broadcast to email
    - Broadcast to Portal
    - Broadcast to PDF
    - Export to Excel
    - Export to CSV
    - Bookmark
    Now I would like to remove Broadcast to Portal from the context menu.
    steps I have taken
    I added context menu web item and uncheck Broadcast in the properties and the following are left
    - Export to Excel
    - Export to CSV
    - Bookmark
    but I would like to see Broadcast to email and Broadcast to PDF as well
    Can someone let me know how I Can enhance the context menu to exclude Broadcast to Portal
    thanks

    Vaidya,
    It is extremely tough working with WAD7.0 on customization  - I found it a minefield of XHTML and other components - you can look at adding a script itam and change the javascript - I do remember that in 3.x you could customize the context menu using plain javascript - and in all likelihood hoping that this has not changed - add a script item to change the context menu at runtime instead - might work....
    Arun

  • Problems with new start button right-click context menu

    I have been unable to come up with a rhyme or reason to this problem.
    For some reason the Windows 8.1 start button will no longer respond to a right-click.  The context menu will not come up.  You can see that the active window is no longer active because the border color changes.  The start button works as
    expected when left-clicking it.
    I first noticed this on a brand new Windows 8 machine that I upgraded to Windows 8.1.  The problem occurred while I was messing with trying to customize the default user profile.  The next time I logged in with a new user account the start button
    was broke.  The system I was using was stripped down.  It had NO additional software on it except the drivers and necessary associated applications, and all available Windows updates were installed.  I chaulked it up to something I messed up.
    Next, I reformatted 20 lab computers with Windows 8.1 Pro and joined them to a Server 2003 domain.  Users have roaming profiles and folder redirection policies.  The folder redirection policies redirect AppData, Documents, and Desktop to a folder
    on the server and the contents of these folders are shared between Windows XP and Windows 8.1.  The roaming profiles are unique and new.  Thus far all users have only logged on to Windows XP so they have the version 1 profile and when they logon
    to the Windows 8.1 box a new .v2 profile folder is created.
    Today, we logged about 12 users into these individual machines for the first time and about 3 or 4 of them could not right-click their start button.  Once the problem occurs, it never goes away regardless of what machine they log into.  The only
    way to solve the problem is to default the profile off the computer and delete the roaming profile folder off the server.  The problem has reoccurred after this but I'm not sure what triggers it.
    In addition, I have tried renaming the user's redirected application data folder and letting Windows 8.1 create a new one in case there was a conflict with a Windows XP setting.  This did not resolve the issue.

    In my environment we had a network "Default User.V2" profile that we used with Win7 clients.  Now, with Win8 and Win8.1 we've configured the clients to use V3 and V4 profiles (http://support.microsoft.com/kb/2887239/en-us). 
    That link is for the Win8 hotfix, which changes the roaming profile of users to .V3, but there's also one for 8.1 and it changes the profile folder to .V4.
    Anyway, we have since deleted the Default User.V2 from our network.  In testing the creation of .V4 roaming profiles with Win8.1, I've figured out a little more about the WinX folder.  If I have a roaming profile and log into a Win8.1 computer
    for the first time, the WinX folder is created as part of my profile during the "Hi, we're setting things up, many bright colors" spiel before you get to the Metro screen.  However, when I log out, because the WinX folder is in the Local AppData, it doesn't
    get uploaded to my roaming profile location.  If I then log back into the same computer, everything is fine because that computer still has a local copy of my profile with WinX in the Local AppData.  However, if I log into any other computer, the
    WinX folder doesn't get created and I can no longer right click on the Start menu (until I copy it to my Local AppData on that computer).
    So, it seems that when I first log in to a Win8.1 computer and go through the "Hi....etc etc....many different colors" startup, the WinX folder is created and will work on that computer, but if I log into another computer, it isn't downloaded as part of
    my roaming profile or re-created.  Also, if you have the GPO set to delete copies of roaming profiles off of the computer when a user logs out, I would guess that the WinX folder would then get deleted and when you log back in you'd have the same issue.

  • PowerPoint 2010: deactivate/disable right click context menu

    Hi,
    I am looking for a way to deactivate/disable the right click context menu in PowerPoint 2010/365.
    For the editing font menu it works with the registry entry
    Go to: HKEY_CURRENT_USER\Software\Microsoft\Office\14.0\Common\Toolbars\PowerPoint Create a Dword AllowMenuFloaties and set the value to zero. Set to 1 to enable again.
    NOTE This will kill ALL floatie Menus not just the one you mention.
    Does anybody know, how it works for the main right click context menu?

    Hi,
    Hi,
    We can custom the existing right-click context menu in PowerPoint 2010 via VBA.
    A similar issue is addressed here, we can learn from this experience  :
    http://social.msdn.microsoft.com/Forums/en-US/f8c7ee04-2a08-4300-9a73-48ccf084723d/how-to-remove-munu-item-from-popup-menu?forum=worddev
    http://social.msdn.microsoft.com/Forums/office/en-US/c1eb22ba-6ca8-4c21-8100-62185355aa53/customize-rightclick-context-menu-in-powerpoint-2010?forum=officegeneral
    There is an example of Customizing Context Menus in All Versions of Microsoft Excel
    http://msdn.microsoft.com/en-us/library/gg469862(v=office.14).aspx
    If you need detail help, please post it in MSDN forum.
    http://social.msdn.microsoft.com/Forums/en-US/home?forum=exceldev&filter=alltypes&sort=lastpostdesc

  • T40's Left Shift key makes right click/context menu appear?

    Hello All-
    On my T40, on which I just recently got Windows 7 correctly installed, has a curious behavior:
    When I press the left shift key, it functions the same as if I had pressed the right mouse button.  It functions correctly otherwise, I.E., when using it to capitolize a letter in an email, the letter is capitolized, but as soon as I let go of the shift key, the right click/context menu immediately appears.
    This is exceedingly irritating, as I cannot continue typing until I have navigated out of the menu.
    I have checked to see if the Keyboard Customiser utility is causing this, as I currently have my left Alt key functioning as a Windows button, but it does not appear to be causing this particular issue.
    Does anyone have any idea how I might go about fixing this?
    Thanks in advance,
    G
    Solved!
    Go to Solution.

    Nevermind-
    Had the keyboard customizer set to use the left shfit key as the application key.  Duh.

  • Size of plot legend graphics

    After trying to resize the plot legend of a waveform graph with the mouse, the small graphics showing the color and other plot properties suddenly got much longer, and the plot text was no longer left aligned. Tried to modify the legend programatically with a property node, setting ActPlot, LegWidth etc, but it doesn`t work the way I expected. The attached picture show an example of the problem. I want to resize the legend so it get a width the same as the outer bounds of the graph, the text should be left aligned, and the graphics stay small and right aligned. I`m using LV 2009.
    Spoiler (Highlight to read)
    Attachments:
    graph-legend.JPG ‏66 KB

    Gunnar,
    You can basically get the sizes and alignations correct by customizing the Plot Legend. Select first the waveform graph itself -> Edit: Customize Control. After that select the first row (See Picture) from the Plot Legend and do the same -> Edit: Customize Control. Now you can type in the long plot name and move the graphics part to the right. Press "Apply changes" often to check if the Legend and its elements are in right place. Finally replace the original control with the customized control.
    I hope this helps. A bit tricky to explain, but by playing with the customizing tool I'm sure you will get the idea soon.
    Cheers,
    Cerati
    P.S. I noticed that it is in fact easier to write the plot names first directly to the legend and then use the customizing tool for the plot row to move the graphics to the right.
    Attachments:
    Customize plot legend.jpg ‏73 KB

Maybe you are looking for