home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / comp / lang / pascal / 8567 < prev    next >
Encoding:
Internet Message Format  |  1993-01-27  |  1.9 KB

  1. Path: sparky!uunet!ukma!gatech!nscf!lakes!kalki33!system
  2. From: system@kalki33.lakes.trenton.sc.us (Kalki Dasa)
  3. Newsgroups: comp.lang.pascal
  4. Subject: Text in graphics mode (TP 7.0)
  5. Message-ID: <Ju0XXB1w165w@kalki33.lakes.trenton.sc.us>
  6. Date: Mon, 25 Jan 93 15:38:18 EST
  7. Organization: Kalki's Infoline BBS, Aiken, SC, USA
  8. Lines: 47
  9.  
  10.  
  11. Problem:
  12.  
  13. The OutTextXY procedure simply writes over whatever is in the area
  14. specified without erasing the previous contents. I'm trying to implement
  15. a "counter" display that shows numbers as they increase/decrease.
  16.  
  17. Examples:
  18.  
  19. OutTextXY(0,0,'oldstring');    {This doesn't work}
  20. OutTextXY(0,0,'newstring');
  21.  
  22. 'newstring' is written over (apparently ORed with) 'oldstring' but
  23. 'oldstring' is not erased. The result is unreadable.
  24.  
  25. OutTextXY(0,0,'oldstring');
  26. OutTextXY(0,0,'         ');     {This doesn't work either}
  27. OutTextXY(0,0,'newstring');
  28.  
  29. The blank string is simply ORed with 'oldstring' and the result is the
  30. same as in the first example.
  31.  
  32. SetColor(white);
  33. OutTextXY(0,0,'oldstring');    {Works, but too much flicker this way}
  34. OutTextXY(0,0,'newstring');
  35. SetColor(black);
  36. OutTextXY(0,0,'oldstring');
  37. OutTextXY(0,0,'newstring');
  38.  
  39. I can do a SetViewPort...ClearViewport, but this also produces
  40. unacceptable flicker. The BitBlt constants in SetWriteMode do not work
  41. with text either.
  42.  
  43. What's the best solution?
  44.  
  45. Kalki Dasa
  46.  
  47.  
  48.        ---------------------------------------------------------
  49.       |                Don't forget to chant:                   |
  50.       |                                                         |
  51.       |  Hare Krishna Hare Krishna, Krishna Krishna Hare Hare   |
  52.       |       Hare Rama Hare Rama, Rama Rama Hare Hare          |
  53.       |                                                         |
  54.       |    Kalki's Infoline BBS Aiken, South Carolina, USA      |
  55.       |           (kalki@kalki33.lakes.trenton.sc.us)           |
  56.        ---------------------------------------------------------
  57.