HDTenEightyP/NetNews huggingface dataset:
From: s8923098@macnab.mqcs.mq.oz.au (Josef WIDJAJA)
Subject: Re: XPutPixel and and XGetPixel and image layout
Organization: Macquarie University, School of Mathematics, Physics, Computing and Electronics
Date: Thu, 10 Sep 1992 02:38:21 GMT

In article <1992Sep9.130723.9938@city.cs> lionel@cs.city.ac.uk (Lionel Tun) writes:
|Re: The discussion about using images directly rather than going
|    through XPutPixel.
|
|I also would like to simply load the raw data into an array and
|display it in a window - simple no?
|
|I tried the following but got structured garbage instead of my
|graphic:
|
|	xi = XCreateImage(display, DefaultVisual(display, screen_num),
|		1, XYBitmap, 0, image, width, height, 8, 0);
                                ^^^^^
Make sure image is a pointer to or an array of char. I personally
think that it can be easily confused with a pointer to XImage.


|
|	XPutImage(display, win, gc, xi, 0,0, 0,0, width, height);
                                   ^^^^

Before you do XPutImage you will want to assign xi->data to point 
to image. You should have:

       xi->data = image;
       XPutImage(....etc...);

Other than that, I can't see anything wrong with your code. The fact
that you got 'structured' garbage probably indicates that there is nothing
wrong with your code above, you probably did not manipulate the image data
correctly. 


|
|image is an array holding the data
|the platform is a b+w Sun 4 running OpenWindows
|

--
 _________Josef Widjaja____________  
|  s8923098@mackay.mpce.mq.edu.au  |
|  Macquarie University, Australia | 
|__________________________________| 
Newsgroups: comp.windows.x
From: perry@sun1.coe.ttu.edu (Dr. Matt Perry)
Subject: XVision Problems --- Ooop Ack!!!!!
Organization: Texas Tech University
Date: Fri, 11 Sep 1992 02:15:38 GMT
X-Posted-From: sun1.coe.ttu.edu
X-Posted-Through: sol.ctr.columbia.edu

Hi,

I have been having trouble running some X11R4 clients in VisionWare's
XVision package.  I have been in contact with Unipress (Visionware's
US tech support) for THREE weeks now and have gotten nowhere.  I need
to run some of these clients on my PC as our limited sun terminals
are busy with students.

My problem is that when I run clients that use lots of colors there
is an error message from FTP's TCP/IP ddl talking about buffers or some
damn thing.  If the real Visionware people are reading this how about
getting on this and try and help me.  The support I feel I have 
received for the monies spent is certainly not appropriate.  Three
weeks may not seem like a lot to you but when you have work waiting
on your software it is alot of time.

Other pertinent info, these clients ran just fine under Windows 3.0 
and no I cannot switch back.  As an example I cannot run xgif with
the earth.gif file found in archives (255 colors).

Let's here from the real Visionware people that I know exist.

Thanks

Matt Perry

-- 
------------------------------------------------------------------------
Matt Perry, PhD                      Electrical Engineering
Assistant Professor                  Texas Tech
Voice: (806) 742-3489                Box 43102
e-mail: perry@sun1.coe.ttu.edu       Lubbock, TX, USA  79509-3102
------------------------------------------------------------------------
Newsgroups: comp.windows.x
From: aardvark@nt1l.krl.com (Donald Koch)
Subject: Re: .xbm files
Organization: Koch Research Labs
Date: Mon, 7 Sep 1992 20:24:46 GMT

In article <1992Sep7.085104.1@sissa.it>, valente@sissa.it writes:
> Hope this question is not *TOO* trivial:

It is, but I'll answer it anyway. :-)

> What are .xbm files?

X Bitmap files.  They are used for icons and other images.  They
only support two colors - foreground and background (e.g., black
and white).

-- 
Don Koch
aardvark@nt1l.krl.com
Newsgroups: comp.windows.x
From: oj@miki.pictel.com (Oliver Jones)
Subject: Re: "Copyright" problem
Keywords: copyright
Organization: PictureTel Corporation
Date: Sun, 6 Sep 1992 11:58:27 GMT

In article <21537@optima.cs.arizona.edu> azhao@cs.arizona.edu (Qiang Alex Zhao) writes:

>The original author said in [some] code:
>	Copyright (C) 1988	Dr. X Y Z
>	Permission is granted to modify and re-distribute this code in
>	any manner as long as this notice is preserved. All standard
>	disclaimers apply.

>At this point I want to "modify and re-distribute" the program. And I
>want to have my "copyright" without violating copyright rules, although
>mine will be much similar to the original one.

Here's what I've done when I've copied code like this:

  Copyright (C) 1992      Oliver Jones
  Copyright (C) 1988      Dr. X Y Z
  Permission is granted to modify and re-distribute this code in
  any manner as long as this notice is preserved. 

>All standard disclaimers apply.

I don't put this line in my own work because it doesn't mean anything.
(I do leave it in a notice written by somebody else, because the
condition they imposed is that I preserve their notice.)  I do put
something like this:

  The copyright-holders make no representations about the suitability of
  this software for any purpose.  It is provided "as is" without express
  or implied warranty.

Actually, I really like the copyright notice the Digital and MIT
lawyers came up with for the X11 source.  I usually adapt it to my
purposes.  Look at Xlib.h.  (I hope the notice isn't copyrighted :-)
Newsgroups: comp.windows.x
From: rrybacki@ringer.cs.utsa.edu (Richard M. Rybacki)
Newsgroups: comp.windows.x
Subject: Getting ButtonPress from another client's window
Date: 14 Sep 92 15:19:00 GMT
Organization: University of Texas at San Antonio

Hello,
  I am writing a window manager and would like the user to be able to
assign focus to a client by clicking anywhere in the client.  As it
stands now, the user is forced to click on the decoration border window
under which the client has been reparented.  According to the Xlib
Programming Manual Vol I., "Only one client can select button events
on any one window at a time, due to the grab that automatically takes
place."  But mwm has been able to achieve this functionality.  Any
ideas?

Thanks.
-- 
                            Richard M. Rybacki
                       rrybacki@ringer.cs.utsa.edu
                              (512) 731-0000
                          "Will consult for food"
From: bill@bcserv.wustl.edu (Eldridge (Bill))
Newsgroups: comp.windows.x
Subject: Re: more of gcc-2.2.2 & X11R5 problems
Date: 9 Sep 92 18:28:56 GMT
Organization: Washington University in Saint Louis, MO USA
NNTP-Posting-Host: bcserv.wustl.edu

wanted to say that my original attempts for this DID
have patch-level-17, but since i started over i thought
i'd try getting one that i knew compiled under cc
to compile.

also, the RELEASENOTES mention substituting things
like stdlib.h from the standard library for the gcc
versions, and all of this got real complicated with
not much progress, and 3 hours compile time per attempt.
-- 
William M. Eldridge			bill@bcserv.wustl.edu
Biochemistry Department Box 8231	(314) 362-3436
Washington Univ. School of Medicine	(314) 362-7183 (fax)
660 S. Euclid, St. Louis, MO 63110
From: jim@blade (Jim Rump)
Newsgroups: comp.windows.x
Subject: Microfield T8C questions ???
Date: 13 Sep 92 21:04:53 GMT
Organization: MCGV Stack, Eindhoven University of Technology, the Netherlands.
X-Newsreader: Tin 1.1 PL4

Hi all,

I'm a student who has a 19" monitor (Unisys)  with a Microfield T8C video-card.
With this card a MS-windows driver was supplied. 
Since I'm running X386 on a BSD based system I really would like to
use the T8C to operate with X386. The following questions also applies to 
X386 on a Linux based system.
The questions I have are:

* Are there drivers for the Microfield T8C-card for X-windows. If this is
  the case, where can I obtain this and at what price? 

* I know there is a manual for programming the T8C-card. The name is:
  `Microprogrammer's reference manual for the T8C Color Graphics Controller`.
  Where can I get this manual?

* Does anyone know the adress of Microfield or perhaps an e-mail adress?

An other question I have is if someone has allready succesfully used a
19" monitor connected to a 1MB vga-card e.g. a et4000 based one.

Thanks,

Jim (jim@stack.urc.tue.nl)



--
   \_  \_  \_\_  \_ \_   Jim@stack.urc.tue.nl
    \_  \_  \_  \_   \_ 
     \_  \_  \_       \_     
  \_\_    \_  \_       \_    I,m always seeing an opinion.
Xref: sparky comp.windows.x:16252 comp.human-factors:2097 rec.games.pinball:4097 alt.religion.computers:700 comp.editors:2161
From: aardvark@nt1l.krl.com (Donald Koch)
Subject: Re: Compile X11 under Solaris 2.0
Organization: Koch Research Labs
Date: Mon, 7 Sep 1992 20:31:08 GMT

In article <1992Sep7.115001.20556@cas.org>, lwv26@cas.org (Larry W. Virden) writes:
[ Question about why Sun owners would want to build X under Solaris and my
  reply about missing stuff. ]

> 1. imake and xmkmf comes with OpenWindows 3.0 at least.  
> 2. The xterm that is there is the std X11R4 xterm as far as I can tell.  It
> isn't an OpenLook one at least - unfortunately.
> 3. The Athena widget libraries, extentions, etc. are all there.  As for 
> 'missing' stuff, I cannot imagine what of any major importance is missing,
> from the core X11 R4 tapes.  Twm is even there!

This is interesting.  I'll first explain that I have not used OpenWindows on
a Sun.  I have had people claim that they could not find xmkmf among other
things.  Either I was misled (nothing new here :), they were confused or Sun
has recitified the situation.  I can believe the server runs faster (due to
less baggage).

Thanks for the clarification, folks.

-- 
Don Koch
aardvark@nt1l.krl.com
Newsgroups: comp.windows.x,comp.windows.x.intrinsics,comp.windows.x.apps
From: mouse@thunder.mcrcim.mcgill.edu (der Mouse)
Subject: Re: help needed obtaining snf info
Keywords: fonts
Organization: McGill Research Centre for Intelligent Machines
Date: Tue, 15 Sep 92 17:06:15 GMT

In article <18mr00INN1ia@fbi-news.Informatik.Uni-Dortmund.DE>, klute@tommy.informatik.uni-dortmund.de (Rainer Klute) writes:
> [...] you can still access the font characters' pixelization by
> rendering the characters in a drawable, transferring the latter into
> an XImage on the client side, analyzing what you got, and - using the
> information from the XFontStruct as well as possible font properties
> - writing an appropriate BDF file, which in turn could be converted
> to SNF, PCF or any other suitable format.

> Disclaimer: The above is pure speculation. I never tried the
> described procedure (and hopefully shall never have to).

I have a program which does it, called getbdf.  I wrote it as
proof-of-concept, but it has actually turned out useful on occasion.

It's up for anonymous ftp (larry.mcrcim.mcgill.edu [132.206.1.1],
/X/getbdf.c); I can also mail copies if necessary.

					der Mouse

			    mouse@larry.mcrcim.mcgill.edu
