Museum

Home

Lab Overview

Retrotechnology Articles

⇒ Online Manual

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

XtCreateWidget(1)

XtSetSubvalues(1)

Core(3)

get_values_hook(4)

set_values_hook(4)

initialize(4)

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

wSpecifies the newly created widget. 

argsSpecifies the argument list that was passed to XtCreateWidget(). 

num_argsSpecifies 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 purpose 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 Also

XtCreateWidget(1), XtSetSubvalues(1),
Core(3),
get_values_hook(4), set_values_hook(4), initialize(4). 

Copyright O’Reilly & Assoc.  —  X Toolkit Intrinsics Reference Manual © O’Reilly & Associates

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026