Newsgroups: comp.windows.x
Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!think.com!linus!agate!stanford.edu!leland.Stanford.EDU!elaine16.Stanford.EDU!goins
From: goins@elaine16.Stanford.EDU (daryl goins)
Subject: Graphics Widget
Message-ID: <1991Apr16.202122.24348@leland.Stanford.EDU>
Sender: news@leland.Stanford.EDU (Mr News)
Organization: Stanford University - AIR
References: <19114@rpp386.cactus.org> <1991Mar19.193342.28295@Think.COM> <1991Mar26.151607.1595@eng.umd.edu>
Date: Tue, 16 Apr 91 20:21:22 GMT
Lines: 42


I am trying to write some graphics in a XwworkSpaceWidget but I am getting 
a window error.  Specifically, I have the following code 

void main(argc, argv)
int argc;
char **argv;
{
    Widget topLevel, framework, mainWindow;
    XtAppContext app_con;

    topLevel = XtAppInitialize(&app_con, "Xlist", NULL, ZERO,(Cardinal *) 
			       &argc, argv, resources, NULL, ZERO);

    framework = XtCreateManagedWidget("framework", XwformWidgetClass, topLevel, 
				      NULL, ZERO);

    mainWindow = XtCreateManagedWidget("mainWindow",XwworkSpaceWidgetClass, 
				       framework, NULL, ZERO);

    printf("main %d, toplevel, %d framework %d\n",XtWindow(mainWindow),
	   XtWindow(topLevel), XtWindow(framework));

    XtRealizeWidget(topLevel);
    XtAppMainLoop(app_con);
}

when I print out the window values I get:
main 0	toplevel 0 framework 0

Obviously I'm doing something wrong, if anyone knows, I would 
really really appreciate any advice.  If you have a piece of code
I would be even more thankful.

Daryl M. Goins


--
Daryl M. Goins
goins@cs.stanford.edu
"I said that but
	I didn't know what I was talking about??" - Money Jones
