Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

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
    JesseNinjaTrader Customer Service

    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.

        JesseNinjaTrader Customer Service

        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.

            JesseNinjaTrader Customer Service

            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 maybeimnotrader, Yesterday, 05:46 PM
              2 responses
              20 views
              0 likes
              Last Post maybeimnotrader  
              Started by adeelshahzad, Today, 03:54 AM
              5 responses
              32 views
              0 likes
              Last Post NinjaTrader_BrandonH  
              Started by stafe, 04-15-2024, 08:34 PM
              7 responses
              32 views
              0 likes
              Last Post NinjaTrader_ChelseaB  
              Started by merzo, 06-25-2023, 02:19 AM
              10 responses
              823 views
              1 like
              Last Post NinjaTrader_ChristopherJ  
              Started by frankthearm, Today, 09:08 AM
              5 responses
              22 views
              0 likes
              Last Post NinjaTrader_Clayton  
              Working...
              X