home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #26 / NN_1992_26.iso / spool / comp / lang / pascal / 6419 < prev    next >
Encoding:
Internet Message Format  |  1992-11-09  |  1.4 KB

  1. Path: sparky!uunet!zaphod.mps.ohio-state.edu!darwin.sura.net!dtix!oasys!roth
  2. From: roth@oasys.dt.navy.mil (Pete Roth)
  3. Newsgroups: comp.lang.pascal
  4. Subject: Re: TV: Limited display and menu def.
  5. Message-ID: <27315@oasys.dt.navy.mil>
  6. Date: 9 Nov 92 13:03:33 GMT
  7. References: <07NOV92.14892046.0046@music.mus.polymtl.ca>
  8. Reply-To: roth@oasys.dt.navy.mil (Pete Roth)
  9. Organization: The David Taylor Model Basin
  10. Lines: 31
  11.  
  12. In comp.lang.pascal, CT80@music.mus.polymtl.ca (Steph) writes:
  13. >I have two questions regarding Turbo Vision.  I'll start with the
  14. >basic one:
  15. >
  16. >- What is the menu definition to make it that, once a user has
  17. >  executed a sub-menu, the actual menu stays there until you
  18. >  press ESC?
  19. [...]
  20.  
  21. There is none.
  22. The behavior you desire can be approximated by
  23. setting up an event like
  24. var E : TEvent ;
  25.  E.What := evCommand;
  26.  E.Command := cmYourMenuCommand;
  27.  PutEvent(E);
  28. in the procedure that handled the last submenu command.
  29. The menu system gets redrawn.
  30.  
  31. >- When EXECing programs from TP/TV, is there a way to limit the
  32. >  child process' actual screen area?  For instance, define a
  33. >  window in TV then call a batch file that only writes in the
  34. >  window defined by TV.
  35.  
  36. Make a TTerminal the interior of a Twindow and use AssignDevice to
  37. put the file output into YourTTerminal.
  38.  
  39. regards, pete
  40. - - - - - - - - - - - - - - - - - - - - - - - - - -
  41. Peter N Roth      roth@oasys.dt.navy.mil
  42. You can take a horse to water, but a pencil must be lead.
  43.