HDTenEightyP/NetNews huggingface dataset:
From: donn@carson.u.washington.edu (Donn Cave)
Newsgroups: comp.windows.x
Subject: Re: xdm and key mappings
Date: 29 Jul 92 15:52:57 GMT
Organization: University of Washington

gildea@expo.lcs.mit.EDU (Stephen Gildea) writes:

|     When he finishes with his login session, the keys still remain mapped to
|     DVORAK.

| This implies that the X server is not being reset between sessions.
| It is supposed to be.  Users may make many changes to their server,
| the root background and resource database being two other common
| examples.  When the server resets, all this is undone.  Either your X
| server has a bug, or you are not setting up xdm correctly.

This is optional with some servers, however.  Some X terminals, for example,
come with a "Retain X Settings" option, which if enabled will defeat the
above-described behavior.  Which saves a lot of time hashing font paths,
among other things.  In this case, it's not a bug - it really is a feature,
as long as it's properly used.

	Donn Cave, University Computing Services, University of Washington
	donn@cac.washington.edu
From: d8ahlcr@dtek.chalmers.se (Christopher Ahlberg)
Newsgroups: comp.windows.x
Subject: Bitmap in DrawnButton problem on color screen
Date: 29 Jul 92 09:55:07 GMT
Organization: Chalmers University of Technology, Gothenburg Sweden

I'm writing a problem that has several DrawnButtons which are placed in
a drawing area. Into these buttons are bitmaps loaded. This works alright on a
black & white screen, but when running in color the program crashes. Anyone
knows why?

	/Christopher
d8ahlcr@dtek.chalmers.se
--
Christopher Ahlberg		       Chalmers University of Technology
email: d8ahlcr@dtek.chalmers.se	       School of Computer Science & Engineering
				       G|teborg, Sweden
From: mouse@thunder.mcrcim.mcgill.edu
Newsgroups: comp.windows.x
Date: 17 Jul 92 19:02 MDT
Subject: Re: XGetWindowProperty
Nf-ID: #N:1992Jul17.150219.29188@thunder.m:-1417543791:001:677
Nf-From: thunder.mcrcim.mcgill.edu!mouse    Jul 17 19:02:00 1992


In article <6666@charon.cwi.nl>, huub@cwi.nl (Huub Bakker) writes:

> I want to change a window property using XChangeProperty.  This
> function requires a format parameter.  [wants to know how to choose a
> value for the format.]

This simply depends on whether the property should be viewed as a list
of 8-bit values, a list of 16-bit values, or a list of 32-bit values.
As simple examples, a text property like a window's name is a list of
8-bit values and would be stored with format 8; a property like
WM_COLORMAP_WINDOWS that is a list of X resource IDs is a list of
32-bit values and would be stored with format 32.

					der Mouse

			    mouse@larry.mcrcim.mcgill.edu

Newsgroups: comp.windows.x
From: mosh@robsv3.uucp ( Moshe Shemesh)
Subject: HyperCard & HyperTalk implementation over X/OpenLook
Keywords: Mac, HyperTalk, OpenLook
Organization: ROBCAD Software inc. Herzelia - ISRAEL
Date: Wed, 29 Jul 1992 23:13:14 GMT


Hello, Netlanders,

    Does anybody know about a commercial/public-domain implementation of Mac's
    HyperCard and HyperTalk for SUN's sparc over X/OpenLook?

    Do use e-mail. I don't read this newsgroup on a regular basis.

Moshe Shemesh
Just another System Administrator
ROBCAD software Technologies Ltd.
Herzelia - Israel

INTERNET:mosh%robcad@uunet.uu.net
UUCP:uunet!robcad!mosh

Beware of machines with big reset buttons in front - It means You will have to 
use it.
Newsgroups: comp.windows.x
From: daw@iwarp.intel.com (David A. White)
Subject: Scrolling a window....
Organization: Supercomputer Systems Division, Intel Corp.
Date: Mon, 27 Jul 1992 00:36:35 GMT

I have created a Motif application that allows the editting of a graph.
The graph is displayed inside scrolledwindow (application defined) on a 
drawing area widget

The Xlib code draws the graph directly onto the window, using
expose, resize, and motion events.

