HDTenEightyP/NetNews huggingface dataset:
From: dwight@geohub.gcn.uoknor.edu (Dwight D. Moore)
Newsgroups: fj.mail-lists.x-window
Subject: Re: Draw text centering a point??
Date: 12 Nov 92 23:35:16 GMT
Distribution: fj
Organization: Geosciences Computing Network, Univ. of Oklahoma

Date: 12 Nov 92 17:06:40 GMT
Message-Id: <BxM4v6.6LI@constellation.ecn.uoknor.edu>
Newsgroups: comp.windows.x,comp.windows.x.motif

In article <1992Nov11.201056.9074@magnus.acs.ohio-state.edu>, yhtao@magnus.acs.ohio-state.edu
(Yu-Hui Tao) writes:
|
|>Hi, netters:
|>
|>  Is there anyway to draw a text in Motif's Drawing area centering one
|>specific point?
|>
|>  Any response is apprecitaed!
|>
|>Yu-Hui Tao
|>ISE, OSU
|>tao@CSEL.eng.ohio-state.edu
|>===========================
|>

Use the Xlib XQueryTextExtents(), XTextExtents(), or
XTextWidth() to determine your string width and use
that to center your string a a point.  Once you
know the extent, the math is simple...:0)

----------------------------------------------------------------------------
Dwight D. Moore
Geosciences Computing Network
University of Oklahoma

dwight@geohub.gcn.uoknor.edu (129.15.40.10)
These opinions do not necessarily represent the opinions of OU or the GCN.
----------------------------------------------------------------------------
From: changp@CS.ColoState.EDU (philip chang)
Newsgroups: fj.mail-lists.x-window
Subject: Xwindow
Date: 9 Nov 92 20:39:30 GMT
Distribution: fj
Organization: Colorado State University

Date: Thu, 05 Nov 1992 00:04:53 GMT
Message-Id: <Nov05.000453.69257@yuma.ACNS.ColoState.EDU>
Newsgroups: comp.windows.x


Hello .!!

I have some questions about Xwindows

     1. Is there way to run Xwindow on My home computer(486-50)
	 beside the DeskView/X.??? 
	 if there is a way. what is it and where can I get it???

     2. I heard that all the Xwindow Application programs are
	Public Domain programs. Is that true?
	if it is Where can I get It???

     3. If there is No Way I can run Xwindow on My home PC, 
	I am thinking about changing Operating System to Unix on my
	home PC(486-50 w/8mag), is that a wise thing to do??
	Where can I get an Unix operating system.???

If you have an answer to any of these,  
Please send me an e-mail 

to  :    changp@cs.colorado.edu


thanks in advence!!!!!

young..
From: imp@solbourne.com (Warner Losh)
Newsgroups: fj.mail-lists.x-window
Subject: Re: ORA News
Date: 5 Nov 92 13:01:04 GMT
Distribution: fj
Organization: ParcPlace Boulder

Date: Sun, 1 Nov 1992 20:44:46 GMT
Message-Id: <Bx21Mn.4nL@solbourne.com>
Newsgroups: comp.windows.x

In article <1992Oct29.193619.23036@sq.sq.com> lee@sq.sq.com (Liam R.
E. Quin) writes: 
>Supposedly (I haven't tried this) XView can hendle mutiple displays, and
>there is sample code in the XView book from O/Reilly (Vol. 7).  XView isn't
>Xt based, but that wasn't in the list  of requirements by the time it
>reached me :-)

OI handles multiple displays easily as well.  You just create another
OI_connection object, specifying the display that you want.  OI
provides ways to multiplex between the connections transparently to
the programmer (once the object has been parented).

Warner
-- 
Warner Losh		imp@parcplace.COM	ParcPlace Boulder
I've almost finished my brute force solution to subtlety.
From: snail@lsl.co.uk
Newsgroups: fj.mail-lists.x-window
Subject: Pixmap width and height?
Date: 10 Nov 92 21:52:06 GMT
Distribution: fj
Organization: Laser-Scan Ltd., Cambridge

Date: 10 Nov 92 11:37:00 GMT
Message-Id: <1992Nov10.123700.2627@lsl.co.uk>
Newsgroups: comp.windows.x.motif,comp.windows.x

Hello everyone, the snail has a problem...

