Path: utzoo!utgpu!news-server.csri.toronto.edu!smoke.cs.toronto.edu!neat.cs.toronto.edu!moraes Newsgroups: comp.windows.x From: moraes@cs.toronto.edu (Mark Moraes) Subject: Re: Some Xt questions Message-ID: <90Sep11.223054edt.558@smoke.cs.toronto.edu> Keywords: X, Xt toolkit Organization: Department of Computer Science, University of Toronto References: <2159@tnoibbc.UUCP> Date: 12 Sep 90 02:31:40 GMT Lines: 38 werner@tnoibbc.UUCP (Werner de Bruijn) writes: > + How do define a form to fill in a name. Besides a prompt-string > and a fill-in space the form should contain two buttons (cancel > and ok). A return in the fill-in should have the same effect as > the ok-button. See the Athena (Xaw) Dialog widget. > + How to create a widget that allows you to scroll through a file. A text widget (asciiDiskWidgetClass in Xaw) See xmore or xless (in contrib in R3/R4 respectively) for examples. > + How can I create windows at a fixed position on the screen. XtSetValues to set XtNgeometry for the toplevel shell before you realize it. Or set it via the app-defaults file. (Is there a better way?) >Any pointers to documentation (I already have Xt-manual)? However >any source-examples showing these primitive features would be more welcome. The Xaw manual, the HP widgets (Xw) manual, Doug Young's book "X Window Systems Programming and Applications with Xt", and the Nutshell book on Xt (Volumes 3 and 4) In R4, mit/examples/Xaw has plenty of examples for the Xaw widgets. The Xw widgets come with tests/ that make useful starting points. Doug Young's book examples are available by ftp from expo.lcs.mit.edu:contrib/young.examples.tar.Z or cs.toronto.edu:pub/X/young.examples.tar.Z. (The examples for the Motif version of Doug Young's book are in expo.lcs.mit.edu:young.motif.tar.Z) The Nutshell examples are in uunet.uu.net:nutshell/xt/. expo.lcs.mit.edu:asente-swick.examples.tar.Z contain more examples. Mark.