HDTenEightyP/NetNews huggingface dataset:
From: uclyjjd@ucl.ac.uk (Julian Daley)
Newsgroups: comp.windows.x
Subject: xvgr & Hummingbird PC X server
Keywords: xvgr
Date: 16 Nov 92 10:48:43 GMT
Organization: Bloomsbury Computing Consortium

I'm having trouble getting xvgr to run on my PC, which is
running the Vista-eXceed X server software from Hummingbird.
(I think it's only called Vista-eXceed in the UK)

xvgr runs ok on our Sun workstations, but when run from an
olwm (version 3) window the canvas never gets anything drawn
on it.  All the menus, buttons etc work, but the canvas is
permanently blank.

I get an error message when xvgr starts up which says:-

XView warning: Problems setting default modifier mapping (Server package)

Can anyone shed any light on this ?  Maybee I should have some
application default files set up ?

Thanks,
Julian.

--
        _____________________________________________________
       | Julian Daley,                     j.daley@ucl.ac.uk |
       | Department Clinical Physics, Guys Hospital, London. |
        ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
From: brennan@seismo.CSS.GOV (Mary Ann Brennan)
Newsgroups: comp.windows.x
Subject: Re: WCL Template directory
Date: 20 Nov 92 21:24:18 GMT
Organization: Center for Seismic Studies, Arlington, VA


In article 61735 I asked what I was missing to be able to use template files
not in the current directory.  I have since learned that *WclTemplateFiles:
must have the full path name and .wcTemplate: must not.
	Saving you the trouble of replying,
	Mary Ann Brennan
Newsgroups: comp.windows.x
From: u438813@imux120.ncu.edu.tw (Lin Wei-Ting)
Subject: How to fill a closed region?
Reply-To: u438813@imux120.ncu.edu.tw
Organization: Sun Microsystems, Inc.
Date: Tue, 17 Nov 1992 07:21:42 GMT

I want to find a algorithm to fill a closed region.
Thanks a lot.

Newsgroups: comp.windows.x
From: ns14@crux2.crux2.cit.cornell.edu (Nathan Otto Siemers)
Subject: Simple question I hope :)
Organization: Department of Chemistry, Cornell Univ.
Distribution: comp
Date: 23 Nov 92 19:24:41


	Say "my friend" uses a number of different X terminals.  Some
are Black and White, some greyscale, some color.  How does he get the
color terminals to use color while making sure the B&W terminals get
only black & white?  I would think that one could write a script to
look up the hostname in some list you had made, but in this case there
are many many terminals.  Is there any enviroment variable-like entity
that would tell you?  

Thanks in advance, I did look at the faq.

--
--
/  | / /__|  /  /---/ /__| /  | /    nathan@chemres.tn.cornell.edu
Newsgroups: comp.windows.x
From: sxx4519@ultb.isc.rit.edu (S.X. Xue)
Subject: Starter needs help!
Originator: sxx4519@ultb
Reply-To: sxx4519@ultb.rit.edu ()
Organization: Rochester Institute of Technology
Date: Mon, 16 Nov 1992 15:43:13 GMT


I recently installed a copy XFree86 on my newly installed 386BSD. I am
experiencing many problems. Hope experts out there would help me out.

Hardware:
   40 MHz 386DX
   AMI BOIS 7/7/91
   No math coprocessor
   8 meg ram
   200 meg and 40 meg IDE drives
   Fahrenheit 1280 vedio card
   Mousesystems serial mouse (com1)

OS:
   386BSD binary distribution from agate.berkeley.edu
   No source distribution, no etc dirstribution
   Updated kernel for XFree86
   XFree86 bininary distribution from the same ftp host
   X server is set to X386mono (trying to start generic VGA mode)

Problems:
   Printer driver missing (/dev/lp)
   C compiler does not work with floating point numbers
       -- all numbers are rounded off to intgers
   Mtools does not work,
       message-- init: open: No such a file or dirctory
   X server will not start,
       message-- Fatal I/O error 32. Broken pipe on X server...


Newsgroups: comp.windows.x.intrinsics
From: raju@sol.cs.wmich.edu (Venkat C. Raju)
Subject: FTP site for examples of Asente & Swick's Xt book ?
Keywords: examples
Organization: Western Michigan Univ. Comp. Sci. Dept.
Date: Sun, 15 Nov 1992 17:53:57 GMT

