home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.lang.pascal
- Path: sparky!uunet!utcsri!newsflash.concordia.ca!sifon!thunder.mcrcim.mcgill.edu!poly-vlsi!music.mus.polymtl.ca
- From: Steph <CT80@music.mus.polymtl.ca>
- Subject: Re: TV: Limited display and menu def.
- Message-ID: <09NOV92.16793644.0072@music.mus.polymtl.ca>
- Lines: 53
- Sender: usenet@music.mus.polymtl.ca
- Organization: Ecole Polytechnique de Montreal
- References: <07NOV92.14892046.0046@music.mus.polymtl.ca> <27315@oasys.dt.navy.mil>
- Date: Mon, 9 Nov 1992 20:32:58 GMT
-
- In article <27315@oasys.dt.navy.mil> roth@oasys.dt.navy.mil (Pete Roth) writes:
- >In comp.lang.pascal, CT80@music.mus.polymtl.ca (Steph) writes:
- >>I have two questions regarding Turbo Vision. I'll start with the
- >>basic one:
- >>
- >>- What is the menu definition to make it that, once a user has
- >> executed a sub-menu, the actual menu stays there until you
- >> press ESC?
- >[...]
- >
- >There is none.
- >The behavior you desire can be approximated by
- >setting up an event like
- >var E : TEvent ;
- > E.What := evCommand;
- > E.Command := cmYourMenuCommand;
- > PutEvent(E);
- >in the procedure that handled the last submenu command.
- >The menu system gets redrawn.
- >
-
- Hmmm, would this be considered as a .. hack? :) Thanks, I'll try
- it. I find it odd that they didn't included an option like this,
- especially since even the IDE makes use of this (some of the
- option sub-menus don't make the option menu disappear).
-
- >>- When EXECing programs from TP/TV, is there a way to limit the
- >> child process' actual screen area? For instance, define a
- >> window in TV then call a batch file that only writes in the
- >> window defined by TV.
- >
- >Make a TTerminal the interior of a Twindow and use AssignDevice to
- >put the file output into YourTTerminal.
- >
- >regards, pete
- >- - - - - - - - - - - - - - - - - - - - - - - - - -
- >Peter N Roth roth@oasys.dt.navy.mil
- >You can take a horse to water, but a pencil must be lead.
- >.
- >.
-
- Hmmm, I'll give it a try, although I'm not sure that is exactly
- what I had in mind. See, the child process is a batch file that
- calls up other programs (all simple DOS text-based utilities) then
- come back. What I want is the output of those utilities to be
- well-behaved and stay in one of the windows. As well, the output
- should not be piped and then printed out, I want it printed out
- as-it-happens. Not sure what you gave me would do this..
-
- Thanks,
-
- Steph.
- Who needs a .sig?
-