Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

CollectionEditor 'Prompt'

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

    CollectionEditor 'Prompt'

    Hi,
    I've duplicated a GannFan tool, and would like to change the Prompt of the collection editor to my own string (so that it no longer says "7 Gann angles". I can't find any documentation or examples of this. Can you advise?

    Many thanks,
    saltminer

    #2
    Hello saltminer,

    In this situation you need to change the GannAngleContainer classes property for GannAngles:

    Code:
    [PropertyEditor("NinjaTrader.Gui.Tools.CollectionEditor")]
    [Display(ResourceType = typeof(Custom.Resource), Name = "NinjaScriptDrawingToolsGannAngles", Prompt = "NinjaScriptDrawingToolsGannAnglesPrompt", GroupName = "NinjaScriptGeneral", Order = 99)]
    [SkipOnCopyTo(true)]
    public List<GannAngle> GannAngles { get; set; }
    to
    Code:
    [PropertyEditor("NinjaTrader.Gui.Tools.CollectionEditor")]
    [Display([B]Name = "My Custom Name", Prompt = "1 Gann angle|{0} Gann angles|Add Gann angle..|Edit Gann angle...|Edit Gann angles...",[/B] GroupName = "NinjaScriptGeneral", Order = 99)]
    [SkipOnCopyTo(true)]
    public List<GannAngle> GannAngles { get; set; }

    For custom resources you can look in the Documents\NinjaTrader 8\bin\Custom\Resource.resx file to get the Prompt strings for property editors that are used.
    Last edited by NinjaTrader_Jesse; 02-04-2020, 08:34 AM.

    Comment


      #3
      Thanks so much Jesse. Working well with this edit.

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by Geovanny Suaza, 02-11-2026, 06:32 PM
      0 responses
      577 views
      0 likes
      Last Post Geovanny Suaza  
      Started by Geovanny Suaza, 02-11-2026, 05:51 PM
      0 responses
      334 views
      1 like
      Last Post Geovanny Suaza  
      Started by Mindset, 02-09-2026, 11:44 AM
      0 responses
      101 views
      0 likes
      Last Post Mindset
      by Mindset
       
      Started by Geovanny Suaza, 02-02-2026, 12:30 PM
      0 responses
      553 views
      1 like
      Last Post Geovanny Suaza  
      Started by RFrosty, 01-28-2026, 06:49 PM
      0 responses
      551 views
      1 like
      Last Post RFrosty
      by RFrosty
       
      Working...
      X