Hi,

Is there any an ftp site for the examples given in the book :

Asente, Paul J., and Swick, Ralph R., "X Window System Toolkit, The
        Complete Programmer's Guide and Specification", Digital Press,
        1990, ISBN 1-55558-051-3, order number EY-E757E-DP; and by
        Prentice-Hall, ISBN 0-13-972191-6. Also available through DEC
        Direct at 1-800-DIGITAL.

If someone knows of any site, please do post it on the net. I searched through 
all the faqs without any success. Maybe there isn't one !
-regards,

Venkat Raju			 	  		   raju@cs.wmich.edu
----------------------------------------------------------------------------
Newsgroups: comp.windows.x.intrinsics
From: svdhara@mongoose.syr.EDU ()
Subject: x3270
Organization: Syracuse University, Syracuse, NY
Distribution: usa
Date: Sun, 15 Nov 92 11:14:00 EST



  We work on Sun O.S. 4.1.2 X11 R4 Openwin.v3. 
When we try to run x3270 on this environment,the following 
error message comes: 
 
Warning: Cannot convert string "3270" to type FontStruct 
 
In addition,the screen is garbled. 
 
I have checked the font.dir and it is in the font path. 
I also tried to include the fonts in the current directory and add the 
current directory to the font path with: 
 
xset +fp [path]  
xset fp rehash 
 
But still ,the error message persists. 

In the Makefile,TOP=. (TOP is defined as current dir.).Is this affecting
the execution of x3270?

If you can go through my Makefile and suggest a solution,please let me know.
I will immediately mail it you.
  
Can you  suggest a solution? 
 
Sastry Dhara
From: svdhara@rodan.acs.syr.edu
Newsgroups: comp.windows.x.intrinsics
Subject: x3270
Date: 15 Nov 92 20:29:11 GMT
Organization: Syracuse University, Syracuse, NY



 THANKS TO ALL WHO HELPED ME FIX x3270 bug.

 Thanks for your advice in helping me fix x3270 problem.The
following sequence of operations helped me do it:

 1) make

    2)convertfont -v 3270.bdf

    3)xset +fp (current-dir path) --- I copied all font files to cur-dir

    4)xset fp rehash

    5)x3270 ibm-host ( x3270 suvm)  -- suvm is the ibm-host


Thanks.

Sastry Dhara  
Network Systems
Syracuse University
Syracuse,NY 13210   Ph:(315)445-7035
                    email:svdhara@mailbox.cis.syr.edu
Xref: sparky comp.windows.x.intrinsics:553 comp.windows.x:19392
From: oj@miki.pictel.com (Oliver Jones)
Newsgroups: comp.windows.x.intrinsics,comp.windows.x
Subject: Re: How many GCs should I use for this....?
Date: 20 Nov 92 14:23:38 GMT
Organization: PictureTel Corporation

In article <1992Nov19.123528.27151@dcs.warwick.ac.uk> robin@dcs.warwick.ac.uk (Robin A Rainton) writes:

>I'm writing a widget in Xtoolkit to display a page of Viewdata text.
>A pointer to a class holding this text is passed to the widget which
>must write characters in various combinations of foreground and
>background colours into a window.
>
>By my reckoning text will mainly have a black background with odd
>occasions that might use other background colours.
>
>  i) I can use one context and use XChangeGC to change it's foreground
>and background colours to those needed whenever a different
>combination of colours is needed.

Yes.  But, if you plan to change the GC, make sure you allocate it
with XCreateGC, not XtGetGC.  Also, make sure you allocate a new GC
for each instance of your widget.

IMHO, the only reason to preallocate lots of GCs for lots of color
combinations would be if your application contained dozens and dozens
of instances of your view data widget.  XChangeGC has a very small
overhead when all you're doing is changing colors.  (So do
XSetForeground / XSetBackground pairs, which are optimized so they
don't cost any more than XChangeGC.)

The decision is really about whether you want to share GCs between
instances of your widget. IF you have, say, 50 instances of your
Viewdata widget in your application program, and each of them needs 2
read-write GCs, you'll initialize and create 100 GCs.  This will 
slow initialization.

