On 7 Feb 2008, at 15:48, Scott Wilson wrote:
Actually there's something wrong in that example even without a scrollview. Observe: // wrong ( w = SCWindow.new; c = SCCompositeView(w,Rect(30,30,300,300)); c.relativeOrigin = true; c.background = "">Color.blue; ) // //// although its parent is relativeOrigin, the scroll view does not position itself //s = SCScrollView(c,Rect(0,0,40,40)); //s.background = ""> ( // where it should be d = SCStaticText(c,Rect(0,0,40,40)); d.background = "">Color.red; w.front; ) // right ( w = SCWindow.new; c = SCCompositeView(w,Rect(30,30,300,300)); c.relativeOrigin = true; c.background = "">Color.blue; // where it should be d = SCStaticText(c,Rect(0,0,40,40)); d.background = "">Color.red; w.front; ) If you execute it as two blocks it's different than as one. S. |