HDTenEightyP/NetNews huggingface dataset:
From: rtipnis@maxine.wpi.edu (Rajeev Tipnis)
Subject: Colormap stuff
Keywords: color
Organization: Worcester Polytechnic Institute
Date: Sun, 6 Sep 1992 23:24:00 GMT


	In one of my applications, I want to dynamically change the
	colors of the stuff on a certain canvas widget. So, I need 
	to create my own colormap.
	
	I create my own colormap and then fill it up with certain color
	scales (by using XCreateColormap, XStoreColormap and XSetWindow
	Colormap). However, since this colormap is also shared by the
	others on the screen, the other colors are getting changed (I don't
	mind that). 
	
	However, I don't want the border colors/background
	color of the window I am in to change. So, I gather, I need to
	see to it that when I create my own colormap, I should not change
	certain color cells (which are getting used by this window) and
	should only use other color cells for my color scales. 

	So, my problem is ... How do I do this ? 

	Any help will be greatly appreciiated.

	Thanks.

-- Rajeev Tipnis


--
From: hoswell@rintintin.Colorado.EDU (Old Nick)
Subject: zoom/panning a window
Keywords: zoom pan image - transformations
Organization: University of Colorado, Boulder
Date: Tue, 15 Sep 1992 17:40:31 GMT

Hi all.

	I'm about to add a feature to my image processing program
that will allow the user to alter the size of the image display window
and also to pan the window...

	My (simple) problem is that our images are 448x448, so it
works perfectly to zoom the window to be twice the size (896x896)
and still fit on the screen (SUN/SGI).  Thus, I don't have much
room for neato space-wasters like scrollbars and such.

	This is a throw-out for ideas on a useable interface.  I've
thought of using the keypad for this manipulation:

Up/Left/Right/Down		: pan by 10 pixels
Shift + Up/Left/Right/Down	: pan by 1 pixel
<R11>				: Center Image in window

	...but it leaves a bad taste in my mouth ;(.

Ideas?

*Examples*?

Mike
-- 
||      -=> Old Nick <=-	 |	  <<<<=- "Dial a cliche" -=>>>>      ||
||  hoswell@tramp.Colorado.EDU	 |   					     ||
|| or hoswell@yoda.hao.ucar.EDU	 |    A cynic knows the price of everything  ||
||       Think Clearly! 	 |          and the value of nothing.        ||
From: fkk@Germany.Sun.COM (Frank Kaefer - Sun Germany IR SysAdm Postmaster - Munich)
Newsgroups: comp.windows.x
Subject: Re: Sun, X11R5 and openwindows
Keywords: X11R5, Sun, OpenWindows
Date: 15 Sep 92 06:59:07 GMT

haim@cs.technion.ac.il (Haim Roman) writes:

|In article <1992Sep09.211513.19115@watson.ibm.com>, johndew@watson.ibm.com (John Dewysocki) writes:
||> We have upgraded to SunOs 4.1.2 and X11R5, my problem is that
||> I can't start up openwindows any more.  When I try to execute
||> openwin it complains in the following way, then dies:
||> Couldn't get base SunWindow
||> /usr/openwin/bin/xinit:  Connection refused (errno 61): unable to
||> connect to X server

|Egads, you too!?  I've noticed the same problem, but, because of the
|particular circumstances, I assumed that we really munged some system
|files.  Please post any answers you get to news.
|Thank you.

There might be a simple solution to this problem: just remove /tmp/.??*
(ie .NeWS-unix .X11-unix) - this did the trick for me :-)