If on the other hand, you have 50 instances, and they can share 56 GCs
(shared GCs are allocated with XtGetGC) then you'll only have to create
56 GCs.  Widget classes like buttons take advantage of shared GCs.

If you only have one or two instances of your widget in a typical
program, it makes no sense to create 56 GCs, even if they can be shared.
Newsgroups: comp.windows.x.intrinsics
From: drand@spinner.osf.org (Douglas S. Rand)
Subject: Looking for Charles Haynes
Organization: Open Software Foundation
Date: Wed, 18 Nov 1992 18:29:01 GMT

I understand he used to be at Dec WRL.  Anyone out there have a 
pointer to him?

-- 
Douglas S. Rand <drand@osf.org>		OSF/Motif Dev.
Snail:         11 Cambridge Center,  Cambridge,  MA  02142
Disclaimer:    I don't know if OSF agrees with me... let's vote on it.
Amateur Radio: KC1KJ
Newsgroups: comp.windows.x.intrinsics
From: dharma@rs6419.ecs.rpi.edu (Andreas Budi Dharmawan)
Subject: Public Domain Widgets
Keywords: Costumized widgets
Reply-To: dharma@rpi.edu
Organization: Rensselaer Polytechnic Institute, Troy, NY.
Date: Sun, 22 Nov 1992 19:39:19 GMT

Dear X fans:

I'm looking for public domain customized widgets. Is there an
ftp site out there that has such library? The widgets I have
in minds are: dial widget, speedometer-like widget, funky alert
light, toggle with metal bar, etc.

Could you respond directly to dharma@rpi.edu since I don't
check this newsgroup regularly.

Thanks a lot in advance.

- Andreas Dharmawan -
   dharma@rpi.edu
From: haynes@Apple.COM (Charles Haynes)
Newsgroups: comp.windows.x.intrinsics
Subject: Re: Looking for Charles Haynes
Date: 23 Nov 92 22:35:53 GMT
Organization: Apple Computer Inc., Cupertino, CA

Hi,

I used to be at the late, somewhat lamented DEC *WSL* but am now at Apple. I
haven't done X Intrinsics work for years now though. I only wanted X and
the intrinsics so that I could write good user interfaces for integrated
program development environments.

What can I do for you?

	-- Charles
From: Markku.Savela@tel.vtt.fi (Markku Savela)
Newsgroups: comp.windows.x.intrinsics
Subject: What is the correct method of getting Visual from a Widget?
Date: 22 Nov 1992 12:24:26 GMT
Organization: Technical Research Centre of Finland
Distribution: world
Reply-To: savela@tel.vtt.fi (Markku Savela)
NNTP-Posting-Host: tel4.tel.vtt.fi


When writing a widget, I need to find out the current Visual (class)
associated with the widget. There doesn't seem to be any function
XtVisual or such. Is the following method the only way to do it?

	...
	#include <X11/ShellP.h>
	Widget w; Visual *v;

	while (!XtIsShell(w))
		w = XtParent(w);
	v = (ShellWidget)w->shell.visual;

I don't really like this very much. Too many uncertainties. Do I
really get the right visual every time, regardless how the application
created the widget: directly to the widget returned by
XtAppInitialize? or to some popup shells etc (popup shell can have
different visual from the one created by XtAppInitialize?)

--
Markku Savela (savela@tel.vtt.fi), Technical Research Centre of Finland
Telecommunications Laboratory, Otakaari 7 B, SF-02150 ESPOO, Finland
Xref: sparky comp.windows.x.intrinsics:547 comp.windows.open-look:4570
From: johng@cres1.anu.edu.au (John Gallant)
Newsgroups: comp.windows.x.intrinsics,comp.windows.open-look
Subject: SUMMARY: Linking, undefined symbols get_wmShellWidgetClass .. Help please
Date: 18 Nov 1992 23:23:16 GMT
Organization: CRES, Australian National University
Distribution: world
NNTP-Posting-Host: 150.203.59.4

In article <1dul2nINNr4t@manuel.anu.edu.au> I wrote:

>I have an application I have written using the Athena widget set running
>on several flavours of Sun-4 under OpenWindows 2. I recently sent a copy
>off to some colleagues to compile on their Sun (also a Sun-4 I think,
>forgot to check this) which has OpenWindows 3. They got two undefined
>symbols at link phase (these were dictated over the phone so there may
>be slight errors):
>
>	get_wmShellWidgetClass
>	get_applicationShellWidgetClass
>
> etc...

I have had a number of replies pointing out a workaround and quite a few
asking to pass on the information I get. It turns out this is in the
comp.windows.x FAQ list, and I apologise for not looking there before I
posted and there is a permanent solution as well as the workaround most
people seem to know about. Here is the section from the FAQ, courtesy of
David B. Lewis (dbl@visual.com):

----------------------------------------------------------------------
Subject:  94)  What is this strange problem building X clients on SunOS 4.1.2?

	In SunOS 4.1.2 Sun fixed a shared-library bug in ld which conflicts
with the way X11R4 builds the shared Xmu library, causing these symbols to be
undefined when building some X11 clients: 
	_get_wmShellWidgetClass
	_get_applicationShellWidgetClass
Compiling "-Bstatic -lXmu -Bdynamic" appears to work. 

To solve the problem if you are using OpenWindows 3.0 (X11R4-based Xt), please 
contact your local Sun office and request the following patches:

Patch i.d.      Description
100512-02       4.1.x OpenWindows 3.0 libXt Jumbo patch
100573-03       4.1.x OpenWindows 3.0 undefined symbols when using
                        shared libXmu

[Greg Earle, earle@Sun.COM; 7/92] 
----------------------------------------------------------------------

Thank you David.

-- 
    John Gallant           johng@cres.anu.edu.au  "Every \item command in
Centre for Resource and      ph: +61 6 249 0666    item_list must have an
 Environmental Studies      fax: +61 6 249 0757    optional argument".
Australian National University                     Leslie Lamport, LaTeX
From: okeefe@cs.Buffalo.EDU (Paul O'Keefe)
Newsgroups: comp.windows.x.intrinsics
Subject: Waiting on an event rather than using a handler?
Date: 18 Nov 92 09:07:38 GMT
Organization: State University of New York at Buffalo/Comp Sci
Originator: okeefe@dubhe.cs.buffalo.edu


I find installing and then removing an event handler (or translation)
inside the same callback to be overkill.

Is there a way in Xt to just block until a widget receives a certain event?

-Paul O'Keefe
Newsgroups: comp.windows.x.intrinsics
From: amc@WLV.IIPO.GTEGSC.COM (Allen M. Cohen)
Subject: sub-event loops
Keywords: synchronous
Organization: GTE Government Systems
Distribution: usa
Date: Wed, 18 Nov 92 01:12:49 GMT

What are the pros and cons of using sib-event loops.  I find it useful
for code that does a query and can't do anything else until the query is
done.  Also as in the askuser() routine in Vol 6. -- i.e. "Do you really
want to do this" type dialogs.


-- 
<> Allen M. Cohen -- Autologic, Inc. 1050 Rancho Conejo Blvd.,T.O. Ca.91320 <>
<> 1853 Stonesgate St.             Internet:  amc@IIPO.GTEGSC.COM           <>
<> Westlake Village, Ca. 91361     Telephone: (805) 498-9611 ext. 195       <>
<><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><>
Newsgroups: comp.windows.x.intrinsics,comp.windows.x.motif
From: fineman@tatertot.arc.nasa.gov (Charles Fineman)
Subject: Anti-social translations
Organization: NASA/ARC Information Sciences Division
Distribution: comp
Date: Mon, 23 Nov 1992 19:45:32 GMT


I'm not sure I expect a solution to this problem (though it would be
nice), I'm more interested in seeing if others share this complaint
with me.

I have a problem with the way translations are interpreted/specified.
Case in point, the MOTIF toggle button widget. The default translation
for this widget specifies that the "BSelect Release" event causes the
value changed callback to be invoked. In one of my applications, I
want to do something different if the the button is pressed while the
shift key is held down. Unfortunately, the way such translations are
interpreted, this particular translation will trigger no matter what
modifiers are active when the button is released. 

I'd like to avoid having to explicitly override this translation and
hand-code the more specific one (i.e. the same as the original action
for the translation but quantify the event to only match if no modifiers
are active.) 

