scripting@wanadoo.nl




DisplayText()

http://www.scriptlogic.com/kixtart/FunctionLibrary_FunctionList.aspx


actual FunctionLibrary list on 'Scriptlogic' site printer-friendly mirror of UDF topic on 'scripting@wanadoo.nl' site close
26 March 2002 DisplayText()
AuthorScriptLogic Corporation
Action Displays text at specified coordinates (or centered on row). Color may be optionally specified..
SyntaxDisplayText (row, column, "text", "paint") 
Parameters
  • row (Required / String) the row at which to position the cursor.
  • column (Required / String) the column at which to position the cursor.
  • text (Required / String) the text to be displayed.
  • paint (Optional / String) the paint (foreground/background) colors for the text. 
  • Remarksif the column parameter is a -1, the text will be centered on the row. 
    ReturnsNothing. 
    DependenciesNone. 
    Examples
    $result=DisplayText(1,-1,"KiXtart 2001 is awesome!","y+/b")
    $result=DisplayText(5,10,"How do you like these UDFs so far?")
    
     
    Source
    FUNCTION DisplayText ($row, $column, $text, OPTIONAL $paint)
      ; Display text at specified location (optionally in a specific color)
      ; If $column=-1, text will be centered
    
      DIM $frc
      IF ($column < 0)
       $column=(79-Len($text))/2 ; center text on y axis
      ENDIF
      IF $paint
        $frc=Execute('color $paint')
      ENDIF
      At ($row,$column) $text
      $displaytext=0 ; nothing to return
    ENDFUNCTION ; - DisplayText -
     
      original source of UDF topic. show actual FunctionLibrary list on Scriptlogic site close top
              printer-friendly mirror of UDF topic on scripting@wanadoo.nl site  




    Copyright © 2003 www.scriptlogic.com & scripting@wanadoo.nl - last updated on 20 May 2003


    Site Meter