I wanted to scroll the contents of the window efficiently when the user uses 
the scrollbar.

I tried using XCopyArea() to do this by first copying from the window to a
Pixmap I created, and then copying from the Pixmap back to the window in a new
location.  This worked fine as long as there was no other window on top of the
window being scrolled.  However, if my drawingarea window was obscured, then
the first XCopyArea() would not get the correct information so garbage would 
appear in the window when it was copied back.  I could not get GraphicsExpose
events from this because the destination is not a window.

To fix this, I used XCopyArea() iteratively to move the window to itself in
pieces so GraphicsExpose events would be generated.  This worked, but is very
inefficient if the window is scrolled just a few pixels (requires 
WindowDimension/PixelChange XCopyArea() calls).

There MUST be an easy and efficient way to do this, but I can not figure
out what it is.

I did think about drawing everything into a Pixmap, and then only using
XCopyArea() to display it in the drawingarea window.  But then I would have to
rewrite a lot of code, and my code new works fine except for this problem.

Any suggestions would be greatly appreciated.  Email or a followup post is 
acceptable.

- Dave White  daw@iWarp.intel.com
--
Dave White
Compiler/Optimizer Group, iWarp Program, Intel Corporation
Cornell Oaks 4 (Zone 5), just right of A4, Mail Stop CO4-02
W: (503) 629-6315   H:(503) 645-5581
Xref: sparky comp.windows.x:14539 comp.windows.x.motif:5283
From: anand@pluto.sybase.com (Anand Sathe)
Newsgroups: comp.windows.x,comp.windows.x.motif
Subject: bringing up a shell from within a X program
Date: 27 Jul 92 22:20:44 GMT

Keywords: 

i want to do the following: i have an option in my menu very similar  to the ms-windows option - escape to dos shell. 
i basically want to exec a shell . however i want to maintain the look and feel of my application and so execing a
xterm is not what i want. any pointers/hints/code appreciated.
thanx
anand
Newsgroups: comp.windows.x
From: ccday@iscnvx.lmsc.lockheed.com (Coy C. Day)
Subject: Question: function key mapping
Organization: Lockheed Missiles and Space Co.
Distribution: na
Date: Thu, 23 Jul 92 18:17:48 GMT

Is there any way to define mappings from the function keys to
combinations (e.g. Ctrl-U, Alt-P) or sequences of keystrokes, external
to client applications?  Modifying source code is not a solution,
since the function keys will be used with a commercial CAD package.
Ideally this package would provide a mechanism for defining function
keys, but that's not the case.

If there are solutions that are somehow specific to a particular
window manager, I am especially interested in olwm or twm but would
like to hear about mwm as well.  Any ideas would be appreciated.


Clif Day                   ccday@austin.lockheed.com
Voice: (512) 386-4330      Fax: (512) 386-2724
Lockheed Missiles and Space Co., Inc., Austin Division
Org. T2-10, Bldg. 320, P.O. Box 17100, Austin, TX  78760
From: tpaquette@ita.lgc.com (Trevor Paquette)
Newsgroups: comp.windows.x
Subject: X: User simplicity vs code complexity
Date: 23 Jul 92 19:49:24 GMT
Organization: Landmark/ITA Inverse Theory and Applications


   I was talking to a cohort at work and we got to the subject of X and how
 many lines of code it takes to do things in X etc..

   I came up with "X is the perfect example of User simplicity is directly
 proportional to code complexity." Do you agree/disagree with this statement
 and why?

 To open up a window, create a button, attach a callback to that button
 when pushed, released and held, while tracking the mouse, takes up a alot
 of lines of code. (Granted that will take alot of lines in any GFX system
 but most likely more in X then any other)

   To know X and all the in/outs of it takes about 8 700 page manuals (O'Reilly
 & Associate) to learn. Is there ANYONE out there who knows EVERYTHING in
 these manuals? X is difficult to learn to program with, basically because
 you don't know where to start!! There are many calls that do basically the
 same thing (XAllocColor vs XAllocColorCells).

   How big is X going to get? When will it stop getting bigger? Who created
 this monster in the first place? Oh well.. back to those manuals..