Cheers,
Frank
--
Frank Kaefer, SUN Microsystems GmbH Germany, IS SysAdm Postmaster
IS Solaris Transition Co-Ordinator Central Europe
frank.kaefer@Sun.COM frank.kaefer@Germany.Sun.COM fkk@sta.sub.org
Newsgroups: comp.windows.x
From: brian@ilinx.wimsey.bc.ca (Brian J. Murrell")
Subject: cannot connect to remote server ??
Organization: InterLinx Support Services Inc.
Date: Wed, 9 Sep 92 02:44:37 GMT

Having just build X11R5 on one of our machines, I want to run
some clients on a remote server.  The problem is that when the 
client tries to connect to the server the connect gets refused,
because the "connect" to the "X server port" on the workstation
refuses the connection.

This seems to be case of the server not allowing any remote clients.

What do I have to do to the server to let it allow remote clients.

I'v already done 

xhost +<remote machine name>

and don't know how to use xauth.  Anything else I should do??

brian
-- 
Brian J. Murrell                                        brian@ilinx.wimsey.bc.ca
InterLinx Support Services, Inc.                        uunet!van-bc!ilinx!brian
North Vancouver, B.C.
        Platform and Brand Independent UNIX Support - R3.2 - R4 - BSD
Newsgroups: comp.windows.x
From: jbotz@mtholyoke.edu (Jurgen Botz)
Subject: compiling R5 with gcc 2.2.2 on DEC MIPS?
Organization: Mount Holyoke College
X-Newsreader: Tin 1.1 PL5
Date: Sat, 12 Sep 1992 00:20:02 GMT

As the subject says, I'd like to try this, but given limited disk space, etc.,
before I embark on this undertaking I'd like to hear if it's known to work or
not work.  If someone has an ultrix.cf/site.def for this purpose, I'd love to
see it.  Thanks...
--
Jurgen Botz                  |   Internet: JBotz@mtholyoke.edu
Academic Systems Consultant  |     Bitnet: JBotz@mhc.bitnet
Mount Holyoke College        |      Voice: (US) 413-538-2375 (daytime)
South Hadley, MA, USA        | Snail Mail: J. Botz, 01075-0629

Xref: sparky comp.windows.x:16473 comp.windows.open-look:3787 alt.toolkits.xview:854
From: nzhang@umiacs.umd.edu (Ning Zhang)
Newsgroups: comp.windows.x,comp.windows.open-look,alt.toolkits.xview
Subject: Help Wanted: XView PANEL_MULTILINE_TEXT problem
Date: 10 Sep 92 16:18:10 GMT
Followup-To: comp.windows.x
Organization: UMIACS, University of Maryland, College Park, MD 20742

I have a problem with the multi-line text panel in XView. We are
running SUN OS 4.1.1 with Openwin 3.0 (FCS) on SS-2.

I defined the panel in the program as:

   addw_screens[i].panel_item = panel_create_item(
    adw_ptr->addw_panel,    PANEL_MULTILINE_TEXT,
    PANEL_LABEL_X,                  addw_screens[i].panel_label_x,
    PANEL_LABEL_Y,                  addw_screens[i].panel_label_y,
    PANEL_VALUE_X,                  addw_screens[i].panel_item_x,
    PANEL_VALUE_Y,                  addw_screens[i].panel_item_y,
    PANEL_LABEL_STRING,             addw_screens[i].panel_label_string,
    PANEL_VALUE,                    addw_screens[i].panel_value,
    PANEL_VALUE_DISPLAY_LENGTH,     addw_screens[i].panel_value_display_length,
    PANEL_VALUE_STORED_LENGTH,          320,
    PANEL_VALUE_FONT,               adw_ptr->textfont,
   0);

I use 

 xv_set(addw_screens[i].panel_item, PANEL_VALUE, "", 0);

to clear the panel and use

 xv_set(addw_screens[i].panel_item, PANEL_VALUE, prtbuf, 0);

to display the text strored in prtbuf. The max. length of the
string stored in the buffer is 160. The panel is used for
displaying text only, no input.

In the beginning, everything is OK when I displayed the text in
the panel. But after awhile, whenever I tried to display a
text, I got a warning panel with the message:

	       Insertion failed
 
	    The memory buffer is full.
 
	If this is an isolated case, you can circumvent
	this condition by undoing the operation you just
	performed, storing the contents of the subwindow
	to a file using the text menu, then redoing
	the operation.  Or, you can enlarge the size
	of this buffer by changing the appropriate value in
	the .Xdefaults file (Text.MaxDocumentSize)
 
And the panel is empty without the text displayed.
 
I had no problem with the PANEL_TEXT. I wonder what is wrong
with the MULTILINE_TEXT panel. Is there any workaround ?

Thanks a lot.

-Ning
Newsgroups: comp.windows.x
From: schuette@wl.com (Wade Schuette)
Subject: Re: SUMMARY: Medical Images in X
Keywords: Medical Images X NCSA formats STG HDF Vset
Organization: Warner Lambert / Parke-Davis
Date: Mon, 7 Sep 1992 03:24:13 GMT

I'd suggest also contacting the Software Tools Group at the National
Center for Supercomputing Applications (NCSA) at the University of 
Illinois, Urbana.

They are doing a great deal of work on public domain image processing
tools, software, file-formats, etc.  ftp at ftp.ncsa.uiuc.edu. For 
all major types of platforms. 

NIH also has some Image processing tools for the Macintosh.
Available at alw.nih.gov in /pub   or lhc.nlm.nih.gov.

The NCSA work on HDF and storage design for complex images looks like
something that could become the new standard.  (debate welcome!)
In any case, can't beat the price for the power and ease of use!

Wade


-- 
====================================================================
R. Wade Schuette     |  All opinions expressed are personal.| B>   |
Ann Arbor, MI USA    |                                      |   :) |
schuette@wl.com      |   *** "Synergize Scientists!"  ***   | B>   |
Newsgroups: comp.windows.x
From: mouse@thunder.mcrcim.mcgill.edu (der Mouse)
Subject: Re: Transparent windows
Organization: McGill Research Centre for Intelligent Machines
Date: Fri, 11 Sep 92 00:58:00 GMT

