home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #31 / NN_1992_31.iso / spool / alt / toolkits / xview / 1170 < prev    next >
Encoding:
Internet Message Format  |  1993-01-02  |  1.6 KB

  1. Path: sparky!uunet!haven.umd.edu!mimsy!afterlife!dpkemp
  2. From: dpkemp@afterlife.ncsc.mil (David P. Kemp)
  3. Newsgroups: alt.toolkits.xview
  4. Subject: Devguide 3.0 generates excessive menu code?
  5. Message-ID: <1993Jan3.014814.22437@afterlife.ncsc.mil>
  6. Date: 3 Jan 93 01:48:14 GMT
  7. Organization: The Great Beyond
  8. Lines: 29
  9.  
  10. Is there any way to coerce the Devguide 3.0 connection manager to
  11. create a MENU_NOTIFY_PROC?
  12.  
  13. Under the connection manager, I specify a source and target menu item,
  14. specify When: Notify, and Op: CallFunction.  In response to this, gxv
  15. generates a MENU_GEN_PROC entry in xxx_ui.h, and a huge (well, ~15 lines)
  16. block of code for *each* menu item in xxx_stubs.c.  Each code block
  17. contains a switch selecting actions from MENU_DISPLAY, MENU_DISPLAY_DONE,
  18. MENU_NOTIFY, and MENU_NOTIFY_DONE.
  19.  
  20. The proper behavior can be attained by putting code inside the MENU_NOTIFY
  21. section of the switch, but there is certainly a lot of extra rubbish
  22. hanging around for no reason.  All that extra code and all those extra
  23. calls could be avoided if gxv would just generate a MENU_NOTIFY_PROC
  24. instead of a MENU_GEN_PROC in the first place.
  25.  
  26. This is not really a big deal, since memory is cheap and cycles are
  27. getting faster each year.  I just find it offensive that the tools we
  28. use to develop applications encourage such waste for no reason.
  29.  
  30. Am I misusing Devguide?
  31. If not, can this be fixed an a future release?
  32. Or should we all forget about Xview and switch to OLIT?
  33.  
  34. -- 
  35.    Dave Kemp   dpkemp@afterlife.ncsc.mil 
  36. -----------------------------------------------------------------------------
  37. "Washington [D.C.] is a city of Southern efficiency and Northern charm"
  38.      -- John F. Kennedy
  39.