home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.lang.c++
- Path: sparky!uunet!usc!rpi!scott.skidmore.edu!pvonk
- From: pvonk@scott.skidmore.edu (Pierre VonKaenel)
- Subject: TMenuBox ? in TVision
- Message-ID: <1992Jul28.124544.23107@scott.skidmore.edu>
- Organization: Skidmore College, Saratoga Springs NY, 12866
- Date: Tue, 28 Jul 1992 12:45:44 GMT
- Lines: 39
-
- I'm using Borland's Turbo Vision to write a menu program for our
- department. I have a TMenuBar defined with appropriate submenus.
- What I need is a sub-submenu (or a pop up menu) and it seems TMenuBox
- should do the trick. Unfortunately, there are no examples for using
- this class. I tried to create is ala TMenuBar (the constructors use
- the same types of parameters), but get errors when I do
-
- *new TMenuBox( TRect[..stuff..], *new TSubMenu(....) ) ...
- or *new TMenuBox( TRect[ ... ], *new TMenuItem(...) ) ...
-
- It expects a TMenu type for the second parameter. This is how
- TMenuBar is defined, it using TSubMenu works for it.
-
- Even if the above worked, it's not clear how a TMenuBox is started,
- since TMenuBar is executed via the initMenuBar function of the
- application.
-
- All I want is a popup menu that looks similar to the following (I've
- included the menu bar and a submenu for a simplified version)
-
- | Apps | Utils | ...
- +-------+-----------|--
- |Languages | <- chosen-
- |Math apps | |
- +-----------+ | popup menu results.
- v
- +------------+
- | Pascal |
- | Basic |
- +------------+
-
-
- Is TMenuBox the appropriate class to use?
-
- --
- Pierre von Kaenel | Skidmore College | pvonk@scott.skidmore.edu
- Math & CS Dept. | Saratoga Springs, NY 12866 | (518)584-5000 Ext 2391
- When asked his position on euthanasia, our local state rep. responded:
- "I support youth all over the world."
-