Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

Partner 728x90

Collapse

Context menu added by double clicking on chart

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Context menu added by double clicking on chart

    Futures,io has a post about adding a context menu by double clicking on an NT7 chart. Anyone been able to do this in NT8?


    NT 7.0 How can I show a context menu in the chart [for example when a user double clicks in the chart]: MenuItem [] menuManualButton = new MenuItem [] { new MenuItem( "Text 1", eventHandler1), new MenuItem( "Text 2", eventHandler2), }; ContextMenu contextManualButton = new ContextMenu( menuManualButton ); contextManualButton.Show( (ChartControl) sender, Cursor.Position ); My question is what I have to provide in the show function as the first parameter? …



    The Help guide has information about creating AddOn windows that can be launched from a menu in the control center. I would like to be able to launch a popup window from an indicator, with user controls that show, or allow changes to, indicator settings. For now, stymied as to how to go about this, or how to use forms created in Visual Studio as the popup windows.
    Last edited by Ricam; 05-06-2017, 01:25 PM.

    #2
    Hello,

    You could likely accomplish this using the PreviewMouseLeftButtonDown event and then creating a context menu and appending it to the ChartControl. You can also modify the existing Context menu if you want.

    Attached is an example of capturing a double click.

    For context related items, please see this post: http://ninjatrader.com/support/forum...87&postcount=6

    I look forward to being of further assistance.
    Attached Files
    JesseNinjaTrader Customer Service

    Comment


      #3
      Hi All!

      Could anyone please provide a sample of a pop-up alert for the NT7?

      thx

      Comment


        #4
        Hello Outsource,

        I would suggest posting this question in the NT7 development forum with a link to this thread if it is related. Also, I am unsure what you mean by pop-up alert, do you mean context menu like we have discussed in this post? I don't see where the alert was mentioned in this post or the other forum post.

        Please let me know if I may be of further assistance.
        JesseNinjaTrader Customer Service

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by bortz, 11-06-2023, 08:04 AM
        47 responses
        1,603 views
        0 likes
        Last Post aligator  
        Started by jaybedreamin, Today, 05:56 PM
        0 responses
        8 views
        0 likes
        Last Post jaybedreamin  
        Started by DJ888, 04-16-2024, 06:09 PM
        6 responses
        18 views
        0 likes
        Last Post DJ888
        by DJ888
         
        Started by Jon17, Today, 04:33 PM
        0 responses
        4 views
        0 likes
        Last Post Jon17
        by Jon17
         
        Started by Javierw.ok, Today, 04:12 PM
        0 responses
        12 views
        0 likes
        Last Post Javierw.ok  
        Working...
        X