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 rexsole, Today, 08:39 AM
                0 responses
                1 view
                0 likes
                Last Post rexsole
                by rexsole
                 
                Started by trilliantrader, Yesterday, 03:01 PM
                3 responses
                30 views
                0 likes
                Last Post NinjaTrader_Clayton  
                Started by cmtjoancolmenero, Yesterday, 03:58 PM
                4 responses
                26 views
                0 likes
                Last Post NinjaTrader_ChelseaB  
                Started by Brevo, Today, 01:45 AM
                1 response
                14 views
                0 likes
                Last Post NinjaTrader_ChelseaB  
                Started by rjbtrade1, 11-30-2023, 04:38 PM
                2 responses
                74 views
                0 likes
                Last Post DavidHP
                by DavidHP
                 
                Working...
                X