Does anyone know how to determine the width of a pixmap that you have. Say
for example I had used XmGetPixmap(...) to fetch a pixmap from a UIL file
(an exported icon, for example) I do not know the pixmap's width or height.
I would like this info so that I can extract a bitmap from this pixmap.

Don't ask why, or suggest specifying the bitmaps a different way. We want
bitmaps from Pixmaps (I can do that bit), but I need to know the width and
height of the pixmap automatically (ie: through a function)rather than the user
specifying the width and height.

Alternatively, if you know of a way of extracting a bitmap from a pixmap
without previously knowing the width or height of the pixmap, let me know.

Thanks folks
-- 
snail@lsl.co.uk      

You Have To Remember, You Need To Beleive,
The Time Has Past, Dust In The Leaves.
From: daniel@juliet.osf.org (Daniel Dardailler)
Newsgroups: fj.mail-lists.x-window
Subject: Re: Resizing
Date: 11 Nov 92 01:50:52 GMT
Distribution: fj
Organization: Open Software Foundation, Motif Team

Date: Fri, 6 Nov 1992 14:36:22 GMT
Message-Id: <1992Nov6.143622.17148@osf.org>
Newsgroups: comp.windows.x.intrinsics,comp.windows.x

  
|> In a box widget, is there anyway of not having the window resize itself if
|> say, a label widget was made a child of the box widget.  In my case, I have
|> a "quit" command widget that is a child of a "canvas" box widget.  However,
|> when the quit window is realize, the canvas window shrinks to the size of
|> the quit command widget.
|> Can anybody offer any suggestions?
 
Take control over the geometry policy of your hierarchy.

If your Canvas is bound to a Shell, one way to do that is by setting 
XtNallowShellResize = False for the Shell.
If not (scrolled canvas, of rubber attachment), look for a
resizePolicy on your canvas itself, or for a constraint allowResize
resource on the child.

Daniel
From: wsadkin@bbn.com (Will Sadkin)
Newsgroups: fj.mail-lists.x-window
Subject: Anyone have a scrolling menu widget?
Date: 6 Nov 92 13:15:18 GMT
Distribution: fj
Organization: Workstation Div., Supermicro Systems Group, Sony Corporation

Date: 5 Nov 92 18:08:00 GMT
Message-Id: <lfioo0INN8jp@news.bbn.com>
Newsgroups: comp.windows.x


-- 
For some reason, this posting never showed up in c.w.x, so I'm reposting
directly...

I have a real-time application in which I want to present a frequently
updating set of information to choose from.   Has anyone written a
"scrolling menu" widget?  My department and I have been using Athena
only for some time now, so this would be the preferred environment for
such a beastie.  We are also running on SGI's, which, to my knowledge,
have not been upgraded to R5 yet.

Please respond via email, as with the present volume of traffic and 
my schedule, I cannot keep up with comp.windows.x.  

-------------------------------------------------------------------------------
Will Sadkin                | "Never draw what you can copy;
BBN Systems & Technologies |  never copy what you can trace;
wsadkin@bbn.com            |  never trace what you can cut out and paste down!"
-------------------------------------------------------------------------------
From: raw@ushiva.wariat.org (Roland Wilcher)
Newsgroups: fj.mail-lists.x-window
Subject: Floating point
Date: 7 Nov 92 22:14:52 GMT
Distribution: fj
Organization: The Software Sandbox

Date: Mon, 2 Nov 1992 23:32:47 GMT
Message-Id: <Bx442p.4n@ushiva.wariat.org>
Newsgroups: comp.windows.x


I have question for you X-gurus. Can anybody tell me wich parts
of X use floating point ? If no extensions are used e.g. Pex PHIGS
and only line drawing using Xlib is done. Is there any FP needed ?


Please respond via email to raw@ushiva.wariat.org .

-- 
Lack of skill dictates economy of style.             raw@ushiva.ncoast.org
- Joey Ramone                                        raw@ushiva.wariat.org
Roland A. Wilcher                         6207 Luther Ave. Cleve Oh. 44103 
---------------------------------------------------------------------------
From: jgealow@mtl.mit.edu (Jeffrey C. Gealow)
Newsgroups: fj.mail-lists.x-window
Subject: Re: XDM running .xsession as root and not logging to wtmp?
Date: 9 Nov 92 01:02:59 GMT
Distribution: fj
Organization: MIT Microsystems Technology Laboratories

