Please enable JavaScript to view this site.

ESL Documentation

ESLLIB Subroutine

Set the style attribute of an area within a colored textual region.

EslMakeAttribute(TxtRgnHdle_IV, 

StartColumn_IV, 

StartLine_IV, 

EndColumn_IV, 

EndLine_IV, 

Attrib_IV, 

SegOrBlock_IV)

TxtRgnHdle_IV

The integer handle of the Textual Region containing the character to be examined. This handle can be obtained using the built-in function "handle of ".

StartColumn_IV

The horizontal position of the first character to be set, starting at position 1.

StartLine_IV

The vertical position of the first character to be set, starting at position 1.

EndColumn_IV

The horizontal position of the last character to be set, starting at position 1.

EndLine_IV

The vertical position of the last character to be set, starting at position 1.

Attrib_IV

The style attribute to be assigned to the specified area.

SegOrBlock_IV

An integer to specified the shape of the area to be set.

Description

This routine changes the style attribute of an area of text within a colored textual region. The current styles are:

ESL_NORMAL

No additional style

ESL_UNDERLINE

The character has been underlined

The shape of the specified area can be:

ESL_SEGMENT

The area follows the text to the end of line, the complete line for immediate lines and up to the specified end position.

ESL_BLOCK

This a rectangular area of text.

Be sure to include esllib.inc before using this function.

See Also

EslGetTextAttrib( ) ESLLIB Subroutine