--
Name : Trevor Paquette       | Landmark/ITA             |   _\___ Fahrvergnugen
Email: tpaquette@ita.lgc.com | Calgary, Alberta, Canada |  /     \____         
Visitor from CyberSpace      | (403) 269-4669           | / G60       \        
Renegade of Virtual Reality  | #include <disclaimer.h>  | \-O------O--/        
Newsgroups: comp.windows.x
From: mouse@thunder.mcrcim.mcgill.edu (der Mouse)
Subject: Re: Finding the current cursor
Organization: McGill Research Centre for Intelligent Machines
Date: Sat, 25 Jul 92 10:53:49 GMT

In article <1992Jul22.161928.19371@andersen.co.uk>, darby@andersen.co.uk (Dave Darby) writes:

> During an application I need to change the cursor, I do this with
> XdefineCursor.  I would like to be able to store the original cursor
> so that I can change it back.

This is not possible.  There is no way to find out what cursor a given
window is using, largely because there may no longer be any valid XID
for it.

If you just want to change the cursor for "busy cursor" purposes, you
may be interested in entry 118 from the FAQ.  (I can mail this entry,
or the whole FAQ, if necessary.)

					der Mouse

			    mouse@larry.mcrcim.mcgill.edu
From: uejiowh@dssv01.crd.ge.COM
Newsgroups: comp.windows.x
Date: 18 Jul 92 00:51 MDT
Subject: displaying a a gks metafile in X
Nf-ID: #N:9207172051.AA11926@dssv01.crd.ge:1684794021:001:399
Nf-From: dssv01.crd.ge.com!uejiowh    Jul 18 00:51:00 1992


Is there a package/way to display gks metafiles on X window system?

If there is enough interest, I will summarize.

thanks in advance,
Wayne Uejio             General Electric CRD   Disclaimer: opinions 
uejiowh@crd.ge.com      KWC-275                expressed are my own 
Office: 518-387-6441    P.O. Box 8             and not the company's
Fax:    518-387-7080    Schenectady NY 12301   opinion.
From: shpark@cosmos.kaist.ac.kr
Newsgroups: comp.windows.x
Date: 18 Jul 92 14:36 MDT
Subject: Need information on Serial X Termin
Nf-ID: #N:1992Jul18.103643.29464@kum.kaist:1207435086:001:851
Nf-From: cosmos.kaist.ac.kr!shpark    Jul 18 14:36:00 1992



Hi,

I am sorry, if it was discussed already. I haven't followed this newsgroup
lately.

I am developing a database for personal records with pictures on X. I hope
I can browse each record of this database by X terminal connected through
9600 Baud serial line. The record of this database is text only except the
label with pixmap for picture(100x100). So the traffic won't be that high. 
At the terminal, I will only use this application and xterm.

I found some discussion on LBX(Low Bandwidth X) in FAQ of X. But it doesn't
have product information on market. Could anyone help me ?

The best solution I am looking for is finding a serial X server on  PC
and using my 386 as X terminal.

Any help will be greatly appreciated.

Sunghun Park
Dept of Business Administration
Sung Kyun Kwan University
Seoul, Korea
e-mail : shpark@cosmos.kaist.ac.kr
From: brown@ftms.UUCP (Vidiot)
Newsgroups: comp.windows.x
Subject: Re: "Virtual Screens"
Keywords: virtual big window
Date: 21 Jul 92 21:20:51 GMT
Reply-To: brown@ftms.UUCP (Vidiot)
Organization: Vidiot's Other Hangout

In article <1992Jul20.110154.10511@avalon.nwc.navy.mil> dejesus@archimedes.nwc.navy.mil (Francisco X DeJesus) writes:
<I'm looking for a program that will run under SUN's OpenWindows that can
<make the physical screen act as a window to a larger, virtual screen. I
<imagine there are several around, so any opinions/experiences are most
<welcome.
<
<I have the index of programs posted to comp.sources.x, but the descriptions
<are not incredibly helpful, which is why I'm posting here. Thanks in
<advance...

You want olvwm (Open Look Virtual Window Manager).  Works great.
-- 
harvard\
  ucbvax!uwvax!astroatc!ftms!brown  or  uu2.psi.com!ftms!brown