It seems to me that pre-packaged widgets should not use such general
translations. It makes it difficult to extend the widgets in a natural
way.


--
Newsgroups: comp.windows.x.intrinsics,comp.windows.x
From: robin@dcs.warwick.ac.uk (Robin A Rainton)
Subject: How many GCs should I use for this....?
Organization: Department of Computer Science, Warwick University, England
Date: Thu, 19 Nov 1992 12:35:28 GMT

Hi,

I've got a question, which will probably not have a right or wrong
answer, but I'm new to Xt programming and would be interested to find
people's oppinions on this...

I'm writting a widget in Xtoolkit to display a page of Viewdata text.
A pointer to a class holding this text is passed to the widget which
must write characters in various combinations of foreground and
background colours into a window.

By my reckoning text will mainly have a black background with odd
occasions that might use other background colours.

As I say, I'm new to programming in X, but as far as I can see I have
to allocate a graphics context (which will specify which font and
colours text will be drawn in) and then use it to paint characters in
a window.

My dilema is thus:

  i) I can use one context and use XChangeGC to change it's foreground
and background colours to those needed whenever a different
combination of colours is needed.

 ii) I can allocate 8 contexts, 7 with a black background that will be
used most commonly, and an 8th that will be used as described in the
first case to write all other colours. This would reduce the number of
calls to XChangeGC needed.

iii) I can allocate 56 contexts for every possible combination of
colours (only 56 are needed as I can write a space at a location for
any character with the same fore and background colour).

I don't know the implications of any of these methods, the processing
required to change a GC, the memory used when one is allocated, etc.

Anybody that can shed any light on these issues will be of great help.

Thanks in advance,

	Rob.

(robin@dcs.warwick.ac.uk)
From: ware@oboe.cis.ohio-state.edu (Peter Ware)
Subject: Re: What is the correct method of getting Visual from a Widget?
Originator: ware@oboe.cis.ohio-state.edu
Organization: Ohio State Computer Science
Date: Mon, 23 Nov 1992 18:13:32 GMT

Unfortunately, there is not a reliable way to obtain the visual being
used.  My only suggested improvement is to use XtGetValues (XtNVisual)
to obtain the resource.  That way if some widget other then a Shell
has visual you will get it.

--pete
--
Pete Ware / Ohio State University /		228 Bolz Hall  (614) 292-7318
           ware@cis.ohio-state.edu		2036 Neil Ave.
           (h) (614) 538-0965			Columbus, OH 43210
Welcome William Patrick Ware to the world!  Born 10/21/92, 8lbs 6.2oz (3.83kg)
Newsgroups: comp.windows.x.intrinsics
From: alsaggaf@athena.mit.edu (M. Saggaf)
Subject: Specifying an array of strings in the resources
Organization: Massachusetts Institute of Technology
Date: Thu, 19 Nov 1992 18:18:49 GMT


(The first time I posted this didn't seem to go through, sorry if you
see it twice).

A simple question that I couldn't find an answer to in the FAQ: How
does one specify an array of strings in the resources (e.g. in the
app-defaults file)? Accoring to the FAQ, support for this has been
added in R5, but it doesn't specify how it could be done.

Please answer via e-mail, if possible. Thanks.

--
/M. Saggaf
 alsaggaf@athena.mit.edu


Newsgroups: comp.windows.x,comp.windows.open-look
From: eyring@cc.utah.edu
Subject: xwd 's of very large windows ???
Organization: University of Utah Computer Center
Date: 19 Nov 92 04:40:40 MDT

xwd 's of windows that are bigger than the screen size?
 
I am using olvwm (open-look virtual window manager)
to get very large windows which exceed the
physical screen size.  Unfortunately, xwd and all other 
window dumping utilities I have come across only dump the 
physical screen size.
 
Does anyone know how to get window dumps of these large
windows?
 
-- 
>Bob Witmer
>Eyring Corp., Flight Simulation Div.
>Salt Lake City, Utah
>eyring@cc.utah.edu
From: jimf@centerline.com (Jim Frost)
Newsgroups: comp.windows.x
Subject: Xloadimage version 3.03 available on export.lcs.mit.edu
Date: 16 Nov 1992 22:44:30 GMT
Organization: CenterLine Software, Inc.
NNTP-Posting-Host: 140.239.3.202

