Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- ClipOn 3.0 Reference - c_setattr() http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 C_SETATTR()

 DESCRIPTION

 C_SETATTR() changes the screen attribute at the specified area on
 the screen without rewriting the characters already on the screen.
 The screen color can be changed using a dBASE/Clipper color string,
 a numeric color code, or a predefined C_SETATTR() code to set
 blinking, high intensity, and reverse attributes.  (Refer to
 Appendix E for a complete list of numeric color codes).

 SYNTAX

 C_SETATTR(st_row, st_col, end_row, end_col, attribute)

 PARAMETERS

 st_row (N), st_col (N), end_row (N), and end_col (N) define the
 upper left and lower right screen coordinates to set the new attribute.

 attribute (C/N) is the color or attribute to change for the
 display.  The color can be given as a dBASE/Clipper color string or
 a numeric color code (see Appendix E).  attribute can also be
 specified using the C_SETATTR() codes, as follows:

 CODE         ATTRIBUTE
 ----         ---------
 "I" or -1    Set Reverse Video Bit
 "+" or -2    Set High Intensity Bit
 "*" or -3    Set Blink Bit
 "U" or -4    Set Underline Bit (For Monochrome Only)

 RETURNS

 There is no return value.

 EXAMPLES

 && Changes rectangle to high white on blue
 c_setattr(10,10,20,70,"W+/B")

 && Changes rectangle to high white on blue
 c_setattr(10,10,20,70,31)

 && Changes row 10, starting at column 0 and ending at column 79
 && to high intensity
 c_setattr(10,0,10,79,-2)

 && Changes row 10, starting at column 0 and ending at column 79
 && to reverse video, making a highlight bar across the screen
 c_setattr(10,0,10,79,"I")


See Also: C_GETATTR() C_CHGATTR() C_BOXATTR() C_CLS()

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson