Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

xmmainwindowsetareas(3x) [osf1 man page]

XmMainWindowSetAreas(3X)												  XmMainWindowSetAreas(3X)

NAME
XmMainWindowSetAreas - A MainWindow function that identifies manageable children for each area SYNOPSIS
#include <Xm/MainW.h> void XmMainWindowSetAreas (widget, menu_bar, command_window, horizontal_scrollbar, vertical_scrollbar, work_region) Widget widget; Widget menu_bar; Widget command_window; Widget horizontal_scrollbar; Widget vertical_scrollbar; Widget work_region; DESCRIPTION
XmMainWindowSetAreas identifies which of the valid children for each area (such as the MenuBar and work region) are to be actively managed by MainWindow. This function also sets up or adds the MenuBar, work window, command window, and ScrollBar widgets to the application's main window widget. Each area is optional; therefore, the user can pass NULL to one or more of the following arguments. The window manager provides the title bar. Specifies the MainWindow widget ID. Specifies the widget ID for the MenuBar to be associated with the MainWindow widget. Set this ID only after creating an instance of the MainWindow widget. The attribute name associated with this argument is XmNmenuBar. Specifies the widget ID for the command window to be associated with the MainWindow widget. Set this ID only after creating an instance of the Main- Window widget. The attribute name associated with this argument is XmNcommandWindow. Specifies the ScrollBar widget ID for the horizontal ScrollBar to be associated with the MainWindow widget. Set this ID only after creating an instance of the MainWindow widget. The attribute name associated with this argument is XmNhorizontalScrollBar. Specifies the ScrollBar widget ID for the vertical ScrollBar to be associated with the MainWindow widget. Set this ID only after creating an instance of the MainWindow widget. The attribute name associ- ated with this argument is XmNverticalScrollBar. Specifies the widget ID for the work window to be associated with the MainWindow widget. Set this ID only after creating an instance of the MainWindow widget. The attribute name associated with this argument is XmNworkWindow. For a complete definition of MainWindow and its associated resources, see XmMainWindow(3X). SEE ALSO
XmMainWindow(3X) XmMainWindowSetAreas(3X)

Check Out this Related Man Page

MainWindow(3)						User Contributed Perl Documentation					     MainWindow(3)

NAME
Tk::MainWindow - Root widget of a widget tree SYNOPSIS
use Tk; my $mw = MainWindow->new( ... options ... ); my $this = $mw->ThisWidget -> pack ; my $that = $mw->ThatWidget; ... MainLoop; DESCRIPTION
Perl/Tk applications (which have windows associated with them) create one or more MainWindows which act as the containers and parents of the other widgets. Tk::MainWindow is a special kind of Toplevel widget. It is the root of a widget tree. Therefore "$mw->Parent" returns "undef". The default title of a MainWindow is the basename of the script (actually the Class name used for options lookup, i.e. with basename with inital caps) or 'Ptk' as the fallback value. If more than one MainWindow is created or several instances of the script are running at the same time the string " #n" is appended where the number "n" is set to get a unique value. Unlike the standard Tcl/Tk's wish, perl/Tk allows you to create several MainWindows. When the last MainWindow is destroyed the Tk eventloop exits (the eventloop is entered with the call of "MainLoop"). Various resources (bindings, fonts, images, colors) are maintained or cached for each MainWindow, so each MainWindow consumes more resources than a Toplevel. However multiple MainWindows can make sense when the user can destroy them independently. METHODS
You can apply all methods that a Toplevel widget accepts. The method $w->MainWindow applied to any widget will return the MainWindow to which the widget belongs (the MainWindow belongs to itself). MISSING
Documentation is incomplete. Here are some missing items that should be explained in more detail: o The new mechanism for MainWindows is slightly different to other widgets. o There no explanation about what resources are bound to a MainWindow (e.g., ClassInit done per MainWindow) o Passing of command line options to override or augment arguments of the "new" method (see Tk::CmdLine). SEE ALSO
Tk::Toplevel Tk::CmdLine perl v5.16.3 2014-06-10 MainWindow(3)
Man Page