1MrmFetchWidget(library call) MrmFetchWidget(library call)
2
3
4
6 MrmFetchWidget — Fetches and creates an indexed (UIL named) application
7 widget and its children
8
10 #include <Mrm/MrmPublic.h>
11 Cardinal MrmFetchWidget(
12 MrmHierarchy hierarchy_id,
13 String index,
14 Widget parent_widget,
15 Widget *widget,
16 MrmType *class);
17
19 The MrmFetchWidget function fetches and creates an indexed application
20 widget and its children. The indexed application widget is any widget
21 that is named in UIL. In fetch operations, the fetched widget's sub‐
22 tree is also fetched and created. This widget must not appear as the
23 child of a widget within its own subtree. MrmFetchWidget does not exe‐
24 cute XtManageChild for the newly created widget.
25
26 All widgets fetched by a call to MrmFetchWidget are not managed at the
27 time of their creation callbacks.
28
29 hierarchy_id
30 Specifies the ID of the UID hierarchy that contains the
31 interface definition. The value of hierarchy_id was returned
32 in a previous call to MrmOpenHierarchyPerDisplay.
33
34 index Specifies the UIL name of the widget to fetch.
35
36 parent_widget
37 Specifies the parent widget ID.
38
39 widget Returns the widget ID of the created widget.
40
41 class This argument must be set to an actual pointer; it cannot be
42 a NULL pointer. MrmFetchWidget sets this argument to an
43 implementation dependent value.
44
45 An application can fetch any named widget in the UID hierarchy using
46 MrmFetchWidget. MrmFetchWidget can be called at any time to fetch a
47 widget that was not fetched at application startup. MrmFetchWidget can
48 be used to defer fetching pop-up widgets until they are first refer‐
49 enced (presumably in a callback), and then used to fetch them once.
50
51 MrmFetchWidget can also create multiple instances of a widget (and its
52 subtree). In this case, the UID definition functions as a template; a
53 widget definition can be fetched any number of times. An application
54 can use this template to make multiple instances of a widget, for exam‐
55 ple, in a dialog box box or menu.
56
57 The index (UIL name) that identifies the widget must be known to the
58 application.
59
61 This function returns one of the following status return constants:
62
63 MrmSUCCESS
64 The function executed successfully.
65
66 MrmBAD_HIERARCHY
67 The hierarchy ID was invalid.
68
69 MrmNOT_FOUND
70 The widget was not found in UID hierarchy.
71
72 MrmFAILURE
73 The function failed.
74
76 MrmOpenHierarchyPerDisplay(3), MrmFetchWidgetOverride(3).
77
78
79
80 MrmFetchWidget(library call)