home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #26 / NN_1992_26.iso / spool / comp / lang / pascal / 6447 < prev    next >
Encoding:
Text File  |  1992-11-09  |  2.3 KB  |  65 lines

  1. Newsgroups: comp.lang.pascal
  2. Path: sparky!uunet!utcsri!newsflash.concordia.ca!sifon!thunder.mcrcim.mcgill.edu!poly-vlsi!music.mus.polymtl.ca
  3. From: Steph <CT80@music.mus.polymtl.ca>
  4. Subject: Re: TV: Limited display and menu def.
  5. Message-ID: <09NOV92.16793644.0072@music.mus.polymtl.ca>
  6. Lines: 53
  7. Sender: usenet@music.mus.polymtl.ca
  8. Organization: Ecole Polytechnique de Montreal
  9. References: <07NOV92.14892046.0046@music.mus.polymtl.ca> <27315@oasys.dt.navy.mil>
  10. Date: Mon, 9 Nov 1992 20:32:58 GMT
  11.  
  12. In article <27315@oasys.dt.navy.mil> roth@oasys.dt.navy.mil (Pete Roth) writes:
  13. >In comp.lang.pascal, CT80@music.mus.polymtl.ca (Steph) writes:
  14. >>I have two questions regarding Turbo Vision.  I'll start with the
  15. >>basic one:
  16. >>
  17. >>- What is the menu definition to make it that, once a user has
  18. >>  executed a sub-menu, the actual menu stays there until you
  19. >>  press ESC?
  20. >[...]
  21. >
  22. >There is none.
  23. >The behavior you desire can be approximated by
  24. >setting up an event like
  25. >var E : TEvent ;
  26. > E.What := evCommand;
  27. > E.Command := cmYourMenuCommand;
  28. > PutEvent(E);
  29. >in the procedure that handled the last submenu command.
  30. >The menu system gets redrawn.
  31. >
  32.  
  33. Hmmm, would this be considered as a .. hack?  :)  Thanks, I'll try
  34. it.  I find it odd that they didn't included an option like this,
  35. especially since even the IDE makes use of this (some of the
  36. option sub-menus don't make the option menu disappear).
  37.  
  38. >>- When EXECing programs from TP/TV, is there a way to limit the
  39. >>  child process' actual screen area?  For instance, define a
  40. >>  window in TV then call a batch file that only writes in the
  41. >>  window defined by TV.
  42. >
  43. >Make a TTerminal the interior of a Twindow and use AssignDevice to
  44. >put the file output into YourTTerminal.
  45. >
  46. >regards, pete
  47. >- - - - - - - - - - - - - - - - - - - - - - - - - -
  48. >Peter N Roth      roth@oasys.dt.navy.mil
  49. >You can take a horse to water, but a pencil must be lead.
  50. >.
  51. >.
  52.  
  53. Hmmm, I'll give it a try, although I'm not sure that is exactly
  54. what I had in mind.  See, the child process is a batch file that
  55. calls up other programs (all simple DOS text-based utilities) then
  56. come back.  What I want is the output of those utilities to be
  57. well-behaved and stay in one of the windows.  As well, the output
  58. should not be piped and then printed out, I want it printed out
  59. as-it-happens.  Not sure what you gave me would do this..
  60.  
  61. Thanks,
  62.  
  63. Steph.
  64. Who needs a .sig?
  65.