Summary of Widget Instance Initialization<A NAME=66> </A>

Next: Loading the New Up: Tix Object Oriented Previous: Configuration Methods and

## Summary of Widget Instance Initialization

The creation of a widget instance is a complex process. You must understand how it works in order to write your widget classes. The following is the steps taken by the Tix Intrinsics when a widget instance is created:

> - When the user creates an instance, the public variables are intilized as discussed in section 6.5.1. Type checkers are always called if they are specified. Configuration methods are called only if they are specified in the `-forcecall` section.

> - The `InitWidgetRec` method is called. It should initialize private variable, possibly according to the values the public variables.

> - The `ConstructWidget` method is called. It should create the component widgets. It should also store the names of public subwidgets into the subwidget variables.

> - The `SetBinding` method is called. It should create bindings for the component widgets.

After the above steps, the creation of the instance is complete and the user can iterate with it using its widget command.