initialize_hook() initialize_hook()
Name
initialize_hook - obsolete Object method for initializing subpart data.
Synopsis
typedef void (*XtArgsProc)(Widget, ArgList, Cardinal *);
Widget w;
ArgList args;
Cardinal *num_args;
Inputs
w Specifies the newly created widget.
args Specifies the argument list that was passed to XtCreateWidget().
num_args Specifies the number of arguments in the argument list.
Availability
Obsolete in Release 4 and later.
Description
The initialize_hook() method is registered on the initialize_hook field of the Object, RectObj, or Core class part structure, and is called
by XtCreateWidget().
As of Release 4, the initialize_hook() method is obsolete because all of its arguments are now passed to the initialize() method. Its pur-
pose had been to allow the widget class to use the argument list to initialize fields that did not appear in the class resource list, by
calling XtSetSubvalues(), for example.
The initialize_hook() method is chained in superclass-to-subclass order and is called for compatibility with older widgets. It cannot be
inherited and new widgets should set their initialize_hook field to NULL. See XtCreateWidget(1) for details on when it is called. See
initialize(4) for more information on initializing subparts or other fields that do not appear in the class resource list.
See AlsoXtCreateWidget(1), XtSetSubvalues(1),
Core(3),
get_values_hook(4), set_values_hook(4), initialize(4).
Xt - Intrinsics Methods initialize_hook()