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!
See more
See less

Partner 728x90

Collapse

Draw.Text Pen Width

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

    Draw.Text Pen Width

    In NT7 I could set the Outline Pen Width via

    Text idoji=Draw.Text(this,tag, IsAutoScale, msg, x, ypos, offsetdir , Fntcolor, priceFont, TextAlignment.Left, Fntcolor ,Brushes.Yellow,10 );

    if (idoji != null) idoji.Pen.Width=2;

    So in NT8 How do I set the Outline Brush width.


    Thanks
    Jerry
    Last edited by JerryWar; 11-11-2016, 06:43 PM.

    #2
    Hello,

    The outline width could be controlled by modifying the stroke:

    Code:
    idoji.OutlineStroke = new Stroke(){Pen = new Pen(Brushes.Red, 5)};
    The Pen its self is read only, so a new Stroke would be required in this case.

    I will put in a feature request for further overrides related to the Widths of the outline and borders.

    I look forward to being of further assistance.
    Last edited by NinjaTrader_Jesse; 11-15-2016, 08:05 AM. Reason: feature request
    JesseNinjaTrader Customer Service

    Comment


      #3
      Jesse, I would like to just set the outline brush width by calling Draw.Text() but I cannot find a parameter in the documentation for the outline Brush width. There is a parameter for the outline color not for the brush width. What am I missing ?

      thanks
      Jerry

      Comment


        #4
        Hello,

        That is my mistake, I have put in a feature request and updated my prior comment. You are correct there are no overload sets that include this currently.

        I look forward to being of further assistance.
        JesseNinjaTrader Customer Service

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by CortexZenUSA, Today, 12:53 AM
        0 responses
        1 view
        0 likes
        Last Post CortexZenUSA  
        Started by CortexZenUSA, Today, 12:46 AM
        0 responses
        1 view
        0 likes
        Last Post CortexZenUSA  
        Started by usazencortex, Today, 12:43 AM
        0 responses
        5 views
        0 likes
        Last Post usazencortex  
        Started by sidlercom80, 10-28-2023, 08:49 AM
        168 responses
        2,266 views
        0 likes
        Last Post sidlercom80  
        Started by Barry Milan, Yesterday, 10:35 PM
        3 responses
        13 views
        0 likes
        Last Post NinjaTrader_Manfred  
        Working...
        X