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 argusthome, Yesterday, 10:06 AM
                0 responses
                17 views
                0 likes
                Last Post argusthome  
                Started by NabilKhattabi, 03-06-2026, 11:18 AM
                0 responses
                16 views
                0 likes
                Last Post NabilKhattabi  
                Started by Deep42, 03-06-2026, 12:28 AM
                0 responses
                14 views
                0 likes
                Last Post Deep42
                by Deep42
                 
                Started by TheRealMorford, 03-05-2026, 06:15 PM
                0 responses
                9 views
                0 likes
                Last Post TheRealMorford  
                Started by Mindset, 02-28-2026, 06:16 AM
                0 responses
                36 views
                0 likes
                Last Post Mindset
                by Mindset
                 
                Working...
                X