••• Unprocessable paragraph: \start
Home Segments Index Top Previous Next

714: Sidetrip

\slidefont

The open method that you use to actuate the view manager sends default preInitWindow and initWindow methods that do nothing. By overriding those do-nothing methods, you can arrange for various initializations that do not fit conveniently in other places.

The preInitWindow message is sent to the view manager by the open method before graphical elements are created. You can define the preInitWindow method to load data into an application.

The initWindow message is sent to the view manager by the open method after graphical elements are created, but before they appear on your screen. You can define the initWindow method to set variables in graphical elements.

••• Unprocessable paragraph: \begincode *—————————-* | open sent | *—————————-* | *—————————-* *--> | createViews sent | *—————————-* | *—————————-* *--> | preInitWindow sent | *—————————-* | *—————————-* *--> | graphical elements created | *—————————-* | *—————————-* *--> | initWindow sent | *—————————-* | *—————————-* *--> | graphical elements appear | *—————————-* \par C:\Phw\Onto\Smalltalk\model.tex •••

You are unlikely to need either the preInitWindow method or the initWindow method because you can take care of most initialization work using initialization methods launched by getContents events via the when:perform: mechanism. C:\Phw\Onto\Smalltalk\model.tex •••