Equivalent of addSubView:in: in Squeak

Philippe de Rochambeau pr1 at club-internet.fr
Fri Apr 24 16:14:08 UTC 1998


What is the equivalent of:

v := View new.
.....
v window: v window viewport: (300 at 250 corner: 400 at 300).

"This is the problematic line"
v addSubView: v1 in: (0 at 0 extent: 0.5 at 0.5) borderWidth: 2.

in Squeak Smalltalk? addSubView:in: does not seem to exist in Squeak.

Another question: why "v window: v window"? If v is a View, why do you
need to tell it that its window is its own (v's) window?

Many thanks.

Philippe de Rochambeau





More information about the Squeak-dev mailing list