From: pelegrin@brol.greco-prog.fr (Francois PELLEGRINI)
Newsgroups: comp.windows.x
Subject: Question about removing icon titles
Date: 9 Sep 92 15:43:56 GMT
Organization: GRECO Programmation du CNRS - Bordeaux,France


	Hello.

	I hope this is the right group to post this to.
	My problem is simple. I would like, for some applications such as
xrn, not to see the name of the application below its icon (for
aesthetic purposes), as well as keeping the application's name in the title bar.
	Is there a convenient way to do that, preferrably by using a
twm option that I haven't seen in the on-line manual?

			Thank you in advance.

						f.p.

P.S.:	Answers by mail preferred.
--
(pelegrin@brol.greco-prog.fr)
Newsgroups: comp.windows.x
From: canuck@masc38.rice.EDU (Mike Pearlman)
Subject: X11R5 xdm and NCD xterminals
Organization: The Internet
Date: Fri, 11 Sep 1992 18:53:22 GMT

I have some NCD xterminals which prior to a little while ago were running
using X11R5 xdm via directed requests. I changed the requests to use
"indirect" requests and added the following line to my Xaccess file
	*	CHOOSER foo
where foo is the same machine that the original directed request were sent.
Now the chooser window fires up but displays the message
	foo	display not authorized to ....
Can someone give me pointers where to look for the authorization problem.

thanks

