Article View: comp.windows.interviews
Article #587IV2.6/World/Scene questions
From: Turnando Fuad
Date: Thu, 03 Sep 1992 23:04
Date: Thu, 03 Sep 1992 23:04
42 lines
1780 bytes
1780 bytes
I am learning IV2.6 and are still trying to figure out how the various interactors
interact. I would appreciate any help in figuring out why the code listed below
doesn't work. Thanks for the help in advance.
--------------------------------------------------------------------------------
#include <InterViews/world.h>
#include <InterViews/box.h>
#include <InterViews/glue.h>
#include <InterViews/message.h>
// class myScene: public MonoScene
class myScene: public Scene
{
};
void main()
{
World *world = new World;
myScene *scene = new myScene;
Interactor *myBox = new HBox(
new VGlue(1,vfil),
new Message("Hello World"),
new VGlue(1,vfil));
scene->Insert(myBox);
world->Insert(scene);
world->Raise(scene);// Doesn't this make scene the top level interactor?
world->Run();
// The window that is displayed does not reflect myBox when myScene is
// is a subclass of Scene.
}
---------------------------------------------------------------------------------
--
Turnando Fuad Internet: fuad@eecs.ucdavis.edu
CIPIC (Center for Image Processing and Integrated Computing)
University of California
Davis, CA 95616 Phone: (916)752-2387
Technical Details
Message-ID:
<16609@ucdavis.ucdavis.edu>Path:
arc1-ca.pugleaf.net!sparky!uunet!gatech!usenet.ins.cwru.edu!magnus.acs.ohio-state.edu!cis.ohio-state.edu!ucbvax!ucdavis!madrone.eecs.ucdavis.edu!fuadShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!gatech!usenet.ins.cwru.edu!magnus.acs.ohio-state.edu!cis.ohio-state.edu!ucbvax!ucdavis!madrone.eecs.ucdavis.edu!fuad From: fuad@madrone.eecs.ucdavis.edu (Turnando Fuad) Newsgroups: comp.windows.interviews Subject: IV2.6/World/Scene questions Keywords: interviews Message-ID: <16609@ucdavis.ucdavis.edu> Date: 3 Sep 92 23:04:55 GMT Sender: usenet@ucdavis.ucdavis.edu Reply-To: fuad@madrone.eecs.ucdavis.edu (Turnando Fuad) Organization: Center for Image Processing and Integrated Computing/UC Davis Lines: 42