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