• If this is your first visit, you will have to register before you can post. To view messages, please scroll below and select the forum that you would like to visits. Questions? Be sure to check out the Forum FAQ.

Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

How to add a button to chart toolstrip panel?

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

    How to add a button to chart toolstrip panel?

    Hello Support --

    How to add a button to a chart toolstrip panel? I know how to create new toolstrip panel and to add button to it. I'd like to add button to existing chart toolstrip panel.

    to create new toolstrip I use

    ts = new ToolStrip();
    ts.Name = "ts";
    ts.Dock = DockStyle.Left;
    ChartControl.Controls.Add(ts);

    I think there should be something like ChartControl.Controls.XXX.Add(button);
    What is XXX?

    Please, help!

    Thank you in advance.

    #2
    Searching for toolbar and button or toolstrip and button should return a lot of previous work you can look at.

    http://www.ninjatrader.com/support/f...olstrip+button


    Originally posted by alex_bbfg View Post
    Hello Support --

    How to add a button to a chart toolstrip panel? I know how to create new toolstrip panel and to add button to it. I'd like to add button to existing chart toolstrip panel.

    to create new toolstrip I use

    ts = new ToolStrip();
    ts.Name = "ts";
    ts.Dock = DockStyle.Left;
    ChartControl.Controls.Add(ts);

    I think there should be something like ChartControl.Controls.XXX.Add(button);
    What is XXX?

    Please, help!

    Thank you in advance.

    Comment


      #3
      Hello alex_bbfg,

      Thank you for your post.

      You can find an example of adding buttons to the toolbar at the following link as well: http://www.ninjatrader.com/support/f...d=5&linkid=490

      Thanks to Sledge for their help on this matter as well.
      Patrick H.NinjaTrader Customer Service

      Comment


        #4
        problem with code

        Originally posted by NinjaTrader_PatrickH View Post
        Hello alex_bbfg,

        Thank you for your post.

        You can find an example of adding buttons to the toolbar at the following link as well: http://www.ninjatrader.com/support/f...d=5&linkid=490

        Thanks to Sledge for their help on this matter as well.
        Actually the stuff inside of Initialize should go in OnStartUp otherwise you get a failed to initialize error everytime you put an indicator on your chart.

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by Guru73, Yesterday, 02:47 AM
        4 responses
        29 views
        0 likes
        Last Post marcus2300  
        Started by Guru73, Today, 01:35 AM
        0 responses
        1 view
        0 likes
        Last Post Guru73
        by Guru73
         
        Started by Maxwell123, Today, 12:34 AM
        0 responses
        3 views
        0 likes
        Last Post Maxwell123  
        Started by esquissa, Yesterday, 11:59 PM
        0 responses
        2 views
        0 likes
        Last Post esquissa  
        Started by i2w8am9ii2, Yesterday, 04:41 PM
        1 response
        10 views
        0 likes
        Last Post Lancer
        by Lancer
         
        Working...
        X