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 samish18, 04-17-2024, 08:57 AM
        16 responses
        55 views
        0 likes
        Last Post samish18  
        Started by arvidvanstaey, Today, 02:19 PM
        3 responses
        9 views
        0 likes
        Last Post NinjaTrader_Zachary  
        Started by jordanq2, Today, 03:10 PM
        2 responses
        8 views
        0 likes
        Last Post jordanq2  
        Started by traderqz, Today, 12:06 AM
        10 responses
        18 views
        0 likes
        Last Post traderqz  
        Started by algospoke, 04-17-2024, 06:40 PM
        5 responses
        47 views
        0 likes
        Last Post NinjaTrader_Jesse  
        Working...
        X