Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

How to widen Bar Type selector/text box on chart?

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

    How to widen Bar Type selector/text box on chart?

    Hi there,

    I did a search for this topic but to no avail. I also spent a little time perusing the jungle of XAML within the Skins folder as well. So, I tried......

    I desire to widen the drop down BarType selector on top of the chart toolbar. Please see image attached. As you can see I have to compress the name of my bar types to silly abbreviated strings and since I am not inhibited by horizontal constraints I wouldn't mind widening the box as pictured.

    Thank you.
    Attached Files

    #2
    Hi Sim22,

    This would be outside of what is supported by NinjaTrader.

    But, I will confer with our development and do a little testing when we have resources available to see what I can find out for you.

    Its a WPF element and you can use MSInspect to find out what it is.. the intellisense / class view in visual studio should give some tips on how to manipulate..should you want to find an answer before I do.
    Chelsea B.NinjaTrader Customer Service

    Comment


      #3
      Hi Sim22,

      Code:
      NinjaTrader.Gui.Tools.IntervalSelector selector = null;
      
      foreach (System.Windows.DependencyObject item in (System.Windows.Window.GetWindow(ChartControl.Parent) as Chart).MainMenu)
      {
      	if (System.Windows.Automation.AutomationProperties.GetAutomationId(item) == "ChartWindowIntervalSelector")
      	{
      		selector = item as NinjaTrader.Gui.Tools.IntervalSelector;
      	}
      }
      
      
      if (selector != null)
      	selector.Width = 200;
      Chelsea B.NinjaTrader Customer Service

      Comment


        #4
        Thank you Chelsea for your reply. I always appreciate your efforts

        So basically I add this to my State == State.Configure within all my custom bartypes?

        Comment


          #5
          Hello Sim22,

          This is something that you would want to do from an indicator.

          Indicators would be used primarily to make UI modifications to a chart.

          There is not a ChartControl object available to bar types.

          You may be able to add this to a ChartStyle though.
          Chelsea B.NinjaTrader Customer Service

          Comment


            #6
            Hmmm....little dodgy for my liking....though I thank you for your effort

            Comment

            Latest Posts

            Collapse

            Topics Statistics Last Post
            Started by bortz, 11-06-2023, 08:04 AM
            47 responses
            1,604 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
            13 views
            0 likes
            Last Post Javierw.ok  
            Working...
            X