Article View: comp.windows.interviews
Article #1525Resize problem
From: Jean-Claude Dulac
Date: Mon, 24 Jun 1991 22:13
Date: Mon, 24 Jun 1991 22:13
64 lines
2026 bytes
2026 bytes
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 <InterViews/scene.h>
#include <InterViews/frame.h>
#include <InterViews/2.6/InterViews/box.h>
#include <InterViews/message.h>
#include <InterViews/world.h>
#include <InterViews/2.6/InterViews/glue.h>
#include <Dispatch/dispatcher.h>
#include <Dispatch/iocallback.h>
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() ;
}
Technical Details
Message-ID:
<9106242213.AA03698@st.unocal.com>Path:
arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!samsung!uunet!stanford.edu!sunkist.west.sun.com!unocal!jcdShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!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