home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #16 / NN_1992_16.iso / spool / comp / os / msdos / programm / 8129 < prev    next >
Encoding:
Text File  |  1992-07-28  |  2.0 KB  |  58 lines

  1. Newsgroups: comp.os.msdos.programmer
  2. Path: sparky!uunet!usc!rpi!scott.skidmore.edu!pvonk
  3. From: pvonk@scott.skidmore.edu (Pierre VonKaenel)
  4. Subject: TMenuBox in TVision C++
  5. Message-ID: <1992Jul28.125304.23209@scott.skidmore.edu>
  6. Organization: Skidmore College, Saratoga Springs NY, 12866
  7. Date: Tue, 28 Jul 1992 12:53:04 GMT
  8. Lines: 48
  9.  
  10.  
  11. I'm using Borland's Turbo Vision (C++ version) to write a menu program
  12. for our department.  I have a TMenuBar defined with appropriate
  13. submenus.  What I need is a sub-submenu (or a pop up menu) and it
  14. seems TMenuBox should do the trick.  Unfortunately, there are no
  15. examples for using this class.  I tried to create it ala TMenuBar (the
  16. constructors use the same types of parameters), but get errors when I
  17. do
  18.  
  19.     *new TMenuBox( TRect[..stuff..], *new TSubMenu(....) ) ...
  20. or    *new TMenuBox( TRect[ ...     ], *new TMenuItem(...) ) ...
  21.  
  22. It expects a TMenu type for the second parameter.  This is how
  23. TMenuBar is defined, but using TSubMenu works for it.
  24.  
  25. Even if the above worked, it's not clear how a TMenuBox is started,
  26. since TMenuBar is executed via the initMenuBar function of the
  27. application.
  28.  
  29. All I want is a popup menu that looks similar to the following (I've
  30. included the menu bar and a submenu of a simplified example)
  31.  
  32.     | Apps    |  Utils    | ...
  33.     +-------+-----------|--
  34.     |Languages  | <- chosen-
  35.     |Math apps  |           |
  36.     +-----------+           | popup menu results.
  37.                                 v
  38.             +------------+
  39.             | Pascal     |
  40.             | Basic         |
  41.             +------------+
  42.  
  43.  
  44. Is TMenuBox the appropriate class to use?
  45.  
  46. -- 
  47. Pierre von Kaenel    | Skidmore College         | pvonk@scott.skidmore.edu
  48. Math & CS Dept.        | Saratoga Springs, NY 12866 | (518)584-5000 Ext 2391
  49. When asked his position on euthanasia, our local state rep. responded:
  50. "I support youth all over the world."
  51.  
  52.  
  53. -- 
  54. Pierre von Kaenel    | Skidmore College         | pvonk@scott.skidmore.edu
  55. Math & CS Dept.        | Saratoga Springs, NY 12866 | (518)584-5000 Ext 2391
  56. When asked his position on euthanasia, our local state rep. responded:
  57. "I support youth all over the world."
  58.