initialize_hook()initialize_hook()Nameinitialize_hook - obsolete Object method for initializing subpart data.
typedef void (*XtArgsProc)(Widget, ArgList, Cardinal *);
w Specifies the newly created widget.
args Specifies the argument list that was passed to XtCreateWid‐
num_args Specifies the number of arguments in the argument list.
Obsolete in Release 4 and later.
The initialize_hook() method is registered on the initialize_hook field
of the Object, RectObj, or Core class part structure, and is called by
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),
get_values_hook(4), set_values_hook(4), initialize(4).
Xt - Intrinsics Methods initialize_hook()