1XmMainWindowSetAreas(library call) XmMainWindowSetAreas(library call)
2
3
4
6 XmMainWindowSetAreas — A MainWindow function that identifies manageable
7 children for each area
8
10 #include <Xm/MainW.h>
11 void XmMainWindowSetAreas(
12 Widget widget,
13 Widget menu_bar,
14 Widget command_window,
15 Widget horizontal_scrollbar,
16 Widget vertical_scrollbar,
17 Widget work_region);
18
20 XmMainWindowSetAreas identifies which of the valid children for each
21 area (such as the MenuBar and work region) are to be actively managed
22 by MainWindow. This function also sets up or adds the MenuBar, work
23 window, command window, and ScrollBar widgets to the application's main
24 window widget.
25
26 Each area is optional; therefore, the user can pass NULL to one or more
27 of the following arguments. The window manager provides the title bar.
28
29 NOTE: XmMainWindowSetAreas is obsolete and exists for compatibility
30 with previous releases. The information previously returned by this
31 function can now be obtained through a call to XtGetValues on the XmN‐
32 scrolledWindowChildType resource.
33
34 widget Specifies the MainWindow widget ID.
35
36 menu_bar Specifies the widget ID for the MenuBar to be associated with
37 the MainWindow widget. Set this ID only after creating an
38 instance of the MainWindow widget. The attribute name associ‐
39 ated with this argument is XmNmenuBar.
40
41 command_window
42 Specifies the widget ID for the command window to be associ‐
43 ated with the MainWindow widget. Set this ID only after cre‐
44 ating an instance of the MainWindow widget. The attribute
45 name associated with this argument is XmNcommandWindow.
46
47 horizontal_scrollbar
48 Specifies the ScrollBar widget ID for the horizontal Scroll‐
49 Bar to be associated with the MainWindow widget. Set this ID
50 only after creating an instance of the MainWindow widget. The
51 attribute name associated with this argument is XmNhorizon‐
52 talScrollBar.
53
54 vertical_scrollbar
55 Specifies the ScrollBar widget ID for the vertical ScrollBar
56 to be associated with the MainWindow widget. Set this ID only
57 after creating an instance of the MainWindow widget. The
58 attribute name associated with this argument is XmNverti‐
59 calScrollBar.
60
61 work_region
62 Specifies the widget ID for the work window to be associated
63 with the MainWindow widget. Set this ID only after creating
64 an instance of the MainWindow widget. The attribute name
65 associated with this argument is XmNworkWindow.
66
67 For a complete definition of MainWindow and its associated resources,
68 see XmMainWindow(3).
69
71 XmMainWindow(3).
72
73
74
75 XmMainWindowSetAreas(library call)