In article <9209081631.AA04622@uahcs2.cs.uah.edu>, ldawes@uahcs2.cs.uah.EDU (Lisa Dawes, Computer Science Dept., Univ. of Alabama-Huntsville) writes:

> How are transparent window backgrounds created and/or implemented.

(I assume that's supposed to be a question, in spite of the
non-question punctuation.)

Transparent window backgrounds don't really exist.  Backgrounds None
and ParentRelative provide a similar visual effect in some
circumstances.  The SHAPE extension can be used to good effect, when
available, but that makes the window nonexistent, not transparent, in
the places where it's not opaque (though this can sometimes be remedied
by the use of an InputOnly window).

> Is there a color index for transparent colors.

On some types of hardware, such a thing exists.  As far as I know there
is no standard way of finding out whether it does, or finding out what
visual and colormap index you must use to get transparency if so.

> Where is a good source of documentation concerning this?

Concerning the portable ways, the Xlib and protocol reference documents
contain all the information, though digging it out can be a bit of a
pain at times.  Concerning any possible server- and hardware-dependent
ways, you'll have to check with your server and hardware suppliers.

					der Mouse

			    mouse@larry.mcrcim.mcgill.edu
From: gjc@mitech.com (George J. Carrette)
Newsgroups: comp.windows.x
Subject: Re: Stack Traceback program wanted
Date: 10 Sep 92 10:26:42 GMT
Organization: Mitech Corporation, Concord MA

In article <1992Sep9.143656.20352@kocrsv01.delcoelect.com>, c23st@kocrsv01.delcoelect.com (Spiros Triantafyllopoulos) writes:
> we're looking for a program to do stack a trace ... on demand... 
> like under VMS with lib$signal(...)

> So it looks like I'm after 'trace' that can be linked in user programs
> and provide us with the information above. Environment's strictly Unix,
> SunOS and HP-UX.

I think this can be a very important issue for X window programming,
because the complex control structures that end up getting automatically
generated by all the callback mechanisms and recursions in use.
Otherwise I wouldn't want to answer this on comp.windows.x

[It would be a lot of work to write code for the various vendors 
 environments, core formats and etc, to support the traceback features found
 in VMS.]

Fortunately, there is an EASY TRICK available, crude-but-effective,
that can be applied here. It depends only on two things:
(1) some hook or idea of the start and end of "the stack"
(2) some kind of table of program counter starting addresses and procedure name

#1 is easy, in your main, just do this:
char *near_top_of_stack = NULL;
main(...)
{long foo;
 near_top_of_stack = (char *) &foo;
...}