Date: Wed, 4 Nov 1992 16:17:57 GMT
Message-Id: <1992Nov4.161757.17487@athena.mit.edu>
Newsgroups: comp.windows.x,comp.security.misc

>In article <TIBBS.92Nov3015749@karazm.math.uh.edu> tibbs@karazm.math.uh.edu (Jason L Tibbitts III) writes:
>
>   It's been this way since before I started running these systems and I can't
>   seem to figure it out:
>   If someone walks up to the workstation and logs in through XDM, the login
>   doesn't show up with "last", nor with "finger".  Also, it seems that root
>   executes the user's .xsession file, as anything they start in that file
>   seems to run as root.  (The xterms I start show up as being owned by root
>   under "ps aux" but the shells are owned by me.)  Bad idea.  Security?  What
>   security?

We have a Sun SPARCstation IPC which was running SunOS 4.1.2 and
X11R5.  We use the X11R5 xdm.  Suddenly, users started having trouble
logging in to the console through xdm.  Specifically, commands in
dotfiles were failing to successfully execute.  After some
investigation, we noticed that users' .xsession files were being
executed as root.  After more investigation, we found that someone had
broken into our system and made /bin/sh suid root.  After plugging
this hole, X11R5 xdm once again performs properly.  .xsession files
are executed as the user.

Jeff Gealow
jgealow@mtl.mit.edu
From: msc@ramoth.esd.sgi.com (Mark Callow)
Newsgroups: fj.mail-lists.x-window
Subject: Re: X Under Windows NT
Date: 9 Nov 92 07:30:04 GMT
Distribution: fj
Organization: Silicon Graphics, Inc.  Mountain View, CA

Date: 3 Nov 92 22:38:40 GMT
Message-Id: <rtonoi0@zola.esd.sgi.com>
Newsgroups: comp.windows.x,comp.sys.dec,comp.windows.news


In article <1992Oct28.170229.29369@news.dfrf.nasa.gov>, todd@fred.dfrf.nasa.gov writes:
> At NASA we run our realtime flight simulator on an SGI doing the
> simulation models in one CPU and out the window visuals in another.
> The entire frame runs in under 1ms,  I think you have experience
> with the wrong machine running X.
> 

This example proves nothing.  The flight simulator is not an X program.
If it was an X program there is no way you could generate frames in
"under 1 ms".

	-Mark
From: achan@idaho.tdd.sj.nec.com (Amy Chan)
Newsgroups: fj.mail-lists.x-window
Subject: Re: Window the pointer is in?
Date: 12 Nov 92 08:41:48 GMT
Distribution: fj
Organization: NEC-AM TDD, San Jose, California

Date: 6 Nov 92 18:47:59 GMT
Message-Id: <1992Nov6.184759.25278@sj.nec.com>
Newsgroups: comp.windows.x

In article <1d8lhiINN27a@seven-up.East.Sun.COM> marc@betelgeuse.East.Sun.COM writes:
>Hi,
>	How could I find the window ID of the topmost window that contains the mouse 
>pointer? If I do an XQueryPointer(dpy, root_window, ...), the returned
>child window is a window manager window. However the window that I am looking
>for is a leaf window of the window tree of an X client. Can this be done
>without having to make recursive calls to XQueryTree(), followed by an XGetGeometry()
>on each child window to figure out in which one the mouse pointer is in?

This can be accomplished by making another call to XQueryPointer(), with
the window ID of the window manager window as the 2nd argument. The child
window ID returned then will be the child of the window manager window.

Hope this helps.

Amy

--
Amy Chan                           | E-Mail:
NEC America Inc.                   |  INTERNET: achan@tdd.sj.nec.com
110 Rio Robles, San Jose, CA 95134 |  UUCP: ...{decwrl,oliveb}!necsun!achan
From: spear@druhi.ATT.COM (SpearmanS)
Newsgroups: fj.mail-lists.x-window
Subject: xlock: convenient way to run?
Date: 13 Nov 92 14:43:20 GMT
Distribution: fj
Organization: Workstation Div., Supermicro Systems Group, Sony Corporation

Date: 7 Nov 92 16:47:35 GMT
Message-Id: <22263@drutx.ATT.COM>
Newsgroups: comp.windows.x

