Tk::Mwm - Communicate with the Motif(tm) window manager.
use Tk::Mwm;
$toplevel->mwmOption?(args)?
$toplevel->mwm(option ?,args?)
Interface to special extentions supported by mwm.
Add a new mwm protocol message for this toplevel window. The message is identified by the string name specified in protocol_name. A menu item will be added into mwm's menu as specified by menu_message. Once a new mwm protocol message is added to a toplevel, it can be caught by the TK protocol method. Here is an example:
$toplevel->mwmProtocol('add' => 'MY_PRINT_HELLO', '"Print Hello" _H Ctrl<Key>H');
$toplevel->protocol('MY_PRINT_HELLO' => sub {print "Hello"});
Delete the mwm protocol message from mwm's menu. Please note that the window manager protocol handler associated with this protocol (by the protocol method) is not deleted automatically. You have to delete the protocol handle explicitly. E.g.:
$mw->mwmProtocol('delete' => 'MY_PRINT_HELLO');
$mw->protocol('MY_PRINT_HELLO' => '');
This is a Tix extension which perl/Tk has adopted. It has not been tested as perl/Tk's author has not got round to installing a Motif Window Manager.
On some versions of mwm, the -border will not disappear unless -resizeh is turned off. Also, the -title will not disappear unless all of -title, -menu, -maximize and -minimize are turned off.
window manager, mwm, TIX
Ioi Kim Lam - ioi@graphics.cis.upenn.edu