Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

How to decorate a parameter to open file explorer

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

    How to decorate a parameter to open file explorer

    In NinjaTrader 7, we were able to create a parameter to select a file from the file system. Something like this:


    PHP Code:
    [EditorAttribute(typeof(System.Windows.Forms.Design.FileNameEditor), typeof(System.Drawing.Design.UITypeEditor))]
    [Gui.Design.DisplayName("Sound File")]
    [Description("Sound to output.")]
    [Category("My Category")]
    [Browsable(true)]
    public string MyFileName
    {
          get { return _FileName; }
          set { _FileName = value; }
    } 
    

    When I add that EditorAttribute and FileNameEditor in NT8 it seems to be ignored. Does anyone know the new technique?

    (I'm sorry if it's obvious, but I did some searches and failed to find any hits)

    Thanks in advance!

    #2
    Hi neoikon,

    Yes, it is possible to use a file picker in NinjaTrader 8.

    Code:
    [PropertyEditor("NinjaTrader.Gui.Tools.FilePathPicker", Filter="Any Files (*.*)|*.*")]
    http://ninjatrader.com/support/forum...ad.php?t=78796
    Last edited by NinjaTrader_ChelseaB; 03-28-2017, 03:39 PM.
    Chelsea B.NinjaTrader Customer Service

    Comment


      #3
      Perfect! Thanks!

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by CarlTrading, 03-30-2026, 11:51 AM
      0 responses
      24 views
      0 likes
      Last Post CarlTrading  
      Started by CarlTrading, 03-30-2026, 11:48 AM
      0 responses
      25 views
      0 likes
      Last Post CarlTrading  
      Started by CaptainJack, 03-25-2026, 09:53 PM
      0 responses
      30 views
      0 likes
      Last Post CaptainJack  
      Started by CaptainJack, 03-25-2026, 09:51 PM
      0 responses
      18 views
      0 likes
      Last Post CaptainJack  
      Started by Mindset, 03-23-2026, 11:13 AM
      0 responses
      28 views
      0 likes
      Last Post Mindset
      by Mindset
       
      Working...
      X