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!
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
NinjaTrader
BackBrush Behavior Change With Custom OnRender
Collapse
X
-
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
-
Originally posted by NinjaTrader_ChelseaB View PostThis 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
-
Chelsea B.NinjaTrader Customer Service
Comment
-
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
-
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 Today, 06:23 AM | ||
Started by mmenigma, Yesterday, 03:25 PM
|
1 response
11 views
0 likes
|
Last Post Today, 06:09 AM | ||
Started by kujista, Today, 05:44 AM
|
0 responses
7 views
0 likes
|
Last Post
by kujista
Today, 05:44 AM
|
||
Started by ZenCortexCLICK, Today, 04:58 AM
|
0 responses
9 views
0 likes
|
Last Post Today, 04:58 AM | ||
Started by sidlercom80, 10-28-2023, 08:49 AM
|
172 responses
2,282 views
0 likes
|
Last Post
by sidlercom80
Today, 04:40 AM
|
Comment