Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

How to add color input in NT8

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

    How to add color input in NT8

    The wizard doesn't seem to accept color inputs in NT8. Can these be added in manually
    as in NT7 ?

    J~

    #2
    A lot of searching but I found an example..

    [XmlIgnore]
    public Brush MyBrush { get; set; }

    [Browsable(false)]
    public string MyBrushSerialize
    {
    get { return Serialize.BrushToString(MyBrush); }
    set { MyBrush = Serialize.StringToBrush(value); }
    }

    Comment


      #3
      I tried using this and I get an error message. "NinjaTrader.Gui.Serialize" does not contain a definition for "BrushtoString" and vice versa for "StringtoBrush"
      I am using System.Xml.Serialization in my system declarations.

      Does anyone know why this is not working ?

      Thanks
      J~

      Comment


        #5
        Originally posted by JerryWar View Post
        I tried using this and I get an error message. "NinjaTrader.Gui.Serialize" does not contain a definition for "BrushtoString" and vice versa for "StringtoBrush"
        I am using System.Xml.Serialization in my system declarations.

        Does anyone know why this is not working ?

        Thanks
        J~
        NT8Beta2 has not yet dispensed with slang. It uses Brush2String etc, not BrushToString. And in any case your capitalization is also wrong.

        ref: http://www.ninjatrader.com/support/f...133#post414133

        Comment


          #6
          Originally posted by koganam View Post
          NT8Beta2 has not yet dispensed with slang. It uses Brush2String etc, not BrushToString. And in any case your capitalization is also wrong.

          ref: http://www.ninjatrader.com/support/f...133#post414133

          That worked. The funny thing is that this was their example I posted. I would appreciate it if you pointed out where the capitalization was wrong as it compiled with replacing the "To"

          Thanks
          ~J

          Comment


            #7
            Beta 3 will see a replacement of Brush2String-> BrushToString(). There was some documentation which prematurely used the Beta 3 name.
            MatthewNinjaTrader Product Management

            Comment


              #8
              Originally posted by JerryWar View Post
              That worked. The funny thing is that this was their example I posted. I would appreciate it if you pointed out where the capitalization was wrong as it compiled with replacing the "To"

              Thanks
              ~J
              "To" is not the same as "to", which is what you wrote. CaSe SeNsItIvE.

              Comment


                #9
                Originally posted by koganam View Post
                "To" is not the same as "to", which is what you wrote. CaSe SeNsItIvE.
                Ahhhhh- That's why I could not find it. The original code snippet I posted had it correct. In the post of the error message I copied it incorrectly.
                I was checking the code not the post.

                Regardless, It looks like they took up your suggestion to Replace the "2"s in the next version.

                Thanks

                ~J

                Comment

                Latest Posts

                Collapse

                Topics Statistics Last Post
                Started by andrewtrades, Today, 04:57 PM
                1 response
                8 views
                0 likes
                Last Post NinjaTrader_Manfred  
                Started by chbruno, Today, 04:10 PM
                0 responses
                6 views
                0 likes
                Last Post chbruno
                by chbruno
                 
                Started by josh18955, 03-25-2023, 11:16 AM
                6 responses
                436 views
                0 likes
                Last Post Delerium  
                Started by FAQtrader, Today, 03:35 PM
                0 responses
                7 views
                0 likes
                Last Post FAQtrader  
                Started by rocketman7, Today, 09:41 AM
                5 responses
                19 views
                0 likes
                Last Post NinjaTrader_Jesse  
                Working...
                X