xHarbour Reference Documentation > Function Reference |
Determines how to treat the asterisk in a SetColor() string.
SetBlink( [<lOnOff>] ) --> lOldSetting
The function returns the setting which is active before SetBlink() is called.
SetBlink() is a compatibility function which toggles interpretation of the blink attribute (*) if it is specified for the backgroud color of a SetColor() string. The blink attribute is only relevant when an application runs in full screen text mode. In addition, its availability is operating system dependent.
If the blink attribute is not supported by the operating system, the asterisk (*) is treated like the high intensity color attribute (+).
See also: | ColorSelect(), SetColor() |
Category: | Screen functions |
Source: | rtl\setcolor.c |
LIB: | xhb.lib |
DLL: | xhbdll.dll |
// The example displays text with the SetBlink() setting on and off. PROCEDURE Main CLS SetColor( "N/GR*" ) @ 0, 0 CLEAR TO 2, MaxCol() ? "Blink attribute is:", SetBlink() WAIT "Press a key to toggle blink attribute" SetBlink( .NOT. SetBlink() ) @ 0, 0 CLEAR TO 2, MaxCol() ? "Blink attribute is:", SetBlink() WAIT "Press a key to end" RETURN
http://www.xHarbour.com