home *** CD-ROM | disk | FTP | other *** search
/ Liren Large Software Subsidy 5 / 05.iso / a / a012 / 1.ddi / CHAP25.EXE / CHP2505.PRG < prev    next >
Encoding:
Text File  |  1991-06-12  |  670 b   |  30 lines

  1. /*
  2.    Listing 25.5. A browse cursor that flashes slowly.
  3.    Author: Craig Yellick
  4.    Excerpted from "Clipper 5: A Developer's Guide"
  5.    Copyright (c) 1991 M&T Books
  6.                       501 Galveston Drive
  7.                       Redwood City, CA 94063-4728
  8.                       (415) 366-3600
  9. */
  10.  
  11. function SlowFlash(browse)
  12. /*
  13.    A browse cursor that flashes slowly.
  14.    On for half a second, off for a quarter second.
  15. */
  16. local key
  17.   do while .t.
  18.     browse:hilite()
  19.     if (key := inkey(.5)) <> 0
  20.       exit
  21.     endif
  22.     browse:deHilite()
  23.     if (key := inkey(.25)) <> 0
  24.       exit
  25.     endif
  26.   enddo
  27. return key
  28.  
  29. // end of file CHP2505.PRG
  30.