+1 888 340 6572

Text_NewV

Article/Author: Omega Research Inc., 1995

Download: FUNCTION-TEXT_NEWV.ELA

File Includes: Function - Text_NewV

Description: This Creates and Draws a new text object on the active chart window, Vertically, at the location specified. Essentially this Function works just like the built-in Text_New Function, but there is an additional Input added to the end. Instead of printing the text horizontally, this Funtion will print the specified text vertically. The "Pnts" Input determines the spacing between letters. The default that should initially be used when referencing "Pnts" in the Function is 1. A Positive "Pnts" value will print the text up from the location value in the Function. A Negaive "Pnts" value will print teh text down from the loacation value in the Function.

INPUTS: Dte   (Numericseries)
              Tme  (Numericseries)
              Vlue  (Numericseries)
              Txt   (String)
              Pnts (Numeric)

EasyLanguage Code:
INPUTS: DTE(NUMERICSERIES), TME(NUMERICSERIES), VLUE(NUMERICSERIES), TXT(STRING), PNTS(NUMERIC);

VAR: TXT1(""), DN(0);

FOR VALUE1 = STRLEN(TXT) DOWNTO 1
BEGIN
TXT1 = LEFTSTR(RIGHTSTR(TXT, VALUE1), 1);
VALUE2 = TEXT_NEW(DTE, TME, VLUE - DN, TXT1);
DN = DN - PNTS;
END;

TEXT_NEWV = VALUE2;