Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

DrawText method

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

    DrawText method

    Hello,
    if use DrawText method as you can see below the followings will happen:

    1) Text = "bla bla bla"
    Draw on Chart: Ok (1 row)
    Text properties, General TAB: Ok (1 row)

    2) Text = "bla bla bla" + Environment.NewLine + "bla bla bla" + Environment.NewLine + "bla bla bla"
    Draw on Chart: Ok (3 row)
    Text properties, General TAB: Ok (3 row)

    3) Text = Environment.NewLine + "bla bla bla" + Environment.NewLine
    Draw on Chart: Not right (1 row)
    Text properties, General TAB: Ok (3 row)
    Other note to here: if you use higher font (not default), then outline cut from the font.

    4) Text = "" + Environment.NewLine + "bla bla bla" + Environment.NewLine + ""
    Same as 3 point.

    5) Text = " " + Environment.NewLine + "bla bla bla" + Environment.NewLine + " "
    Same as 3 point.

    Other problem:
    If you write in lot of row, it will be shown on the Chart, but no any scrollbar will not be shown on General TAB. Long rows will be wrapped, but you can scroll vertically only if text selection is used. I think it would be better if both scrollbars are enabled.

    Best regards,
    Tamas

    #2
    Tamas, I tried reproducing here, but I'm not sure I follow you - why do you think case 3 should produce something else than 1 row of text? You don't see the new line line it entered on the chart, if you open up the DrawText properties, you see it added as programmed.
    Attached Files

    Comment


      #3
      Hello Bertrand,

      i just wanted to tell, that there is a difference between properties window and the drawing on the chart. For me, it would be logical if the wrap was seen similary on both. When i realized it, i wrote you. I only wanted to indicate.

      Best regards,
      Tamas

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by CarlTrading, 03-31-2026, 09:41 PM
      1 response
      77 views
      1 like
      Last Post NinjaTrader_ChelseaB  
      Started by CarlTrading, 04-01-2026, 02:41 AM
      0 responses
      40 views
      0 likes
      Last Post CarlTrading  
      Started by CaptainJack, 03-31-2026, 11:44 PM
      0 responses
      63 views
      2 likes
      Last Post CaptainJack  
      Started by CarlTrading, 03-30-2026, 11:51 AM
      0 responses
      63 views
      0 likes
      Last Post CarlTrading  
      Started by CarlTrading, 03-30-2026, 11:48 AM
      0 responses
      53 views
      0 likes
      Last Post CarlTrading  
      Working...
      X