michael pearlman <canuck@rice.edu>
Newsgroups: comp.windows.x
From: william@lanai.cs.ucla.edu (William Cheng)
Subject: Re: strange ordering of fonts in the R5 font server...
Keywords: font server
Organization: UCLA Computer Science Department
Date: Wed, 9 Sep 92 07:16:07 GMT

In article <1992Sep7.161805@nt1l.krl.com> aardvark@nt1l.krl.com (Donald Koch) writes:
>In article <1992Sep7.061956.2735@cs.ucla.edu>, william@lanai.cs.ucla.edu (William Cheng) writes:
>> When I do:  xlsfonts -fn "-*-courier-medium-r-normal--18-*-*-*-*-*-iso8859-1"
>> I get the following result on my SUN:
>> 
>> -adobe-courier-medium-r-normal--18-0-100-100-m-0-iso8859-1
>> -adobe-courier-medium-r-normal--18-0-75-75-m-0-iso8859-1
>> -adobe-courier-medium-r-normal--18-180-75-75-m-110-iso8859-1
>> -bitstream-courier-medium-r-normal--18-0-0-0-m-0-iso8859-1
>
>Note that xlsfonts sorts the fonts alphabetically.  If you want the fonts in
>the order it found them, use the -u option (keep unsorted).
>
>You'll probably find that the fonts are in the order you expected.

I tried the -u option, and got the following result:

-bitstream-courier-medium-r-normal--18-0-0-0-m-0-iso8859-1
-adobe-courier-medium-r-normal--18-0-75-75-m-0-iso8859-1
-adobe-courier-medium-r-normal--18-180-75-75-m-110-iso8859-1
-adobe-courier-medium-r-normal--18-0-100-100-m-0-iso8859-1

The 75dpi (good) fonts still appear in the middle!  Any clues?
--
Bill Cheng // UCLA Computer Science Department // (310) 575-4507
3564-C Boelter Hall // Los Angeles, California 90024 // USA
william@CS.UCLA.EDU      ...!{uunet|ucbvax}!cs.ucla.edu!william
-- 
Bill Cheng // UCLA Computer Science Department // (310) 575-4507
3564-C Boelter Hall // Los Angeles, California 90024 // USA
william@CS.UCLA.EDU      ...!{uunet|ucbvax}!cs.ucla.edu!william
Newsgroups: comp.windows.x
From: savchenk@cgi.COM ("Alex Savchenko")
Subject: Tree Layout/Display Algorithm(?)
Organization: The Internet
Date: Wed, 9 Sep 1992 15:18:40 GMT


Did anybody come across an article about (or source  code of :) an
algorithm that allows efficient layout/display/editing of a grahical
presentation of a tree-like structures in the window?

Thanks in advance,

	- Alex.