I've tried to setup xlock to run when I do a
function key or from the main window manager menu
on my x11r5 system, without success.  In both cases,
xlock runs, but the screen just blanks without any
screen saver and a X cursor is present.  Hitting any key
returns you to the windows.  Running it manually
from an xterm window works fine.  What gives?
I'm running X386 1.2e on a 486 and
the ctwm window manager.  Thanks for
any ideas

Also: is there a way to get function keys to work for the vt102
emulation in xterm?  I haven't figured out
anyway to use programs that
download and require those function keys.

Steve Spearman   spear@druhi.att.com
From: klute@tommy.informatik.uni-dortmund.de (Rainer Klute)
Newsgroups: fj.mail-lists.x-window
Subject: Re: No border X window
Date: 7 Nov 92 01:52:04 GMT
Distribution: fj
Organization: CS Department, Dortmund University, Germany

Date: 6 Nov 92 08:49:53 GMT
Message-Id: <1ddbjhINNe1q@fbi-news.Informatik.Uni-Dortmund.DE>
Newsgroups: comp.windows.x

In article <1992Nov05.163310.30462@watson.ibm.com>,
gaitat@gaitat.kgn.ibm.com (Saki) writes:
|> I would like to create an X-Window with no border or title
|> but I dont want the window manager to do it.  The application
|> should have the control.  When I use the override_redirect
|> attribute when my window is mapped, it doesnt change to the 
|> correct colormap, and when I press a mouse button, I get a
|> root window popup menu.  Any suggestions/solutions?

These are the costs of override_redirect. The window manager does not care
about such a window in any way. You will have to do everything yourself, i.
e. installing the colormap (see XInstallColormap) and giving the input
focus to your window (see XSetInputFocus).

-- 
  Dipl.-Inform. Rainer Klute      klute@irb.informatik.uni-dortmund.de
  Univ. Dortmund, IRB
  Postfach 500500         |)|/    Tel.: +49 231 755-4663
D-W4600 Dortmund 50       |\|\    Fax : +49 231 755-2386
From: envbvs@epb9.lbl.gov (Brian V. Smith)
Newsgroups: fj.mail-lists.x-window
Subject: TransFig 2.1.5 is available on export
Date: 10 Nov 92 23:09:47 GMT
Distribution: fj
Organization: Workstation Div., Supermicro Systems Group, Sony Corporation

Date: Tue, 10 Nov 92 16:33:13 -0500
Message-Id: <9211102133.AA21304@expo.lcs.mit.edu>

TransFig 2.1.5 is available on export.lcs.mit.edu in /contrib/transfig.2.1.5.tar.Z.
Be sure to set binary mode when transferring.

>>> It is important for users of xfig 2.1.5 to get this latest version 
>>>    of TransFig.

TransFig is a set of tools for creating TeX documents with graphics
which are portable, in the sense that they can be printed in a wide
variety of environments.

The transfig directory contains the source for the transfig command
which generates a Makefile which translates Fig code to various graphics
description languages using the fig2dev program.  In previous releases,
this command was implemented as a shell script.

The fig2dev directory contains a general program for translating from
Fig code to other graphics desciption languages.  The dev subdirectory
contains a library of output drivers used by fig2dev.

Drivers currently exist for the following graphics langauges:
(E)EPIC macros, LaTeX picture environment, PIC, PiCTeX, PostScript, and TeXtyl.
Fig2dev can be configured with a subset of these drivers


I have taken over the maintenance of TransFig from Micah Beck so please send any
bug notices, fixes, contributions etc to me at bvsmith@lbl.gov.

Brian V. Smith
Lawrence Berkeley Laboratory
From: melby@dove.yk.Fujitsu.co.jp (John B. Melby)
Newsgroups: fj.mail-lists.x-window
Subject: Re: X11r5/Sun Japanese keyboard
Date: 11 Nov 92 23:35:08 GMT
Distribution: fj
Organization: Open Systems Dept. Div. 2 Sect. 1, FUJITSU LTD.

Date: 6 Nov 92 08:30:27 GMT
Message-Id: <MELBY.92Nov6083027@dove.yk.Fujitsu.CO.JP>
Newsgroups: comp.windows.x

