Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

log messages for keys in 8.0.14.2 upgrade

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

    log messages for keys in 8.0.14.2 upgrade

    Hello, after upgrading to 8.0.14.2 i am getting these in the log file - what do they relate to as i dont do anything with either to my knowledge - is it something in an addon or indicator?


    Required key "NinjaScriptEditorCollapsibleRegionBackground" is missing.
    2018-06-28 14:13:24:963|3|4|Required key "CryptocurrencyTrailingZeroForeground" is missing.

    thanks

    #2
    I suspect a custom item in your installation is using a method which no longer exists or has been changed. Do you have any custom skins or any add-ons imported?

    Is this causing any other symptoms or adverse behavior?

    Comment


      #3
      i have 2 custom skins but they are showing correctly and they dont have a reference to the above and i just ran a search on the skins directory for ninja native ones and they dont have reference to this.

      I have an external DLL i built outside in visual studio but equally no reference is made to these.

      Which version did they exist and when deprecated ? I did not have issue with this in 8.0.13.1 - so what has changed on your/ninja side?

      thanks
      Last edited by explorer101; 06-28-2018, 10:43 AM.

      Comment


        #4
        Your custom skins must be modified to include the new keys:
        • "NinjaScriptEditorCollapsibleRegionBackground" .
        • "CryptocurrencyTrailingZeroForeground"

        Comment


          #5
          Ah ok - do you know offhand which of the skins files ie blueprint has the new keys? I thought it would come up in the search for the standard ninja ones - and i did search to see expecting to see them to know the syntax to include in my own 2 skins. It is only the blueprint files that have been changed in my own skins

          Comment


            #6
            Hello explorer101,

            These resources can be referenced in the Slate Gray BluePrint.xaml file. (NinjaTrader 8/templates/Skins/Slate Gray/BluePrint.xaml)

            NinjaScriptEditorCollapsibleRegionBackground is located on line 886.

            CryptocurrencyTrailingZeroForeground is located on line 1007.

            Please let us know if we can be of further help.
            JimNinjaTrader Customer Service

            Comment


              #7
              Thanks added those lines to my custom skins all resolved now and log file clear.

              Comment


                #8
                which skin is set

                Hello, following from this i was looking around as i thought i had asked this before.

                What is the call in the ninjascript to access which Skin is current for the Ninjatrader 8 application ie Light Dark etc.

                And is there a way to access the value of one of the keys

                The challenge i have is that i have some separate addon panels and i need to access the appropriate color to use for text for labels of fields

                ie white on white background for Light skin does not work

                and vice versa.

                Im am trying to implement some flexibility as to how to propogate the values into other xaml panels in a consistent manner?

                Any suggestions?

                thanks

                Comment


                  #9
                  Hello explorer101,

                  The current skin name can be fetched under NinjaTrader.Core.Globals.GeneralOptions.Skin. I may suggest fetching resources that are noted in the skin's xaml to choose brushes that agree with the current skin, however.

                  For example:
                  Application.Current.TryFindResource("FontMenuTopBr ush") as SolidColorBrush;

                  We don't have an example script that covers what the common use resources are, but this is something we plan on creating as time allows.

                  Please let us know if there is anything else we can do to help.
                  JimNinjaTrader Customer Service

                  Comment


                    #10
                    Jim I think it would be good idea to have training session on editing skins.

                    I personally have no interest in learning to write Ninja Script but being able to modify the skin to change various elements would be very useful.

                    Even just to know the scope of what can and cannot be changed?

                    This is a very exiting characteristic of NT8 and I along with a lot of other would like to be able to take full advantage of it.


                    An example of some questions are in the attachment.
                    Attached Files

                    Comment


                      #11
                      Hello James108,

                      Skins are in XAML, not to be confused with NinjaScript. We do not have extensive documentation on skinning, but we do have an introductory page here: https://ninjatrader.com/support/help...gstoplimit.htm

                      I have requested that this documentation page gets expanded with examples. We are tracking interest in this item with the ticket ID SFT-3349.

                      More information on XAML can be found from Microsoft here - https://docs.microsoft.com/en-us/pre...expression.10)

                      The items that you would like to change can be changed in the BluePrint.xaml file which can be edited with Notepad. I suggest searching for these items by keyword. For example searching for "Check box" and "Font" can lead you to the resources you are looking to modify.

                      Please let us know if there is anything else we can do to help.
                      Last edited by NinjaTrader_Jim; 07-11-2018, 06:51 AM.
                      JimNinjaTrader Customer Service

                      Comment


                        #12
                        Thanks Jim, i will try out the TryFind Resource for some of the items that will be of use.

                        Please add my vote to the ticket ID SFT-3349.

                        Given my example context of use ; there indeed needs to be more documentation on this as changing Skins does have a material affect on all the components of the application including addons which have been introduced. So a means for consistency of UI/UIX needs to be considered.

                        thanks

                        Comment


                          #13
                          Thanks Jim


                          Can you check the link you included , the Microsoft one give 404 and the NT on does not appear related to XAML


                          thanks


                          James108

                          Comment


                            #14
                            Thanks for pointing that out. The link should be fixed now.

                            @explorer101, I've added your vote.
                            JimNinjaTrader Customer Service

                            Comment


                              #15
                              Hello following from this back in July with the 8.0.16.3 i am now seeing the log messages
                              Required Key "DepthChart.AxisBackground" is missing and
                              Required Key "DepthChart.TextForeground" is missing

                              can you please guide me as to which xaml file needs upating ie is it Blueprint.xaml as it was before
                              So i can update my custom skins files

                              In future it seems the only way to know of these changes is on running testing the new release and amending my own custom scripts accordingly
                              Are these details not published in the release notes or could they be stated more clearly in the release notes since there is not a way currently as discussed above
                              to edit the skins files - as was requested by another user
                              thanks

                              Comment

                              Latest Posts

                              Collapse

                              Topics Statistics Last Post
                              Started by Barry Milan, Yesterday, 10:35 PM
                              4 responses
                              14 views
                              0 likes
                              Last Post Barry Milan  
                              Started by DanielSanMartin, Yesterday, 02:37 PM
                              2 responses
                              13 views
                              0 likes
                              Last Post DanielSanMartin  
                              Started by DJ888, 04-16-2024, 06:09 PM
                              4 responses
                              12 views
                              0 likes
                              Last Post DJ888
                              by DJ888
                               
                              Started by terofs, Today, 04:18 PM
                              0 responses
                              11 views
                              0 likes
                              Last Post terofs
                              by terofs
                               
                              Started by nandhumca, Today, 03:41 PM
                              0 responses
                              8 views
                              0 likes
                              Last Post nandhumca  
                              Working...
                              X