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 CarlTrading, 03-31-2026, 09:41 PM
      1 response
      81 views
      1 like
      Last Post NinjaTrader_ChelseaB  
      Started by CarlTrading, 04-01-2026, 02:41 AM
      0 responses
      42 views
      0 likes
      Last Post CarlTrading  
      Started by CaptainJack, 03-31-2026, 11:44 PM
      0 responses
      64 views
      2 likes
      Last Post CaptainJack  
      Started by CarlTrading, 03-30-2026, 11:51 AM
      0 responses
      66 views
      0 likes
      Last Post CarlTrading  
      Started by CarlTrading, 03-30-2026, 11:48 AM
      0 responses
      55 views
      0 likes
      Last Post CarlTrading  
      Working...
      X