home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #18 / NN_1992_18.iso / spool / comp / windows / openloo / 3567 < prev    next >
Encoding:
Text File  |  1992-08-22  |  2.8 KB  |  66 lines

  1. Newsgroups: comp.windows.open-look
  2. Path: sparky!uunet!iWarp.intel.com|ichips!tmcconne
  3. From: tmcconne@sedona.intel.com (Tom McConnell)
  4. Subject: Re: OPEN LOOK GUI frequently asked questions - detecting olwm?
  5. Message-ID: <1992Aug23.062323.23053@ichips.intel.com>
  6. Originator: tmcconne@sedona
  7. Sender: tmcconne@sedona (Tom McConnell)
  8. Reply-To: tmcconne@sedona.intel.com
  9. Organization: Intel Corporation
  10. References: <1992Jul16.044210.28779@sq.sq.com> <r5-m#wb.jef@netcom.com> <BUZZ.92Jul20091435@toxicavenger.bear.com>
  11. Date: Sun, 23 Aug 1992 06:23:23 GMT
  12. Lines: 52
  13.  
  14.  
  15. In article <BUZZ.92Jul20091435@toxicavenger.bear.com>, buzz@toxicavenger.bear.com (Buzz Moschetti) writes:
  16. > In article <r5-m#wb.jef@netcom.com> jef@netcom.com (Jef Poskanzer) writes:
  17. >    lee@sq.sq.com (Liam R. E. Quin):
  18. >    }    If you use twm, you'll want to use the f.delete function to unpin menus
  19. >    }    and get rid of programs that don't have a `quit' button when not run
  20. >    }    under olwm.
  21. >    If I'm reading this right, it implies there's a way for programs to
  22. >    detect when they're not run under olwm and to put up a `quit' button
  23. >    in that case.  Yes?  I would really like to know how to do this.
  24. >    ---
  25. >    Jef
  26. > Not quite.  ol(v)wm gives you Quit functionality in the window manager, so
  27. > apps developed in this environment for use in this environment do not need
  28. > custom quit buttons.  If you run one of these quit-less apps in twm, you 
  29. > need a way to kill off the app since by default twm does not provide the OL
  30. > standard Close/Move/Resize/Quit pulldown.  The twm f.delete function may be
  31. > bound to a key (or a menu entry) to kill off these windows.
  32. > The "easiest" way to protect yourself from variances in window manager
  33. > functionality is to simply add buttons and/or menu entries in the app itself.
  34. > Their use will be redundant under ol(v)wm and necessary under twm, mwm, etc.
  35.  
  36.   This is all about the window manager, not the application. ol(v)wm's Quit is
  37. identical in action as twm's f.delete (this has already been mentioned by 
  38. Larry W. Virden <lvirden@cas.org>).
  39.  
  40.   It seems to me that the way to make the application window manager independent
  41. would be to put f.delete in a twm title menu, thus making the application
  42. look the same to the user, regardless of the window manager he is running
  43. the application under. This is done in .twmrc (.tvtwmrc for you tvtwm folks):
  44.  
  45.         # Add a menu to each window managed by twm or tvtwm
  46.         LeftTitleButton ":menu" = f.menu "OL.menu"
  47.  
  48.         menu "OL.menu" {
  49.         "Quit"         f.delete
  50.         }
  51.  
  52.   I use it all the time, works fine.
  53.  
  54.     Cheers,
  55.  
  56.     Tom McConnell
  57. -- 
  58.  Tom McConnell          |     Internet: tmcconne@sedona.intel.com
  59.  Intel, Corp. C3-21     |     Phone: (602)-554-8229
  60.  5000 W. Chandler Blvd. | The opinions expressed are my own. No one in 
  61.  Chandler, AZ  85226    | their right mind would claim them.
  62.