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

BackBrush Behavior Change With Custom OnRender

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

    #16
    If that is truly the case, NinjaTrader is fundamentally broken.

    Comment


      #17
      Hello aslane,

      This is true with any c# code with overrides even if you were making your own application. It is a limitation of c#.

      The base needs to be called for anything else that may be using the same override. This allows the method to also be called by the original base.

      Not all methods need this, but they do when other methods are also overriding the same base method.

      I would recommend further education in c# on overriding methods.

      Futher, NinjaTrader is working as intended and as documented in the help guide. If you can demonstrate that when coding as directed that the behavior is not the intended behavior, we are happy to submit a bug report. However, we have not determined this at this time.
      Last edited by NinjaTrader_ChelseaB; 05-28-2018, 11:04 AM.
      Chelsea B.NinjaTrader Customer Service

      Comment


        #18
        Originally posted by NinjaTrader_ChelseaB View Post
        This is true with any c# code with overrides even if you were making your own application. It is a limitation of c#.

        The base needs to be called for anything else that may be using the same override. This allows the method to also be called by the original base.

        Not all methods need this, but they do when other methods are also overriding the same base method.

        I would recommend further education in c# on overriding methods..

        LOL, I think you might be the one that needs a little education.

        Comment


          #19
          Hello aslane,

          Below are a few public links to 3rd party websites.
          Learn about the base keyword, which is used to access members of the base class from within a derived class in C#.




          Can you further detail what I am not understanding correctly about calling the base method?
          Chelsea B.NinjaTrader Customer Service

          Comment


            #20
            If that's all you got, keep googling and reading. I am done here as this is not productive use of time for either of us. In the time of this thread, I already rewrote the applicable portion of my lib to not use any Ninja built ins when doing custom renders.

            Comment


              #21
              Hello aslane,

              When using the base.OnRender() as directed in the help guide are you finding that BackBrushes are not being rendered?

              Do you have an issue to report?

              Are you asking for some new language in the help guide that not calling base.OnRender() may or may not cause issues with other items that are also being rendered depending on the order they are rendered in?

              Are you asking for the language to be changed to suggest that base.OnRender() should always be called to ensure other rendered items are rendered and remove the specific word about plots?
              Chelsea B.NinjaTrader Customer Service

              Comment

              Latest Posts

              Collapse

              Topics Statistics Last Post
              Started by The_Sec, Yesterday, 03:53 PM
              1 response
              12 views
              0 likes
              Last Post NinjaTrader_Gaby  
              Started by mmenigma, Yesterday, 03:25 PM
              1 response
              11 views
              0 likes
              Last Post NinjaTrader_Gaby  
              Started by kujista, Today, 05:44 AM
              0 responses
              7 views
              0 likes
              Last Post kujista
              by kujista
               
              Started by ZenCortexCLICK, Today, 04:58 AM
              0 responses
              9 views
              0 likes
              Last Post ZenCortexCLICK  
              Started by sidlercom80, 10-28-2023, 08:49 AM
              172 responses
              2,282 views
              0 likes
              Last Post sidlercom80  
              Working...
              X