In your "trace" procedure, do a similar thing. On some machines you may
need to recurse a bit more, and do a setjmp(...) to "normalize" the stack
(Details on request, or see the LISP implementation SIOD or the various
 "garbage collectors" for C available.)

Now you might think that #2 means a lot of work. But it doesn't,
at least not in an X-toolkit environment, because there are well documented
datastructures already lying around that have all sorts of pointers to
procedures, those "program counters" you are interested in.
Such as methods and callbacks.

And lastly, you can quite portably employ a filter of some kind
to scan both ".h" and ".c" files in order to generate a special "symbols.c"
file, that has a symbol table for all the other non-callback or
non-method employed procedures.

struct some_symbol some_symbols[] = 
 {{"XtManageChild",XtManageChild}, ... {0,0}};


= So how does this trace procedure work then?
  Well, it doesn't have to do much. Just scan the stack from start to end,
  looking for addresses that appear to be within the program counter range
  of procedures that have been used as callbacks, etc.

  When I use this, I get 80% of the benefit out of the callback info
  that can be gotten for free from the existing environment.

-gjc
Newsgroups: comp.windows.x
From: johndew@watson.ibm.com (John Dewysocki)
Subject: Sun, X11R5 and openwindows
Date: Wed, 09 Sep 1992 21:15:13 GMT
Disclaimer: This posting represents the poster's views, not necessarily those of IBM
Organization: IBM T.J. Watson Research Center



We have upgraded to SunOs 4.1.2 and X11R5, my problem is that
I can't start up openwindows any more.  When I try to execute
openwin it complains in the following way, then dies:

Couldn't get base SunWindow
/usr/openwin/bin/xinit:  Connection refused (errno 61): unable to 
connect to X server

I have all the correct env. variables set up correctly, the right
path ahead of /usr/bin/X11, and have been able to run 
/usr/openwin/bin/xinit by itself (running olwm) w/out a problem.

It seems the problem is with xnews (which complains about the
base SunWindow - above).  Unfortunately, I do not have any 
X11/NeWS literature to refer to.  Can anyone give me any
pointers?  Is this a X11R5/NeWS problem?
Thanks,  

-- 

     ~    John    ~ 
|///////////\\\\\\\\\\\|
From: zxmsd01@mailserv.zdv.uni-tuebingen.de (Gunther Schadow)
Newsgroups: comp.windows.x
Subject: Is there a WYSIWYG textprocessor for X11?
Date: 14 Sep 92 21:16:06 GMT
Organization: Comp. Center (ZDV) U of Tuebingen, FRG

Hi there,

does anybody know of any WYSIWYG-like text processor for X11. It might
be something like MS-Word or WP too. The thing is, I upraded from DOS
to UNIX and X, and I still suffer from having no quick text formatter.
TeX is nice but not too useful on small texts with much formatting.

Any Ideas??

thanks
-Gunther
-------------------------------------------------------------------------------
Gunther Schadow,	          e-mail: Gunther@mailserv.ZDV.Uni-Tuebingen.DE
Sudetenstrasse 25,	          Phone:  (49) 7071/37527
7400 Tuebingen, Germany.__________Stop__________Horn Please!__________O.K. TATA
--
-------------------------------------------------------------------------------
Gunther Schadow,	          e-mail: Gunther@mailserv.ZDV.Uni-Tuebingen.DE
Sudetenstrasse 25,	          Phone:  (49) 7071/37527
7400 Tuebingen, Germany.__________Stop__________Horn Please!__________O.K. TATA
Newsgroups: comp.windows.x
From: rfrazier%peruvian.utah.edu@cs.utah.edu (Robert Frazier)
Subject: X Toolkits
Date: 5 Sep 92 17:48:18 MDT
Organization: University of Utah CS Dept
Distribution: World

	Could someone please direct me towards info about the various
x toolkits, their features etc.  I am interested in a motif look/feel, but
callable from C procedures.  I want to handle my own events, and call
the appropriate widget display myself.  Are there any sites that have the 
x toolkits, I can only find bits and pieces here and there.





	R. Todd Frazier
From: raistlin@uni-paderborn.de (Markus Koch)
Newsgroups: comp.windows.x
Subject: Solaris and Motif
Date: 15 Sep 92 09:18:46 GMT
Distribution: comp
Organization: Uni Paderborn FB 17 Informatik GERMANY