rutgers/
INTERNET: brown@wi.extrel.com  or  ftms!brown%astroatc.UUCP@cs.wisc.edu
From: mfg@castle.ed.ac.uk (M Gordon)
Newsgroups: comp.windows.x
Subject: How do I build a sun server without PEX
Date: 21 Jul 92 07:49:57 GMT
Organization: Edinburgh University

I'm trying to build an X11R5 server without PEX and getting nowhere.
I added the line "#define BuildPex NO" to site.def as it says in the
release notes and did "make clean" followed by "make World" from the
top of the source tree, but I still get a server with PEX in it.
Have I missed something in the release notes, or is there something
else I need to set to get this to work?

Thanks in advance

-- 
                                                         _   _   _    _   _	
Michael Gordon - mfg@castle.ed.ac.uk OR ee.ed.ac.uk     | |_| |_| |__| |_| |   
EE Dept, Edinburgh University                           | . . . .      . . |    
It's not an optical illusion, it just looks like one    |_________|~~|_____|    
From: byrnes@hpfcso.FC.HP.COM (John Byrnes)
Date: Thu, 23 Jul 1992 18:00:26 GMT
Subject: Re: Looking for Shared-X utilities
Organization: Hewlett-Packard, Fort Collins, CO, USA
Newsgroups: comp.windows.x

> 
> I am looking for utilities to allow an X-application to be
> displayed on multiple workstations running X. I would like
> to use this to distribute images to multiple workstations
> in a broadcast mode over ethernet...
> 
> Sudhanshu Jain
> suds@adaptive.com
> 
Sudhanshu,

If you have an HP workstation (Series 300, 400, 700 or X-terminal) you
can buy HP SharedX, which is a supported product.  Briefly, here's a list
of features:

* No modification to existing applications (no re-linking etc)
* Only the sending machine needs SharedX (receivers do not need to be HP)
* You can share and unshare at any time, even after the application has
  been started.

* You can share multiple windows to mulitiple receivers at the same time.
* HP SharedX does translations between differing types of displays, font
  matching, color ramping, etc.
* The receivers can also input to the shared windows, at the discretion of 
  the sender.

* All sibling windows, pull-down menus, etc work as expected.
* There is a Motif user interface.
* Telepointers can be added to any window.
* Address books and aliases are built in.
* And more...

I humbly suggest, from experience, that other sharing utilities will not
meet your expectations, and will cost you much more in time and effort.

If you're interested, you can contact me for more info, or your local HP
Sales office.  A single user license is only $500.  $200 for media and
manuals.

John Byrnes
j_byrnes@fc.hp.com
(303) 229-3138
From: darby@andersen.co.uk (Dave Darby)
Newsgroups: comp.windows.x
Subject: Finding the current cursor
Summary: How do I find the current cursor for a window ?
Date: 22 Jul 92 16:19:28 GMT
Organization: Andersen Consulting (UK Practice)

I am using motif 1.1 and x11r4.

During an application I need to change the cursor, I do this with 
XdefineCursor.  I would like to be able to store the original cursor so
that I can change it back.  I have tried to retrieve the cursor with 
XtSetArg and XtGetValues with a resource of XmRCursor but this does not
work.

What am I doing wrong?  Any help would be much appreciated.

Thanks.

Dave.
From: tar@math.ksu.edu (Tim Ramsey)
Newsgroups: comp.windows.x
Subject: Problems with X11R5p14 clients using gcc 2.2.2
Date: 30 Jul 1992 06:15:52 -0500
Organization: Dept. of Mathematics, Kansas State University
NNTP-Posting-Host: hilbert.math.ksu.edu

I've built X11R5 fix 14 on a Sun3/80 running SunOS 4.1.1 using gcc 2.2.2.
I've defined the following in my site.def:

#define HasGcc YES
#define HasGcc2 YES
#define Gcc2BuildLibs YES

My only change to sun.cf was:

#define OSName            SunOS 4.1.1
XCOMM operating system:  OSName
#define OSMajorVersion    4
#define OSMinorVersion    1
#define OSTeenyVersion    1

#define SunPost411FCSLd	  NO

I haven't applied the 100170-6 patch.

Everything built fine.  However, programs that aren't linked with
libXt.so.4.10 fail when executed with the message

