* Title: WAM (Window Action Menu) * Author: Jeff Shrager * Support: Jeff Shrager (Shrager.PA@Xerox) * Source: {Eris}WAM. * DCom: {Eris}WAM.DCOM * Doc: {Eris}WAM.TED * Status: Semi-supported, Public. * Description: WAM can be used to attach an iconic menu to any window. This menu (attached to the left or right of the target window) contains various icons, that refer to the window action menu commands: CLOSE (a door closing), REDISPLAY (a paint brush), SHRINK (a shirking window icon), and MOVE (a window on wheels). * Use: (WAM [window] [border={LEFT/RIGHT}]) If window is nil, (WHICHW) is used. Border defaults to "RIGHT". Simply select the icon, to call the appropriate window action function. I use it by adding "wamify" to my WindowMenuCommands, which, when selected, calls WAM. This makes it easy to add a window action memu to any window. * Notes: My icons are horrible. Anyone wishing to hack them, may feel free. The action menu gets reshaped a little bizarrely, by virtue of the way that attache windows work. You can use TOP and BOTTOM for the "edge" argument, but boy will you be surprised by the result. * Recommended enhancements: Fix the icons. Make the attached window (menu) respond correctly to repaint so that it fixes its width appropriately. Permit TOP and BOTTOM for attachement. From: Acuff.pa Subject: WAM To: Shrager cc: Acuff.pa You use (WHICHW) in the WAM menu items. This can lose if you've moved the mouse in the mean time (ie. when waiting for the handler to be swapped in). You might want to use (WFROMMENU FROMMENU). DEFAULTWHENSELECTEDFN binds FROMMENU. -- Rich From: Acuff.pa Subject: WAM To: Shrager cc: Acuff.pa I think that "Close" selected from the window menu in a WAM window should close the WAM only, thus giving a way of getting rid of it. Probably something like WFN would do itWFN would do on CLOSEWFN would do * Update history: 7/12/84: Jeff Shrager: Created. Œ TIMESROMAN  TIMESROMAN 5 TIMESROMAN Âz¸