Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Rename Tab

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

    Rename Tab

    Hi Team,

    I'm building an addon and want to be able to rename the Tab. I have the option, but when I click on it, nothing happens. I want to know where I can get info about how to accomplish this task in the help guide or how can code it to work.


    Thank you
    DAYTRADERPROFESIONAL
    NinjaTrader Ecosystem Vendor - DAYTRADERPROFESIONAL

    #2
    Hello DAYTRADERPROFESIONAL,

    In an addon you can rename the tab by using GetHeaderPart()



    This is shown in the addon sample: https://ninjatrader.com/support/help...t_overview.htm

    Comment


      #3
      Hi Team,

      Thank you so much for the info. If I have a Custom name for The tab and want to use the function to rename it, I can use this also?

      Thank you
      DAYTRADERPROFESIONAL
      NinjaTrader Ecosystem Vendor - DAYTRADERPROFESIONAL

      Comment


        #4
        Hello DAYTRADERPROFESIONAL,

        Yes you can, as long as that function is within the same class as the GetHeaderPart() method. That method is called by the tab system to get the name. The addon sample shows an example of using conditions to conditionally name the tab, the capitalized INSTRUMENT as an example is replaced by the instrument name being used. You can supply any string for the tab name.

        Comment


          #5
          Hi NinjaTrader_Jesse

          Thank you. I tried it but still not getting a response when I use the Rename Tab function in the menu. Seems GetHeaderTab doesn't call this function from the context menu at the Tab. Do you know how can be called?
          Last edited by DAYTRADERPROFESIONAL; 09-17-2022, 09:01 AM.
          DAYTRADERPROFESIONAL
          NinjaTrader Ecosystem Vendor - DAYTRADERPROFESIONAL

          Comment


            #6
            Hello DAYTRADERPROFESIONAL,

            The Right click -> Rename is not currently implemented for custom addons, this is not part of the addon sample provided. The internal tools use some type of internal event to rename the tab however that is not currently documented for use in addons. The addon would get its name from the code being used inside the tab of the addon rather than manually by the user.

            Comment


              #7
              Hi Jesse,

              Thank you so much. I will find the way.

              DAYTRADERPROFESIONAL
              NinjaTrader Ecosystem Vendor - DAYTRADERPROFESIONAL

              Comment

              Latest Posts

              Collapse

              Topics Statistics Last Post
              Started by Geovanny Suaza, 02-11-2026, 06:32 PM
              0 responses
              633 views
              0 likes
              Last Post Geovanny Suaza  
              Started by Geovanny Suaza, 02-11-2026, 05:51 PM
              0 responses
              364 views
              1 like
              Last Post Geovanny Suaza  
              Started by Mindset, 02-09-2026, 11:44 AM
              0 responses
              105 views
              0 likes
              Last Post Mindset
              by Mindset
               
              Started by Geovanny Suaza, 02-02-2026, 12:30 PM
              0 responses
              567 views
              1 like
              Last Post Geovanny Suaza  
              Started by RFrosty, 01-28-2026, 06:49 PM
              0 responses
              568 views
              1 like
              Last Post RFrosty
              by RFrosty
               
              Working...
              X