>  I recently installed X11R5(patch 16) on a Sun SPARCstation [...]
>in Japan.  The Japanese keyboard is slightly different from the US
>keyboard.  [...]  Does anyone know how to get the X server to
>interpret the keys properly for the Japanese keyboard?

You can use xmodmap to re-map the keys.  To find the keycode for a
particular key, press the key within the "xev" window.  Then choose
the appropriate keysyms for each modified key (unshifted and shifted).
For instance, the file you use with xmodmap may go as follows.

keycode 20 = 0xff30 0xff30
keycode 38 = 2 quotedbl
keycode 42 = 6 ampersand
...
keycode 47 = minus equal
keycode 48 = asciicircum asciitilde
...

For certain keysyms, you may have to use the hexadecimal equivalent
in keysymdef.h instead of the name (e.g. XK_Eisu_toggle -> 0xff30).

-----
John B. Melby
Fujitsu Limited, Yokohama
melby@yk.fujitsu.co.jp
From: marc@betelgeuse.East.Sun.COM (Marc St-Hilaire Canadian Dev. Ctr - Montreal)
Newsgroups: fj.mail-lists.x-window
Subject: Window the pointer is in?
Date: 9 Nov 92 08:50:01 GMT
Distribution: fj
Organization: Sun Microsystems, Inc.

Date: 4 Nov 92 14:08:49 GMT
Message-Id: <1d8lhiINN27a@seven-up.East.Sun.COM>
Newsgroups: comp.windows.x

Hi,
	How could I find the window ID of the topmost window that contains the mouse 
pointer? If I do an XQueryPointer(dpy, root_window, ...), the returned
child window is a window manager window. However the window that I am looking
for is a leaf window of the window tree of an X client. Can this be done
without having to make recursive calls to XQueryTree(), followed by an XGetGeometry()
on each child window to figure out in which one the mouse pointer is in?
    	
	Marc St-Hilaire (marc.st-hilaire@east.sun.com)
From: juando@cnm.us.es
Newsgroups: fj.mail-lists.x-window
Subject: Re: Sending X events between processes
Date: 12 Nov 92 12:46:28 GMT
Distribution: fj
Organization: Workstation Div., Supermicro Systems Group, Sony Corporation

Date: Thu, 12 Nov 1992 10:47:29 UTC+0100
Message-Id: <9211120947.AA24438@sparc1.cnm.us.es>
Content-Identifier: NW921112104729
Content-Transfer-Encoding: 7BIT
X400-Content-Type: P2-1984 (2)
X400-Mts-Identifier: [/ADMD=mensatex/C=es/;921112105619]
X400-Received: by mta iris-dcp in /PRMD=iris/ADMD=mensatex/C=es/; Relayed; Thu, 12 Nov 1992 10:59:53 UTC+0100
X400-Received: by /PRMD=iris/ADMD=mensatex/C=es/; Relayed; Thu, 12 Nov 1992 10:59:53 UTC+0100
X400-Received: by /ADMD=mensatex/C=es/; Relayed; Thu, 12 Nov 1992 10:47:29 UTC+0100
X400-Recipients: non-disclosure:;
X400-Originator: juando@cnm.us.es

>X-Envelope-to: xpert@expo.lcs.mit.edu, crosby@juliet.cs.colorado.edu

In article <1992Nov6.051103.22995@colorado.edu> crosby@juliet.cs.colorado.edu
(CROSBY MATTHEW JAME) writes:

>
>I have written a program that initialises the X windows stuff, and then
>forks().  I am attempting to send events from the parent to the child 
>process, but they don't seem to be processed.  I am using Xlib, and
>the XSendEvent function.  Is this impossible?  Is there something I am
>missing?

I am not sure, but from what you say it seems you use the same server
connection both in parent and child processes. If that is true, the server
will have no idea about that, for the server both processes are the same
client. I think there will be a race condition when receiving events an
responses because they share the file descriptor associated to the connection.

Try moving the fork() call *before* the X initialization.

Hope it helps...
-- 
Juan D. Martin                     Centro Nacional de Microelectronica
<juando@cnm.us.es>                                   Edificio C.I.C.A.
Phone: 34-5-4623811                             Av/ Reina Mercedes s/n
Fax:   34-5-4624506                               41012-SEVILLA, SPAIN
From: jake@sprecher.cs.uwm.edu (Joel Jacobson)
Newsgroups: fj.mail-lists.x-window
Subject: Request for artistic ability
Date: 9 Nov 92 16:20:13 GMT
Distribution: fj
Organization: University of Wisconsin, Milwaukee

