Login Page - Create Account

Support Board


Date/Time: Tue, 13 May 2025 21:02:32 +0000



[Programming Help] - Print issue

View Count: 1386

[2016-04-30 13:29:15]
User524378 - Posts: 7
this is the code i have and it is printing on 2 lines instead of one

new to this can someone help

Thanks

SCString day; SCString day1;

    if (vDay.GetYesNo())
    {
      s_UseTool tool;
      tool.ChartNumber = sc.ChartNumber;
      tool.Region = 0;
      tool.AddMethod = UTAM_ADD_OR_ADJUST;
      tool.UseRelativeVerticalValues = 1;
      tool.BeginDateTime = 2;
      tool.BeginValue = 98;
      tool.TextAlignment = DT_LEFT | DT_TOP;
      tool.Color = vColor.GetColor();
      tool.ReverseTextColor = 0;
      tool.FontSize = vFontSize.GetInt();
      tool.AddAsUserDrawnDrawing = 0;
      tool.DrawingType = DRAWING_TEXT;
      day = vDayType[vFound].c_str() ;      
      day1 = " Day";
      day += day1;  
      tool.Text = day ;
      sc.UseTool(tool);
    }
imageScreenHunter_02 Apr. 30 09.27.jpg / V - Attached On 2016-04-30 13:28:10 UTC - Size: 7.66 KB - 274 views

To post a message in this thread, you need to log in with your Sierra Chart account:

Login

Login Page - Create Account