Path: utzoo!utgpu!watserv1!watmath!att!att!linac!uwm.edu!zaphod.mps.ohio-state.edu!samsung!munnari.oz.au!metro!news From: andrew@ee.su.oz.au (Andrew Ho) Newsgroups: comp.windows.x Subject: Moving window Message-ID: <1990Nov28.054112.7758@metro.ucc.su.OZ.AU> Date: 28 Nov 90 05:41:12 GMT Reply-To: andrew@ee.su.oz.au (Andrew Ho) Organization: Electrical Engineering, The University of Sydney, Australia Lines: 34 Nntp-Posting-Host: 129.78.13.35 Hi, I am a new x-window programmer. I am writing an application to display a window on a specified location on the screen. The followings are my sample codes : { Arg wargs[3]; int j; topapp = XtCreateApplicationShell("topapp", topLevelShellWidgetClass, NULL, 0); j=0; XtSetArg(wargs[j], XtNwidth, WIN_WIDTH); j++; XtSetArg(wargs[j], XtNheight, WIN_HEIGHT); j++; XtSetArg(wargs[j], XtNstring, "TEXT"); j++; text = XtCreateManagedWidget("TEXT", XwstatictextWidgetClass, topapp, wargs, j); XMoveWindow(XtDisplay(topapp), DefaultRootWindow(XtDisplay(topapp)), 20, 2); XtRealizeWidget(topapp); } However, the above codes seem don't work well (the applcation shell doesn't appear at location (20, 2)). Any thing wrong with my codes ? Please mail me. Thanks in advance. andrew@ee.su.oz.au