Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!samsung!uunet!stanford.edu!sunkist.west.sun.com!unocal!jcd From: unocal!jcd@sunkist.west.sun.com (Jean-Claude Dulac) Newsgroups: comp.windows.interviews Subject: Resize problem Message-ID: <9106242213.AA03698@st.unocal.com> Date: 24 Jun 91 22:13:31 GMT Sender: news@shelby.stanford.edu (USENET News System) Organization: Internet-USENET Gateway at Stanford University Lines: 64 Problem: When I change the interior of an interactor, the window does not get resized, it becomes white, nothing get redrawn. What am I doing wrong? (IV3.0 beta - SUN) Thanks for any help. -Jean-Claude Dulac I include the little test program. --------------------------------------------------------------------------- #include #include #include #include #include #include #include #include class Test : public MonoScene { public : Test() ; void timerExpired(long,long) ; protected : HBox * hbox ; } ; Test::Test() { hbox = new HBox() ; hbox-> Insert( new Message("message 1") ) ; Insert( new MarginFrame( new VBox( new Message("Title"), new VGlue(20), new Frame(hbox) ), 20 ) ) ; } void Test::timerExpired(long,long) { Interactor * i = new Message("message 2") ; hbox-> Insert(new HGlue(20)) ; hbox-> Insert(i) ; hbox-> Change(i) ; } declare(IOCallback,Test) ; implement(IOCallback,Test) ; main(int argc,char *argv[]) { World world("test",argc,argv) ; Test * t = new Test(); world.Insert(t) ; IOHandler *timer = new IOCallback(Test)(t,&Test::timerExpired) ; Dispatcher::instance().startTimer(5,0,timer) ; world.run() ; }