• If this is your first visit, you will have to register before you can post. To view messages, please scroll below and select the forum that you would like to visits. Questions? Be sure to check out the Forum FAQ.

Announcement

Collapse
No announcement yet.

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.
          https://docs.microsoft.com/en-us/dot.../keywords/base
          https://csharp.2000things.com/2013/0...u-override-it/
          https://www.safaribooksonline.com/li...2/ch04s05.html

          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 supermht, Today, 07:59 PM
              0 responses
              2 views
              0 likes
              Last Post supermht  
              Started by mohdhm, Today, 05:13 PM
              1 response
              12 views
              0 likes
              Last Post nkhoi
              by nkhoi
               
              Started by 3lliot, Today, 05:55 PM
              0 responses
              2 views
              0 likes
              Last Post 3lliot
              by 3lliot
               
              Started by Fargo, Today, 04:57 PM
              0 responses
              11 views
              0 likes
              Last Post Fargo
              by Fargo
               
              Started by Johnny Santiago, Today, 03:57 PM
              0 responses
              10 views
              0 likes
              Last Post Johnny Santiago  
              Working...
              X