ld.so: Undefined symbol: _XtMalloc

This includes xset, twm, and xrdb.  When I add "-lXt" to the ld option
list the resulting executable works fine.

What's going on here?  Yes, _XtMalloc is defined in libXt, but why isn't
this a problem when I compile using cc and not gcc?  Is there a better fix
than relinking everything that dies to include -lXt?

Thanks in advance for any wisdom.

-- 
    Tim Ramsey, 913.532.6750
    Department of Mathematics
    Kansas State University
From: rct@fulcrum.bt.co.uk (Richard Taylor)
Newsgroups: comp.windows.x
Subject: Re: Server Code for FillPolygon
Date: 31 Jul 92 10:42:16 GMT
Distribution: comp.windows.x
Organization: Fulcrum Communications

In article <REZNIK.92Jul30141125@robios2.me.wisc.edu> reznik@robios.me.wisc.edu (Dan S. Reznik) writes:
>
>Problem: I want to write, on top of my draw-pixel routine a
>'fill-polygon' routine. I am curious to find out how this algm is
>implemented by the X-Server (go reverse-engineering :-) !!!).
>
>Where in the mit distribution could I find such code ? I am assuming
>such code would appear on the server side since 'FillPolygon' is a
>valid packet on the ICCCM protocol.

You want to start looking in the file <headofX>/server/ddx/cfb/cfbplyrct.c,
assuming you are working in colour (as 3-D folks do).

Unreadable? Yes, but's remarkably quick, due to in-line code, and assumptions
on layout of the co-ords. You are unlikely to improve more than a few percent
on this code, so use the same methods in your coding.

The code in cfbply1rct.c assumes a single rectangular clipping region, and that
the polygon is convex. (There's a get-out at the top of the code for non-convex
polygons - see below).

A simple-to-read equivalent to cfbply1rct.c is 
	<headofX>/server/ddx/mi/mipolycon.c.

You will find that polygons are filled a horizontal line of pixels at a time.
To do this you must be able to `step down` the two active edges of polygon,
and fill the pixels between them. The macro routine

	BRESINCRPGON (in miscanfill.h)

is similar to the Bresenham line-drawing algorithm (see any good graphics book
like Foley & Van Damme) but I believe the way that polygons are filled is by
the DDA method. I never understood why the writers used the BRES name. It
should be DDAINITPGON, and DDAINCPGON, but I digress.


There's a get-out at the top of the code for non-convex polygons which uses a
more general polygon fill routine, in
        <headofX>/server/ddx/mi/mipolygen.c.

