[NEWBIE] MVC question

Francisco A. Lizarralde frankliz at argenet.com.ar
Wed Feb 2 04:11:09 UTC 2000


When I try to execute this code in a Workspace, I obtain a MVC white window with
a lightYellow subView on the right. But when I minimize the window and then
restore it, all the area of the topView (white) is occupied by the subView
(lightYellow).
Could anyboby tell me, what I'm doing wrong.
Thanks in advance.

Francisco.

| aTopView aSubView |
aTopView := StandardSystemView new.
aTopView window: ( 0 @ 0 extent: 100 @ 100 );
  insideColor: Color white;
   borderWidth: 2;
   label: ' TopView '.
aSubView := View new.
aSubView insideColor: Color lightYellow;
  borderWidth: 1.
aTopView addSubView: aSubView
   window: (0 @ 0 extent: 100 @ 100 )
   viewport: ( 50 @ 0 extent: 50 @ 100).
aTopView controller open






More information about the Squeak-dev mailing list