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