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 SnailHorn, Today, 10:49 PM
            0 responses
            7 views
            0 likes
            Last Post SnailHorn  
            Started by naanku, Today, 07:25 PM
            0 responses
            8 views
            0 likes
            Last Post naanku
            by naanku
             
            Started by milfocs, Today, 07:23 PM
            0 responses
            6 views
            0 likes
            Last Post milfocs
            by milfocs
             
            Started by PaulMohn, Today, 06:59 PM
            0 responses
            8 views
            0 likes
            Last Post PaulMohn  
            Started by bortz, 11-06-2023, 08:04 AM
            48 responses
            1,756 views
            0 likes
            Last Post carnitron  
            Working...
            X