Chapter Contents

Previous

Next
Text Viewer: _setTextColor

Text Viewer: _setTextColor



Assigns the color and optionally the display attribute of some or all of the text area


Syntax
Details
Example

Syntax

CALL NOTIFY (viewer-name, '_setTextColor', color<, attr<, start-row, start-col, end-row, end-col>>);

Argument Type Description
color
C specifies a color
attr
C specifies a display attribute:
'NONE'
'REVERSE'
'UNDERLINE'
'REVERSE UNDERLINE'

start-row
N specifies the starting row of the area
start-col
N specifies the starting column of the area
end-row
N specifies the ending row of the area
end-col
N specifies the ending column of the area


Details

The new color and, if specified, the display attribute apply to the entire text area if only the color and attr arguments are passed to the _setTextColor method. If you use area coordinates, only that portion of the text will be changed.


Example

This example makes a marked area red reverse:

   /* mark the area */
call notify('textview', '_get_mark_', 1,
             srow, scol, erow, ecol);
   /* assign red reverse to the area */
call notify('textview', '_set_text_color_',
            'red', 'reverse',
            srow, scol, erow, ecol);

This example colors all text blue:

call notify('textview', '_set_text_color_', 'blue');


Chapter Contents

Previous

Next

Top of Page

Copyright 1999 by SAS Institute Inc., Cary, NC, USA. All rights reserved.