Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!uwm.edu!bionet!agate!stanford.edu!leland.Stanford.EDU!elaine30.Stanford.EDU!goins From: goins@elaine30.Stanford.EDU (daryl goins) Newsgroups: comp.windows.x Subject: Re: Cursor implementation Message-ID: <1991Apr16.032544.14016@leland.Stanford.EDU> Date: 16 Apr 91 03:25:44 GMT References: <9103251415.AA26899@crc.skl.dnd.ca> Sender: news@leland.Stanford.EDU (Mr News) Organization: Stanford University - AIR Lines: 41 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