Since you have control of the image, you can assume no clipping, which speeds
things a little, but if you have non-convex polygons (and 3-D folks SHOULDN'T)
then you are in for a far tougher time.

>Question: Has anyone tried to do what I am doing ? Is this a good idea ?
>Isn't it frustrating that Xlib doesn't provide a XFillPolygon*s*
>routine ??? Can anybody tell me why this was not done ???????
>

Why not write an extension X call and donate it to the X Consortium?
There are plenty of examples of how such extensions can be written in
	<headofX>/extensions/server

============================================================================
Richard Taylor                 DoD #981               (rct@fulcrum.bt.co.uk)
"Gentlemen, starta your engines... 2 minutes, to the hills." Massimo Laverda
============================================================================
Fulcrum Communications Ltd., Fordrough Lane, Birmingham, B9 5LD, ENGLAND.
Newsgroups: comp.windows.x
From: gaissmai@rzmain.rz.uni-ulm.de (Karl Gaissmaier)
Subject: NCD Terminals und access-control problems
Organization: Universitaet Ulm
Date: Wed, 22 Jul 1992 08:03:34 GMT

Hello

i have an NCD19c X-terminal and i'm not able to set the access
control so that _NO_ host after startup has the possibility to write
on my xterm. the xdm-host has at Session-startup always the
right, and that is not fine. After login over xdm you has
always to disallow the xdm-host with xhost explicit.

Configuration:

NCD19c with 2.4.Q beta #2024 10/05/91 server-software
BootMonitor V.2.3.1

(xdm from X11R5pl12, running on a DecStation 5000/200 Ultrix 4.1A)

but that's a problem from NCD, i'm sure.

xdm-config-File:
================
#
DisplayManager.xterm4_0.authorize:              true
DisplayManager.xterm4_0.authName:               MIT-MAGIC-COOKIE-1
#

xterm-configuration-File:
=========================
# Access control
xhosts = default                                # defaults to nohost
tcp-ip-access-control = on                      # {off, on}
ncdnet-access-control = on                      # {default, off, on}

thanks for any hints
Charly
=========================================================================
Karl Gaissmaier                      gaissmai@rzmain.rz.uni-ulm.de
Rechenzentrum Uni Ulm               
Albert Einstein Allee 11             Telefon: (Germany) 0731/5022499
W-7900 Ulm / Germany                 Telefax: (Germany) 0731/5022471
=========================================================================
Newsgroups: comp.windows.x
From: ware@organ.cis.ohio-state.edu (Peter Ware)
Subject: Re: Can Primitive widgets be parents?
Originator: ware@organ.cis.ohio-state.edu
Organization: Ohio State Computer Science
Date: Mon, 27 Jul 1992 20:40:37 GMT

> Can Primitive widgets be parents?
Any widget can have as many popup children as desired -- it is
primarily a conveniant method of getting properly qualified resource
names.

Also, as long as it is never managed a Primitive widget can have
children created with XtCreateWidget().  For most applications this is
not a useful thing although it is not unreasonable for a widget to
create other widgets this way.

> And in the same page, they create two buttons, but with same widget name
> "button":
>
> Widget button;
>
> button = XtVaCreateManagedWidget("PushMe-1", xmPushButtonWidgetClass, parent,
>            NULL);
> button = XtVaCreateManagedWidget("PushMe-2", xmPushButtonWidgetClass, parent
>            NULL);

This is because the application does nothing further with the "button"
widget.  It would have been just as valid (ignoring error checking) to
write:

	(void) XtVaCreateManagedWidget("PushMe-1", xmPushButtonWidgetClass,
					parent, NULL);

and discard the return value.
--
Pete Ware / Ohio State University /
           ware@cis.ohio-state.edu
           (614) 538-0965
Too bad the Nike slogan isn't "Just Do It Right" instead of "Just Do It"
From: jmn@cadix.enpc.fr (Jean-Michel NATAF)
Newsgroups: comp.windows.x
Subject: Visualization of colors,given RGB  code
Date: 31 Jul 92 14:46:53 GMT
Organization: Ecole Nationale des Ponts et Chaussees

Hello! I do not know if this is the right news group, but here goes:
Is there a utility/program/shareware/freeware visualizing (for
example in a small icon) the color corresponding to
a user supplied RGB code?
I am posting this question for a friend. Please Email any answer
to ew%spinoza@enpc.fr
Thank you very much in advance,
	JM

-- 
-----------------------------------------------------------------------------
Jean-Michel Nataf  Groupe Informatique et Systemes Energetiques GISE EMP-ENPC
Tel: +33 1 43044098 app 3471 FAX: +33 1 43046364            La Courtine Cedex
Internet: jmn@enpc.fr                                  F-93167 Noisy le Grand
"These things go beyond us, let us claim we initiated them"
-----------------------------------------------------------------------------
Newsgroups: comp.windows.x
From: sinan@mtesol.boeing.COM (Sinan Karasu)
Subject: Re: What is Devguide?
Organization: The Internet
Date: Tue, 28 Jul 1992 00:35:08 GMT


In article <5392@dsacg3.dsac.dla.mil> nfs1675@dsacg3.dsac.dla.mil (Michael S Figg) writes:
>
>Can anybody tell me what devguide is? I have seen it in reference to X but
>don't know if it is directly related. (Wouldn't it be Xdevguide if it was?).
>
>Thanks, Mike

DevGuide is a GUI builder tool that runs on Sun SparcStations and generate 
XView code.We use it around here for developing virtual instruments
(such as oscilloscopes etc....). It is wonderful......
Once you have designed your interface ( buttons,sliders,canvasses gauges,
pop ups etc... all in anywhere from 5 minutes to a couple of hours), you
can run one of many programs that will give you a c,c++,Ada code in xview
or c code in olit...
Ask your Sun SE........
Sinan

Newsgroups: comp.windows.x