Xloadimage version 3.03 is now available for anonymous ftp from
export.lcs.mit.edu /contrib/xloadimage.3.03.tar.Z.  This is primarily
a bug-fix release -- it fixes all of the known common bugs.

Version 3.03 contains the following bug-fixes and enhancements over
version 3.01:

* JFIF-style JPEG images are now supported.
* Color PCX files are now supported.
* -zoom now works with 24-bit images.
* -rotate now works on all systems at all multiples of 90 degrees.
* A bug in root window handling for DEC and NCD servers has been
  fixed.
* A bug in -normalize has been fixed.
* Several bugs in -smooth have been fixed.
* Several bugs in -merge have been fixed.
* The man page now gives correct information on slideshows.

If you do not have ftp support I can email copies, but I would prefer
not to do so as the shar files total approximately 650k (the JPEG
loader is most of the increased size).  I'm working on a way to reduce
the transmission requirements but they will be significant
in any case.

Diffs are not currently available.

Enjoy,

jim frost
jimf@saber.com
From: mouse@thunder.mcrcim.mcgill.edu (der Mouse)
Newsgroups: comp.windows.x
Subject: Re: The GC in XCopyPlane
Date: 20 Nov 92 09:52:30 GMT
Organization: McGill Research Centre for Intelligent Machines

> Distribution: comp

Please don't misuse newsgroup hierarchy names as distributions.

In article <IDF.92Nov13023005@fat-controller.cs.bham.ac.uk>, idf@cs.bham.ac.uk (Ian Fitchet) writes:

> Being a pseudo-ignoramous I merrily copied the code from O'Reilly
> Vol4 involving XCopyPlane.  All was well until I actually tried the
> code out on a colour monitor (worked fine on a monochrome - the
> XCopyArea bit).  [used own gc rather than screen default gc]

> [ Code showing how gc in use was created, with "pixmap" as the
>   drawable in the XCreateGC call.  We are not shown anything else
>   about this object. ]

> [This gc] differed in only two respects from the GC returned by
> DefaultGCOfScreen().  Firstly, it had a different gid (== GC id??)
> and secondly the values of foreground and background were reversed.

I suspect it also was only one bit deep, whereas the default GC was as
deep as the default visual (probably 8 bits).  The GC you create will
be as deep as "pixmap"; you didn't show enough code for me to determine
how deep this is, but I suspect it's only one bit.

> When I invoked XCopyPlane with my GC I had a BadMatch error.

This is normal if the GC is in fact not the same depth as the
destination drawable - the GC you pass to XCopyPlane must be compatible
with the *destination* drawable, not the *source* drawable.

					der Mouse

			    mouse@larry.mcrcim.mcgill.edu
From: snail@lsl.co.uk
Newsgroups: comp.windows.x
Subject: Re: Load pixmap into pixmap
Date: 16 Nov 92 17:48:09 GMT
Organization: Laser-Scan Ltd., Cambridge

In article <1992Nov7.142104.23123@alf.uib.no>, singg@alf.uib.no (Kurt George Gjerde) writes:
> I use the following code for loading a pixmap and drawing it inside
> another pixmap:
> Are there any faster ways to do this?? 
[deleted...]
>                 if (XGetGeometry(dpy,userpixmap, &d_root, &d_x, &d_y, &width,
>                              &height, &d_border_width, &d_depth)) {
> 
>                    image  = XGetImage(dpy, userpixmap, 0,0, width, height,
>                                        1, XYPixmap);
> 
>                    XPutImage(dpy,win, gc,image,0,0,posX,
>                              posY,image->width, image->height);
>                    XPutImage(dpy,pixmap, gc,image,0,0,posX,
>                              posY,image->width, image->height);

swap the second XPutImage with an XCopyArea from the 'win' to the 'pixmap'.
as follows:-
                     XCopyArea(dpy, win, pixmap, gc,
                               0, 0, image->width, image->height,
                               PosX, PosY);
> 
>                    XFree(image);
>                 }
-- 
snail@lsl.co.uk      

You Have To Remember, You Need To Beleive,
The Time Has Past, Dust In The Leaves.
Newsgroups: comp.windows.x