Date: 4 Nov 92 02:48:26 GMT
Message-Id: <1d7dlqINNit3@uwm.edu>
Newsgroups: comp.windows.x,rec.games.programmer


ok, this is going to be kind of a bizarre request, and you'll have to
excuse me if i put an inappropriate group on the line, but im not real
sure where this post was supposed to go.  so here goes:

	im going to be attempting to write donkey kong for X.
	however, i am seriously lacking in the artistry department,
	so im looking for a little help with the bitmaps.  if any
	of you kind souls would care to help me, send me an email
	message, and i'll try and find some specs for what i think
	ill need (ie im not sure exactly what i need yet).

oh, and if anyone knows of a good group i didnt put on the header for
this post, lemme know that too...


jake@introl.com  (or reply to this post, it'll get forwarded there anyway)
From: robert@triton.Jpl.Nasa.Gov (Robert Angelino)
Newsgroups: fj.mail-lists.x-window
Subject: Enable UNIX X clients to display in DecWindows...
Date: 6 Nov 92 13:33:57 GMT
Distribution: fj
Organization: Jet Propulsion Laboratory, Pasadena CA

Date: 5 Nov 92 17:21:15 GMT
Message-Id: <1992Nov5.172115.18000@llyene.jpl.nasa.gov>
Newsgroups: comp.os.vms,comp.windows.x

I'm trying to run an X-client on a UNIX box and display the window
on a VXT2000 running DecWindows.  How do I enable DecWindows
to accept the client.  I'd like to do something like 

xhost +unix.machine

on the DCL command line in VMS.  I know VMS has its own command, I haven't
been able to find it.

thanks

-- 
    -     ------       -                              Robert Angelino
   | |   | ----  \    | |                             ms 301-270
   | |   | |   \ |    | |                             4800 Oak Grove Drive
   | |   | | --  |    | |                             Pasadena, CA 91109
---| |   | | \__/     | |___                          robert@puente.jpl.nasa.gov
\____|et |_|ropulsion |_____\aboratory                (818) 354-1448
From: flee@synoptics.com (Frank Lee)
Newsgroups: fj.mail-lists.x-window
Subject: Color Pixmap ?
Date: 9 Nov 92 23:11:39 GMT
Distribution: fj
Organization: Synoptics Inc. Santa Clara, California.

Date: 4 Nov 92 23:01:36 GMT
Message-Id: <1992Nov4.230136.18662@netnews.synoptics.com>
Newsgroups: comp.windows.x

I used OpenWindow 3.0 iconeditor to create some icons and saved 
as "Color X Pixmap".  How can I use these color pixmap into my application ?
I checked Xlib/Xview manuals and I couldn't find the answer.  Anyone ?
Please send your answer directly to my e-mail address and I will post them.
Thanks in advance.....

flee@SynOptics.com
From: kriso@bryant1.ncd.com (Kris Olander)
Newsgroups: fj.mail-lists.x-window
Subject: Word Perfect on Wyse SysV 3.2
Date: 10 Nov 92 00:51:50 GMT
Distribution: fj
Organization: Network Computing Devices, Mt. View, CA, USA

Date: 4 Nov 92 17:34:21 GMT
Message-Id: <14322@lupine.ncd.com>
Newsgroups: comp.unix.sys5.r3,comp.windows.x


When trying to run Word Perfect 5.0 with TERM set to 'gui_color',
I get an error message as follows:

$wp
libsocket: open(/dev/socksys) failure: no such file or directory
X Toolkit Error: Can't Open Display

There definitely is no device file called "/dev/socksys".  Does this
imply that Word Perfect for SysV 386 3.2 was compiled to use 
sockets instead of streams with X11?  Other X clients work fine;
Xclock, Xterm, etc...

Does anyone have any suggested work arounds, or should I just ask
Word Perfect Corp. for a SysV 386 3.2 version that uses streams?

If Word Perfect doesn't have a streams version, is there a public
domain source for SysV 3.2 sockets?

-- 
-Kris Olander
 NCD Field SE, N. Cal. District
 support@ncd.com -and/or- kriso@ncd.com