Hello !

Does anybody have experience with porting Motif-1.1.3 
to a Sparc Station with Solaris ???

Thanx in advance
Markus
			     `""
			    (o o)
************************oOO**(_)**OOo****************************
* \\  /  *							*
*  \\/   *  InterNet : raistlin@uni-paderborn.de		*
*  /\\   *  Computer helfen uns Probleme zu loesen, die wir	*
* /  \\  *  vorher nicht hatten.				*
*****************************************************************
Newsgroups: comp.windows.x,comp.windows.x.motif,comp.windows.x.intrinsics
From: mouse@thunder.mcrcim.mcgill.edu (der Mouse)
Subject: Re: Colormap stuff
Keywords: color
Organization: McGill Research Centre for Intelligent Machines
Date: Tue, 15 Sep 92 17:00:50 GMT

In article <18lvtbINNbrc@bigboote.WPI.EDU>, rtipnis@cs.wpi.edu (Rajeev Tipnis) writes:

> I am including some code here, which lets the programmer figure, how
> not to touch the color cells of the colormap which are getting used
> by other applications on the same display, and use the rest of the
> colormap.

> [program which creates a new colormap and copies over the cells that
>  XAllocColorCells refused to allocate.]

If you're going to do that, why bother with your own colormap, instead
of just allocating out of the default colormap?

					der Mouse

			    mouse@larry.mcrcim.mcgill.edu
From: s8923098@macnab.mqcs.mq.oz.au (Josef WIDJAJA)
Subject: Re: stop dirty pictures.. how?
Organization: Macquarie University, School of Mathematics, Physics, Computing and Electronics
Date: Fri, 11 Sep 1992 01:06:49 GMT

In article <1992Sep9.183227.1533@lub001.lamar.edu> ravi@lub001.lamar.edu writes:
  ......
|
|Somebody can display some "junk" on your workstation when he sets his DISPLAY
|variable to any other Workstation's IP address. Can this be stopped?

type xhost - to disallow access, and xhost + to allow access.


--
 _________Josef Widjaja____________  
|  s8923098@mackay.mpce.mq.edu.au  |
|  Macquarie University, Australia | 
|__________________________________|
From: prevot@smr.slb.com
Newsgroups: comp.windows.x
Subject: Macro-command language
Date: 4 Sep 92 12:56:08 GMT
Reply-To: prevot@smr.slb.com
Organization: SMR Montrouge, France.


	I need to specify a macro-commande language for a human-machine
	software. Let me know if some tools or rules must be respected ?
	Have you some advices to help me?

	Tanks for reply

	Please email to: daniau@envvx1.sinet.slb.com
Newsgroups: comp.windows.x
From: nudge@soccer.mis.arizona.EDU (Bill Poutinen)
Subject: (none)
Organization: The Internet
Date: Mon, 7 Sep 1992 23:58:03 GMT


Please unsubscribe me

Thanks
From: mahan@TGV.COM (Patrick L. Mahan)
Newsgroups: comp.windows.x
Subject: RE: Text in XView
Date: 8 Sep 92 17:37:24 GMT
Organization: The Internet

#
#I'd like to process the text in Textsw in my own way,
#(in other words, to write my own textsw_store_file procedure).
#But I can not figure out where the text is stored. Of course
#I can maintain my own string containing all the characters
#but it will require processing of all arrow keys, delete and
#keyboard accelerators, which is nontrivial.
#
#Any pointers are greatly appreciated.
#

xv_get (textsw, TEXTSW_CONTENTS, pos, buf, buf_len, NULL);

where "buf[0..buf_len-1]" is filled from the text subwindow starting at "pos".
It is NULL terminated only if there is left over space in the buffer (ie
the number of characters read doesn't exceed buf_len).

Patrick L. Mahan

--- TGV Window Washer ------------------------------- Mahan@TGV.COM ---------

Waking a person unnecessarily should not be considered  - Lazarus Long
a capital crime.  For a first offense, that is            From the Notebooks of
							  Lazarus Long
From: scottw@boulder.Central.Sun.COM (Scott Wiesner)
Newsgroups: comp.windows.x
Subject: Re: why does xscope bomb in "-v4" mode?
Date: 10 Sep 92 13:59:24 GMT
Organization: Sun Microsystems, Inc.
Distribution: world
Reply-To: scottw@boulder.Central.Sun.COM
NNTP-Posting-Host: boulder.central.sun.com


I believe when I looked into this one time that I discovered it had to do
with xscope's inability to deal with the "listfontswithattributes" request.
I think the problem was that this request sent multiple replies back, and
xscope couldn't handle that.  I can imagine that there are other similar
problems in xscope.  

Sorry, I never fixed it, so I have nothing to really offer you that would
help.

Scott
Newsgroups: comp.windows.x
From: "terry jones" <tjones@moose.cs.indiana.edu>
Subject: Re: Reading text from Athena (Xaw) asciiTextWidgets ?
Keywords: Athena widgets
Organization: Indiana University, Bloomington
Distribution: usa
Date: Thu, 10 Sep 1992 11:15:08 -0500

In article <9SEP199213355388@portal.lasc.lockheed.com> le01156@portal.lasc.lockheed.com (Jeff Sheffel @ x2016) writes:
>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:
>
>
>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.

I have no idea if there is an accepted way to do this, but I had exactly 
the same problem the other night and was also frustrated at the 
documentation. I ended up remembering that there is such a widget in a dialog
and so I went to the source to see how XawDialogGetValueString() got
the string from its ascii widget. What I saw was effectively:

	String text_widget_contents;
	String value;
	Args args[1];

	XtSetArg(args[0], XtNstring, &value);
	XtGetValues(text_widget, args, 1);
	text_widget_contents = strdup(value);

Maybe someone can advise whether this is standard practice?

Hope this helps,
Terry.
Newsgroups: comp.windows.x,comp.human-factors
From: lwv26@cas.org (Larry W. Virden)
Newsgroups: comp.windows.x
Subject: Re: Compile X11 under Solaris 2.0
Date: 7 Sep 92 11:46:01 GMT
Reply-To: lvirden@cas.org (Larry W. Virden)
Followup-To: comp.windows.x
Organization: Nedriv Software and Shoe Shiners, Uninc.

In article <1992Sep3.235234@nt1l.krl.com> aardvark@nt1l.krl.com (Donald Koch) writes:
:In article <9209031847.AA02731@mtesol>, sinan@Mtesol.boeing.COM (Sinan Karasu) writes:
:[...]
:>  I have a very simple question. I don't quite understand what is at
:> issue here. It is my understanding that all Suns come with X11R4
:> out of the box. So , what is the need for all this porting Stuff?
:
:I believe that OpenLook comes with a Sun out of the box.  Slight difference.
:Like no imake or xmkmf (useful for building other X goodies), an xterm that
:some people don't like the look and feel of (or for that matter, the entire
:OpenLook look and feel which some people don't like) and other missing programs
:(don't ask me which, I've managed to miss using the OpenLook stuff so far).

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!
-- 
Larry W. Virden                 UUCP: osu-cis!chemabs!lvirden
Same Mbox: BITNET: lvirden@cas  INET: lvirden@cas.org
Personal: 674 Falls Place,   Reynoldsburg, OH 43068-1614
America Online: lvirden@aol.com
Newsgroups: comp.windows.x
From: cs911461@ariel.yorku.ca (CHRISTIAN D. ARMOUR)
Subject: X Windows of 386's, which Unices work
Organization: York University, Toronto, Canada
Distribution: all
Date: Fri, 11 Sep 1992 05:35:29 GMT

Hello all,

I *sincerely* hope I'm not asking a FAQ for the 60 millionth
time :-)  

Can anyone tell me of a free (or inexpensive) Unix which will
run the MIT distribution X Windows.  I talked to SCO but I
had to tell them that I must eat and pay phone bills every
so often.  If any such Unices exist, I would appreciate a 
brief list of Pros and Cons.

Many thanks,

C. Armour-Kidson
cs911461@ariel.yorku.ca

Newsgroups: comp.windows.x