GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages


Manual Reference Pages  -  TK::MWM (3)

.ds Aq ’

NAME

Tk::Mwm - Communicate with the Motif(tm) window manager.

CONTENTS

SYNOPSIS

<B>use Tk::Mwm;B>

$toplevel-><B>mwmB>Option?(args)?

$toplevel-><B>mwmB>(option ?,args?)

DESCRIPTION

Interface to special extentions supported by mwm.

METHODS

$toplevel-><B>mwmDecorationB>?(?option??=>value? ?,...?)? When no options are given, this method returns the values of all the decorations options for the toplevel window with the $toplevel. When only one option is given without specifying the value, the current value of that option is returned. When more than one option-value pairs are passed to this method, the specified values will be assigned to the corresponding options. As a result, the appearance of the Motif decorations around the toplevel window will be changed. Possible options are: <B>-borderB>, <B>-menuB>, <B>-maximizeB>, <B>-minimizeB>, <B>-resizehB> and <B>-titleB>. The value must be a Boolean value. The values returned by this command are undefined when the window is not managed by mwm.
$toplevel-><B>mwmIsmwmrunningB> This returns value is true if mwm is running on the screen where the specified window is located, false otherwise.
$toplevel-><B>mwmProtocolB> When no additional options are given, this method returns all protocols associated with this toplevel window.
$toplevel-><B>mwmProtocolB>(<B>activateB> => protocol_name) Activate the mwm protocol message in mwm’s menu.
$toplevel-><B>MwmProtocolB>(<B>addB> => protocol_name, menu_message) 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 <B>protocolB> method. Here is an example:

$toplevel-><B>mwmProtocolB>(<B>’add’B> => ’MY_PRINT_HELLO’, ’Print Hello _H Ctrl<Key>H’);

$toplevel-><B>protocolB>(<B>’MY_PRINT_HELLOB> => sub {print Hello});

$toplevel-><B>mwmProtocolB>(<B>’deactivate’B> => protocol_name) Deactivate the mwm protocol message in mwm’s menu.
$toplevel-><B>mwmProtocolB>(<B>’delete’B> => protocol_name) Delete the mwm protocol message from mwm’s menu. Please note that the window manager protocol handler associated with this protocol (by the <B>protocolB> method) is not deleted automatically. You have to delete the protocol handle explicitly. E.g.:

$mw-><B>mwmProtocolB>(<B>’delete’B> => ’MY_PRINT_HELLO’);

$mw-><B>protocolB>(<B>’MY_PRINT_HELLOB> => ’’);

BUGS

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 <B>-borderB> will not disappear unless <B>-resizehB> is turned off. Also, the <B>-titleB> will not disappear unless all of <B>-titleB>, <B>-menuB>, <B>-maximizeB> and <B>-minimizeB> are turned off.

SEE ALSO

Tk::Wm Tk::tixWm Tk::Toplevel

KEYWORDS

window manager, mwm, TIX

AUTHOR

Ioi Kim Lam - ioi@graphics.cis.upenn.edu
Search for    or go to Top of page |  Section 3 |  Main Index


perl v5.20.3 MWM (3) 2013-11-15

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with manServer 1.07.