Tk::Mwm man page on HP-UX

Man page or keyword search:  
man Server   10987 pages
apropos Keyword Search (all sections)
Output format
HP-UX logo
[printable version]

Mwm(3)		      User Contributed Perl Documentation		Mwm(3)

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

SYNOPSIS
	use Tk::Mwm;

	$toplevel->mwmOption?(args)?

	$toplevel->mwm(option ?,args?)

DESCRIPTION
       Interface to special extentions supported by mwm.

METHODS
       $toplevel->mwmDecoration?(?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 val‐
	   ues 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: -border, -menu, -maximize, -min‐
	   imize, -resizeh and -title. The value must be a Boolean value. The
	   values returned by this command are undefined when the window is
	   not managed by mwm.

       $toplevel->mwmIsmwmrunning
	   This returns value is true if mwm is running on the screen where
	   the specified window is located, false otherwise.

       $toplevel->mwmProtocol
	   When no additional options are given, this method returns all pro‐
	   tocols associated with this toplevel window.

       $toplevel->mwmProtocol(activate => protocol_name)
	   Activate the mwm protocol message in mwm's menu.

       $toplevel->MwmProtocol(add => protocol_name, menu_message)
	   Add a new mwm protocol message for this toplevel window. The mes‐
	   sage is identified by the string name specified in protocol_name.
	   A menu item will be added into mwm's menu as specified by menu_mes‐
	   sage.  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"});

       $toplevel->mwmProtocol('deactivate' => protocol_name)
	   Deactivate the mwm protocol message in mwm's menu.

       $toplevel->mwmProtocol('delete' => 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 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' => '');

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 Win‐
       dow 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.

SEE ALSO
       Tk::Wm Tk::tixWm Tk::Toplevel

KEYWORDS
       window manager, mwm, TIX

AUTHOR
       Ioi Kim Lam - ioi@graphics.cis.upenn.edu

perl v5.8.8			  2004-02-28				Mwm(3)
[top]

List of man pages available for HP-UX

Copyright (c) for man pages and the logo by the respective OS vendor.

For those who want to learn more, the polarhome community provides shell access and support.

[legal] [privacy] [GNU] [policy] [cookies] [netiquette] [sponsors] [FAQ]
Tweet
Polarhome, production since 1999.
Member of Polarhome portal.
Based on Fawad Halim's script.
....................................................................
Vote for polarhome
Free Shell Accounts :: the biggest list on the net