Show/Hide Toolbars

Inventu Viewer+ .NET Programmer's Reference

Navigation: HostScreen Class > Methods

setAttribute Method

Scroll Prev Top Next More

 

Set a protected attribute for a formatted display area.

 

void setAttribute(int row, int column, String attrs);

void setAttribute(int offset, String attrs);

 

Arguments

 

HostScreen

 Required. HostScreen object.

 

Offset

 Required. The offset position on the host screen.

row

 Required if not offset form. The row number on the host screen.

column

 Required if not offset form. The column number on the host screen.

attrs

Required. A string of single characters which set any attributes.  For a "normal" output attribute, use an empty string ("").  Combine multiple characters for multiple attributes.

 

Character

Attribute

B

Bold

L

Low (VT100 only)

U

Underline

F

Flash (Blink)

R

Reverse Video

C

Column Separator (different color)

 

Remarks

 

The setAttribute method is intended for use in a terminal emulation environment when modifications to the screen display data is needed at the server.  For example, database reads can be used to modify displayed data when a list from the host is incomplete based on departmental requirements.

 

This method will change the display characteristics for the screen text which follows the location of the attribute.

 

This method works for both formatted (5250/3270 and unformatted (VT) displays.

 

Note - when used with the setDisplay method, you must specify the same starting location for both setAttribute and setDisplay.

 

Requirements

 

Inventu Viewer+

 

See Also

 

setDisplay

 

Applies To: HostScreen object

 


© 2022 Inventu Corporation