home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #31 / NN_1992_31.iso / spool / comp / lang / pascal / 7810 < prev    next >
Encoding:
Text File  |  1993-01-02  |  2.6 KB  |  62 lines

  1. Newsgroups: comp.lang.pascal
  2. Path: sparky!uunet!spool.mu.edu!wupost!emory!swrinde!gatech!taco!csemail.cropsci.ncsu.edu!samodena
  3. From: samodena@csemail.cropsci.ncsu.edu (S. A. Modena)
  4. Subject: Re: BP7,TV,and Uncloseable Windows
  5. Message-ID: <1993Jan2.222910.14111@ncsu.edu>
  6. Sender: news@ncsu.edu (USENET News System)
  7. Organization: Crop Science Dept., NCSU, Raleigh, NC 27695-7620
  8. References: <b132mfp@rpi.edu>
  9. Date: Sat, 2 Jan 1993 22:29:10 GMT
  10. Lines: 50
  11.  
  12. In article <b132mfp@rpi.edu> pribik@aix.rpi.edu (Kristen Anne Pribis) writes:
  13. >One more question...How do I create a window that can't be 
  14. >closed, 
  15.  
  16. TWindow has a field called "Flags" and the wfClose bit controls whether
  17. the "Close Icon" appears on the upper left TFrame.  Clear this bit,
  18. but remember that kbEsc will still close the window, so remember to
  19. over ride the HandleEvent() for the window to nullify it's action.
  20.  
  21. > ................and will accept input (a string from 60-120 characters 
  22. >long, or F3) without displaying it on screen.
  23.  
  24. Override the TView.Draw of the Window's Interior with the TV procedures
  25. MoveBuf, MoveChar, MoveCStr, MoveStr which allow you to set foreground
  26. and background color attributes independent of the standard TView
  27. Pallette......so by making the foreground and background the *same* color,
  28. one can not "see" what is written to the screen.
  29.  
  30. >
  31. >This relates to my past several questions about TurboVision.  I 
  32. >have found it easy to create data entry screens and simple 
  33. >dialog boxes, but you can close any of them by clicking in the 
  34. >corner, and what you type is displayed.
  35.  
  36. Your code should be sensitive to the state of the Dialog or Window:
  37. if the user closes a data entry dialog, data input ought to cease.  :^)
  38. You might even pop a warning with something like: Hey! What are you 
  39. doing?!  ;^)
  40.  
  41. >
  42. >Source code would be _greatly_ appreciated.
  43. >
  44. >Responses can be posted here, but preferably mailed to me at 
  45. >pribik@rpi.edu.
  46. >
  47. >Thanks to all of those who have helped me so far.
  48.  
  49. Steve
  50. ---
  51. +------------------------------------------------------------------+
  52. |     In person:  Steve Modena     AB4EL                           |
  53. |     On phone:   (919) 515-5328                                   |
  54. |     At e-mail:  nmodena@unity.ncsu.edu                           | 
  55. |                 samodena@csemail.cropsci.ncsu.edu                |
  56. |                 [ either email address is read each day ]        |
  57. |     By snail:   Crop Sci Dept, Box 7620, NCSU, Raleigh, NC 27695 |
  58. +------------------------------------------------------------------+
  59.          Lighten UP!  It's just a computer doing that to you.    (c)
  60. OOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOO
  61.          
  62.