Newsgroups: comp.windows.x
From: chaw@Xenon.Stanford.EDU (S. S. Chawathe)
Subject: [help] Xwindow-system (vtwm) `state saver'?
Keywords: help X window vtwm
Organization: CS Department, Stanford University, California, USA
Distribution: comp
Date:  7 Sep 92 00:08:47 GMT

Sunview has a nice feature that lets you store the position,
size, colour, font etc of all windows on the screen in a file
that can be read on reentering the window system.  Is there any
such utility for vtwm in X?  I would imagine such a utility would
write to the .xsession file.  Email response preferred.

Thanks,

-CHaw

_________________________________________________________________
Chaw@cs.Stanford.edu                                 tat tvam asi


Newsgroups: comp.windows.x
From: le01156@portal.lasc.lockheed.com (Jeff Sheffel @ x2016)
Subject: Reading text from Athena (Xaw) asciiTextWidgets ?
News-Software: VAX/VMS VNEWS 1.41    
Keywords: Athena widgets
Organization: Lockheed Aeronautical Systems Co. - Rye Canyon
Distribution: usa
Date: Wed, 9 Sep 92 20:29:32 GMT

I have unsuccessfully tried to read (retrieve) the user
modified text from an Athena asciiTextWidget.  I looked
at other example programs (xless and xdbx) to see how it
was done.  Here is a section of (pseudo) code:

Widget	textSrcWidget, asciiTextWidget1;
XawTextBlock	buffer;
char	*userInput;

	textSrcWidget = XawTextGetSource( asciiTextWidget1 );
	XawTextSourceRead( textSrcWidget, start, &buffer, length );
	xtrncpy( userInput, buffer.ptr, buffer.length );

When I tried this, buffer.ptr = '\0' and buffer.length
was zero.  The standard X documentation is weak in the area
Athena widget usage and particularly in the explanation of
"text sources and sinks" which appear to be used in the
above example.

How is text read from the Athena asciiTextWidget?

Jeff Sheffel		le01156@portal.lasc.lockheed.com


Newsgroups: comp.windows.x
From: xenidis@maccs.dcss.mcmaster.ca (Jimi X)
Subject: Re: Simple page-flipping animation on X-Windows
Organization: Department of Computer Science, McMaster University
Date: Fri, 11 Sep 1992 18:53:57 GMT

In article <1992Sep8.223544.20768@cbnewsl.cb.att.com> conty@cbnewsl.cb.att.com (OtakuRoach) writes:
>
>I didn't see this on the 600+ backlogged postings, neither did I see a
>FAQ, sooo:
>
>	As a project for a CompGraphics course, I need to animate some
>	lines converging into a wireframe image.  The program is already
>	written, but I'm drawing everything to the same GC, which can be
>	rather annoying if I have to erase and redraw the screen several
>	times per second.  I was thinking of perhaps creating another GC,
>	and do a GC-flipping routine.  Now, how do I go about determining
>	which GC is displayed on the screen?  My professor wasn't of any
>	help.  He doesn't use X for his work, and the class assignments
>	assume MS-DOS with VGA graphics (I'm the weird guy doing his
>	assignments on X because he doesn't have a PC).
>
>If you can help, please e-mail at the address below.  Thank you.
>No, I'm not a regular reader of comp.windows.x.
>-- 
>			    E n r i q u e  C o n t y
>			The Incredible Man-with-no-Life
>			      jester@ihlpl.att.com
>		    Disclaimer: You're not dealing with AT&T

The best way to do this, at least from what I have used, is to create two GC's
one GC is for drawing and another GC for "undrawing".

Draw your figure using the XDrawLines() Xlib functions that draws more than
one line in a single X Protocol Routine then XFlush() your display.

To animate use the XDrawLines() again with your undraw GC and then 
XDrawLines() with your draw GC and then flush.

This emulates page flipping because after a draw request you only see that 
figure when you:
	
	a) fill up the Request Queue
	b) force the queue to be flushed [XFlush]

This Works wonders with machines that have a large Request Queue ( >= 64k )

To REALLY SPEED things up.  get a hold of the Source for these Xlib Functions
and cat them together excluding the commands that flush sync and do thing that
is not necessary between them and then flush at the end.

It may also be better to calculate the horizontal and vertical span and use 
XClearArea() but I doubt it.


GOOD LUCK
			-jimi x
From: converse@expo.lcs.mit.edu (Donna Converse)
Newsgroups: comp.windows.x
Subject: Re: Serious leak/bug in XtAppAddWorkProc (X11R4, Ultrix 4.2a, SunOs 4.1.3).
Date: 15 Sep 92 18:14:21 GMT
Distribution: comp
Organization: X Consortium, MIT Laboratory for Computer Science



> This simple program leaks like hell... We strongly suspect the
> XtAppAddWorkProc which is done in the TimeOut function.

In most R4 Xt libraries, returning True from a work procedure will cause
a memory leak.  To work around the bug, the work procedure can be removed
from the queue of work procedures by calling XtRemoveWorkProc, which will
not leak; however please note that it is unacceptable practice to make
this call from the same work procedure which is being removed.  


> Is there any fix for this leak. (I have not tried in X11R5)

This bug is not present in the R5 Xt library. 
And sure, there's a fix, and if you have the source you can fix it
yourself.  Make the following change (the single line marked by
an exclaimation point; buggy code appears first, correct code
appears second) to the code in CallWorkProc in the file NextEvent.c.

  
        if (delete) {
            w->next = freeWorkRecs;
!           freeWorkRecs = w->next;
        }
        else {
            w->next = app->workQueue;
--- ---
  
        if (delete) {
            w->next = freeWorkRecs;
!           freeWorkRecs = w;
        }
        else {
            w->next = app->workQueue;



Donna Converse
MIT X Consortium
From: dave@kanga.lcs.mit.edu (David Sternlicht)
Newsgroups: comp.windows.interviews
Subject: Re: examples/cedit, and a modest proposal
Date: 8 Sep 92 16:07:20 GMT
Distribution: comp
Organization: MIT Laboratory for Computer Science

Paul Shannon (pshanon@nrao.edu) writes:

>A few weeks ago I looked through the anonymous ftp account on 
>interviews.stanford.edu, hoping to find some example programs that I could 
>study, to help me as I try to learn InterViews.  I was pleased to find 
>
>       "/pub/contrib/For_Neophytes/examples.tar.Z"
>
>and further pleased when I found the small but non-trivial program,
>edit.c.

I am happy that someone is using my program and learning from it.
I was not aware, however that it had been archived on interviews.stanford.edu,
as had the iperf program.  Could whoever did this please tell me 
because in the future I would certainly like to have some input into what version of my code gets archived.  I noticed that the Makefiles had been
rewritten for g++ and had the initials gcj,  gcj, who are you?
Now onto Pauls critique.... :-) 


-- 
			
				dave sternlicht
				mit X consortium
				dave@expo.lcs.mit.edu
Newsgroups: comp.windows.interviews
From: calder@NURB.JRC.FLINDERS.EDU.AU (Paul Calder)
Subject: floating Coord round-off
Reply-To: calder@cs.flinders.edu.au
Organization: Internet-USENET Gateway at Stanford University
Date: Sun, 6 Sep 1992 04:30:16 GMT

Donn Cave writes ...

  In 3.0.1, it sometimes seems that the actual size and position of
  elements on the screen is slightly more variable than one would expect,
  and I have been thinking that this is because of round-off errors between
  InterViews' floating point coordinate system, and X's integer screen
  coordinates.

This behaviour is an unavoidable consequence of round-off; to call it
an 'error' is a bit strong.  Mark Linton's paper on device-independent
rendering addresses the issue in more detail.  (The paper was
presented at XTech92 and is available from sgi.com as xconf92.ps.Z.)

You can avoid the 'undulation' on scrolling if you always scroll by
exact pixel-sized amounts.

Paul Calder
Newsgroups: comp.windows.interviews
From: magras@cps.msu.edu (Mr. Jean-Claude Magras)
Subject: Wanted: Information on Message && Textview objects
Originator: magras@lobster.cps.msu.edu
Organization: Anarchy Committee
Date: Wed, 9 Sep 92 03:11:34 GMT

Hello Interviews users,

I am looking to branch out from the simple uses of the Message object as
used in the hello*.c sample programs. I am particularly looking for 
the way to change the text of the message. Any similar info on the
Textview object would also be appreciated. Has there been any attempt
to write a more detailed version of refman.PS ? The darn thing is simply
too vague and there are simply too few examples, and these programs are
very narrow in scope, especially in comparison to many third-party X books.

Thanks for your help,

J.C. Magras

 magras@cps.msu.edu. | 517 337 2267 | 1736 Burcham Dr., E. Lansing, MI 48823

Newsgroups: comp.windows.interviews
From: hmuelner@tu-graz.ac.at (Helmut Muelner)
Subject: Re: Windows/InterViews
Organization: IICM, Graz University of Technology, Austria
Date: 11 Sep 92 09:03:51

>>>>> On 10 Sep 92 22:21:13 GMT, fuad@madrone.eecs.ucdavis.edu (Turnando Fuad) said:

-> Does anyone know if there's a Windows version of InterViews? 

A student at our institute adapted InterViews to Windows.
The good news: All included programs work (e.g. idraw).
The bad news: It is InterViews 2.6 and Windows 3.0, the (sparse)
documentation is in German.
If there is interest I could put it up for anonymous ftp (but this would
need approx. 2 weeks).
--
--
Helmut Muelner (ue is really u-Umlaut or \"u in TeXish)
TeXpert, Information Processor, SGML Beginner, PERL Beginner,
Multilingual (linguae computerii), Hypermedia-Developer, Text Searcher,
GNU lover (except g++ on DECstations)
Surface mail: Schiessstattgasse 4a, A-8010 Graz, Austria, [Europe, Terra, Sol]