HDTenEightyP/NetNews huggingface dataset:
From: andrew@sparky.uwaterloo.ca (Andrew MacLean)
Newsgroups: fj.mail-lists.x-window
Subject: Help with Copying Colormaps
Date: 27 Jul 92 19:23:42 GMT
Distribution: fj
Organization: University of Waterloo

Date: Mon, 27 Jul 1992 13:46:09 GMT
Message-Id: <Bs1vKy.HnF@watserv1.uwaterloo.ca>
Newsgroups: comp.windows.x,comp.windows.x.motif


I am creating a Motif program that allocates a variable number of 
colors in the root window colormap. (I am loading color images,
which have a condensed colormap table.) I would like to use a command
similar to XCopyColormapAndFree so that I can create a SECOND
colormap with all of the Motif colors and my image colors
copied to the new colormap.

The problem is that I do NOT want the colors to be freed from the 
root window colormap. (ie. I do not want to have my program 
window borders change colors when I move from one image window
to another image window.)

Summary of desires:

    1) A copy of the Root window colormap that contains ONLY
       those color cells that were allocated by my program.

    2) The color cells in the root window MUST NOT be freed.

    3) The copy of the root window colormap CANNOT have any
       colors allocated that are not a part of my program
       as I will be using those extra colors later.

One way to approach this problem is to go through the root
window colormap and decide whether my program has allocated
this color or not. My question is how can I tell which colors
were allocated by me, and which were allocated by another
program? How can I tell which colors were allocated by the
Motif part of my program? 


Thanks in advance.
Andrew
-- 
------------------=========================================------------------
 Andrew MacLean                           email:  andrew@sparky.uwaterloo.ca
 Civil Engineering                        phone:  (519)885-1211 x3862
 University of Waterloo                   "You want me to document WHAT?!?!"
From: smc8p@mycroft.acc.virginia.edu (Shawn Michael Edwards Carnell)
Newsgroups: fj.mail-lists.x-window
Subject: window placement
Date: 21 Jul 92 22:00:15 GMT
Distribution: fj
Organization: University of Virginia

Date: Tue, 21 Jul 1992 13:47:38 GMT
Message-Id: <1992Jul21.134738.28816@murdoch.acc.Virginia.EDU>
Newsgroups: comp.windows.x

I'm using an application that creates an X window but doen't recognize
-geometry.  I want to able to specify a location for the window (i can
control size through the application) but i'm at a loss as to how to go 
about this.

One idea is that i could force the window to move when it comes up but 
i don't know how to get the information i need about the window in order
to do this.  I'm wondering if there is a way to get a window id from the
application's process id.

Any ideas or suggestions are greatly appreciated.

Shawn
shawn@virginia.edu
From: nmodi@klinzhai.rutgers.edu (Nirav Modi)
Newsgroups: fj.mail-lists.x-window
Subject: xview toolkit problem
Date: 22 Jul 92 07:03:14 GMT
Distribution: fj
Organization: Rutgers Univ., New Brunswick, N.J.

Date: 21 Jul 92 20:04:39 GMT
Message-Id: <Jul.21.16.04.39.1992.21818@klinzhai.rutgers.edu>
Newsgroups: comp.windows.x



Hi
	I have written an application program using xview toolkit and
compiled it. It works perfectly on my machine. My professor tried to
run that program on other machine and it gave  following error.
--------------
XView error: Malformed or non-terminated attribute-value list
Last valid attribute was Attr pkg= 10, id=20, cardinality= 1 ...
--------------

	Can somebody help me to solve this problem?
	Thanks.
-Nirav Modi
From: jonmca@phoenix.princeton.edu (Jonathan T. Mcallister)
Newsgroups: fj.mail-lists.x-window
Subject: problem using GXxor function
Date: 26 Jul 92 00:30:47 GMT
Distribution: fj
Organization: Princeton University

Date: 25 Jul 92 04:18:49 GMT
Message-Id: <1992Jul25.041849.24793@Princeton.EDU>
Newsgroups: comp.windows.x

I am having the following problem with the GXxor function:

I have a GC whose foreground color is white and whose function is GXxor.
I draw a line across a window that has many different colors and expect
to see a line of many different colors.

This works fine when I run it on an Iris (under window manager 4Dwm and
server Xsgi), but when I run it on a Sun Sparcstation 2 (window manager
tvtwm and Xsun server), no line appears. Even though the line crosses
many colors, nothing changes. So I change the forground of the GC to be
black. This makes it work on the Sun, but not on the Iris. The Iris is
behaving as I would expect. I do not understand why the black line works
on the Sun. 

And for what it's worth, I believe both X versions are R4.

Any ideas what is wrong? Are there other variables I am not considering?
My apologies to those who are tired of GXxor questions...
Thanks for any help.

Jon McAllister
jonmca@phoenix.princeton.edu
From: gildea@expo.lcs.mit.edu (Stephen Gildea)
Newsgroups: fj.mail-lists.x-window
Subject: Re: xdm and key mappings
Date: 28 Jul 92 22:37:16 GMT
Distribution: fj
Organization: X Consortium, MIT Laboratory for Computer Science

Message-Id: <9207281856.AA25049@alex.lcs.mit.edu>
	<1992Jul24.164719.3607@cs.tulane.edu> 
Date: Tue, 28 Jul 92 14:56:26 EDT

    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.

 < Stephen
   MIT X Consortium
From: devin@gandalf.colorado.edu (Sonja Orlavski)
Newsgroups: fj.mail-lists.x-window
Subject: Re: printing multiple drawing areas
Date: 21 Jul 92 15:44:20 GMT
Distribution: fj
Organization: Colorado Center for Astrodynamics Research

Date: Mon, 20 Jul 1992 20:42:07 GMT
Message-Id: <1992Jul20.204207.26285@colorado.edu>
Newsgroups: comp.windows.x.motif,comp.windows.x

In article <1992Jul20.192003.3775@mlb.semi.harris.com>, pjp@sloth.mlb.semi.harris.com (Pat J. Pinchera) writes:
|> I have an alias that uses the 'xwd' and 'xpr' commands.  It will capture
|> a window that I click on, and direct the output to a PostScript file, which
|> I can then send to lpr.  It looks like this:
|> 
|> 	alias  xd 'xwd -frame | xpr -device ps -output  \!*'

I would strongly recommend using the Pbmplus package rather than xpr for
printing xwd files, as it is much more efficient and produces much nicer
pictures; also the data files are easier to play with.

Example, for a grayscale PostScript printer:

xwd -frame | xwdtopnm | ppmtopgm | pnmtops | lpr

Or, for a color PostScript printer:

xwd -frame | xwdtopnm | pnmtops | lpr

These work much better, and saving the intermediate ppm or pgm file allows
manipulation of the image with the pbmplus utilities.

			-Devin

-- 
Devin Hooker (RP90)  (SotM 7/91)  DoD #0034  devin@boulder.colorado.edu  ------
"It's being both that's a bitch."                                      --\--- /
"I wanted to take my brain to hell and back and see what I had left."  \  \ //
"This howling in the distance, it's a captivating sound.                \  \/
        Can't tell if it's ecstasy or pain..."  -DW                      \/
From: sale@els.xyplex.com (Ed Sale)
Newsgroups: fj.mail-lists.x-window
Subject: Wanna use xcalc without mouse
Date: 27 Jul 92 18:28:20 GMT
Distribution: fj
Organization: Workstation Div., Supermicro Systems Group, Sony Corporation

Date: Mon, 27 Jul 92 10:44:12 EDT
Message-Id: <9207271444.AA02986@xyplex.com>
Reply-To: elsale@eng.xyplex.com

If you look in the source to xalarm (export.lcs.mit.edu:/contrib/...)
it pops up the "enter alarm data" window with the cursor in the center
of the window.  You could modify xcalc to do the same thing, I
imagine.

  -- Ed
From: haluska@popeye.jpl.nasa.gov (James Haluska)
Newsgroups: fj.mail-lists.x-window
Subject: Problems with Athena Tree Widget
Date: 24 Jul 92 11:20:39 GMT
Distribution: fj
Organization: Command Control Automations Project, JPL

Date: 23 Jul 92 22:15:13 GMT
Message-Id: <1992Jul23.221513.1048@elroy.jpl.nasa.gov>
Newsgroups: comp.windows.x

I am trying to use the Athena tree widget on a Sparc IPX running 4.1.2 SunOS,
X11R5 fix 11. The problem I am having is that if I do not set the XtNtreeParent
resource when the child of the tree is created It can not be set using XtSetValue. For example If I have,

     
 tree_widget = XtCreateWidget("tree", treeWidgetClass,
                                parent_widget, NULL, 0);

  ....
 n = 0;
  XtSetArg(wargs[n], XtNtreeParent, parent); ++n;
  widget = XmCreateRowColumn(tree_widget, leaf_name, wargs, n);
  XtManageChild(widget);
  then create children inside row column; 


  This works correctly, but if you have:


  tree_widget = XtCreateWidget("tree", treeWidgetClass,                                parent_widget, NULL, 0);

  ....

  n = 0;
  widget = XmCreateRowColumn(tree_widget, leaf_name, wargs, n);
  XtManageChild(widget);
  XtSetArg(wargs[n], XtNtreeParent, parent); ++n;
  XtSetValues(widget, wargs, n);
  then create children inside row column;

  
  This doesn't work. Has anybody else experienced this problem. Any workarounds,
  any help would be appreciated.

===============================================================================

J. Haluska         haluska@popeye.jpl.nasa.gov
From: jym@mica.berkeley.edu (Jym Dyer)
Newsgroups: fj.mail-lists.x-window
Subject: Want DECwindows Customizations (via Resources???)
Date: 29 Jul 92 07:41:01 GMT
Distribution: fj
Organization: The Naughty Peahen Party Line

Date: 28 Jul 92 23:51:58 GMT
Message-Id: <JYM.92Jul28185158@remarque.berkeley.edu>
Newsgroups: comp.os.vms,comp.sys.dec,comp.windows.x

=o= Here's the scenario:  My workstation is a Sun SPARCstation.
I spend a good chunk of my time doing VMS development, so I tend
to have a VMS window or two on my workstation.  Our VMS systems
are running Multinet, so I'm using a TCPIP protocol.

=o= I can run DECwindows applications such as DECterm and
BOOKREADER on the VAX, using my SPARCstation's screen as the
display.  The fit is not perfect; I'd like some advice on
improving it.

Problem 1  These applications tend to take up a lot of real
~~~~~~~~~  estate on my screen.  I'd like to minimize that.
I'd like to get the menu bar and the pull-down menus -- in
fact, perhaps *all* the "Work Area Menu Widget" and pushbutton
goodies -- to use a smaller and nicer font (say, New Century
Schoolbook Roman 8).  Are these settable resources?  How can
they be set?

Problem 2  I hate those meeses to pieces.  I've set up my window
~~~~~~~~~  manager (twm) to use an icon box, with function keys
that let me change focus from window to window by stepping
through the icons.  DECterm doesn't buy this, though, and I keep
having to move the mouse cursor into the DECterm window to use
it.  Shouldn't DECterm be a little more respectful of the window
manager's (customized) paradigm?  Is there any way I can get it
to do so?

Problem 3  DECterm won't actually let me use the status line
~~~~~~~~~  unless I do a hard reset on it (by transmitting
"<ESC>c").  Yuck.  Is there any way to set it up so that I won't
have to do that?

Problem 4  Backup plan if I can't get any of the above to work:
~~~~~~~~~  Does anyone have a public domain xterm-like client
that (1) has a status line and/or (2) lets you "clear lines off
top" like DECterm does?

Problem 5  Has anyone figured out how to have multiple default
~~~~~~~~~  title and icon names that aren't "DECterm <n>"?

    <_Jym_>
From: larry@ducktales.med.ge.com (Larry Landwehr)
Newsgroups: fj.mail-lists.x-window
Subject: One program - two displays - two cursors
Date: 27 Jul 92 21:46:24 GMT
Distribution: fj
Organization: GE Medical Systems, Magnetic Resonance

Date: Mon, 27 Jul 92 14:36:47 GMT
Message-Id: <1992Jul27.143647.7934@mr.med.ge.com>
Newsgroups: comp.windows.x


How can one program be displayed on the screens of two networked
machines at the same time with two cursors active? Both cursors
independently operated; one by one user and one by the other?
From: mahesh@widget.evb.com (B.G. Mahesh)
Newsgroups: fj.mail-lists.x-window
Subject: Need some help with VisibityNotify event....
Date: 30 Jul 92 04:29:01 GMT
Distribution: fj
Organization: SETT Inc.

Date: 29 Jul 92 18:23:46 GMT
Message-Id: <1992Jul29.182346.16890@widget!uunet.uu.net>
Newsgroups: comp.windows.x,comp.windows.x.motif

Hi,

	I have set the VisibilityChangeMask bit in
	the event-mask attribute of the window. But when
	another window obscures this window the VisibilityNotify
	event does not get raised. Could someone tell me where
	I may be going wrong ? Please respond by email. I hope
	someone will respond today as I need the solution immediately.

thanks


-- 

Mahesh
mahesh@evb.com
From: media03!aak@bloom-beacon.mit.edu (Arjen van den Akker)
Newsgroups: fj.mail-lists.x-window
Subject: ColorMaps / Palettes
Date: 21 Jul 92 14:09:16 GMT
Distribution: fj
Organization: Mediasystemen, Netherlands

Date: 21 Jul 92 07:56:58 GMT
Message-Id: <2839@media03.UUCP>
Newsgroups: comp.graphics,comp.windows.x


Hello world,

In spite of some fruitless attempts I'll try it again:

Does anybody know where to find predefined colormaps / palettes with
256 entries of RGB values (or some other color model)? I don't believe
there is nobody out there using some sort of colormap. Especially I'm
looking for a colormap with as many perceptually distinct colors as 
possible. If you have any information, please let me know. I've been 
trying to find some maps for a long time already. I will post useful 
responses to this newsgroup.

please E-mail: sun4nl!media03!aak


Thanks a lot,

            Arjen van den Akker
From: jones@chpc.utexas.edu (Bill Jones)
Newsgroups: fj.mail-lists.x-window
Subject: Re: WCL on IBM RS6000
Date: 25 Jul 92 02:04:22 GMT
Distribution: fj
Organization: The University of Texas System - CHPC

Date: Fri, 24 Jul 92 14:20:02 GMT
Message-Id: <1992Jul24.142002.25767@chpc.utexas.edu>
Newsgroups: comp.windows.x


If you have AIX 3.2 all you need is a working xmkmf to build Wcl-2.2.

Bill Jones
From: yang@borel.msri.org (Joe Yang)
Newsgroups: fj.mail-lists.x-window
Subject: Unwanted characters in Asciitext Widget
Date: 30 Jul 92 12:31:29 GMT
Distribution: fj
Organization: Mathematical Sciences Research Institute, Berkeley

Date: 30 Jul 92 07:01:02 GMT
Message-Id: <25058@dog.ee.lbl.gov>
Newsgroups: comp.windows.x


   I am writting an application using Xt Intrinsics and Athena Widget
sets. In the application, there is an input action (add by calling
XAppAddInput() ) which displayes the content of a disk file to an
asciiTextWidget. The disk file is constantly being updated when the
application is running. Now the problem is, occasionally, those
invisible special character (invisible in the disk file, i.e.) (such as
^B^T etc) got displayed in the asciitextwidget window. Could some
X-perts on the net explain to me why this happened, and how to solve
the porblem? I thought there might be some resource I could set so
those invisible charaters will not be displayed, but I could not find
such resource in my manual.

  Any help will be sincerly appreciated.

--- Joe
From: jones@chpc.utexas.edu (Bill Jones)
Newsgroups: fj.mail-lists.x-window
Subject: Open Look/Motif/Athena X interface to ftp
Date: 24 Jul 92 10:33:49 GMT
Distribution: fj
Organization: The University of Texas System - CHPC

Date: 23 Jul 92 20:16:10 GMT
Message-Id: <1992Jul23.201610.28943@chpc.utexas.edu>
Newsgroups: comp.windows.x,comp.windows.x.motif,comp.windows.open-look

This is an alpha release of xftp a Open Look/Motif/Athena X interface to 
ftp. I have compiled and run it under Ultrix, AIX 3.1.5, AIX 3.2, Convex OS,
Sun OS, Unicos 6.1.4, and IRIX.

The build instructions or in the README file.

It requires at least X11R4.  Motif at version version 1.1.X or better.
Open Look OLIT version 2.1.

The source is available on ftp.chpc.utexas.edu as file
/packages/X/xftp.0.1.alpha.tar.Z.


Bill Jones
jones@chpc.utexas.edu
From: harry@neuron6.jpl.nasa.gov (Harry Langenbacher)
Newsgroups: fj.mail-lists.x-window
Subject: Re: XPaint 2.0 Beta 2 Release Information
Date: 29 Jul 92 03:03:41 GMT
Distribution: fj
Organization: JPL Pasadena CA

Date: 28 Jul 92 21:18:33 GMT
Message-Id: <1992Jul28.211833.6513@jato.jpl.nasa.gov>
Newsgroups: comp.windows.x,comp.windows.x.apps,alt.sources

In article <1992Jul28.043710.11803@cs.ucla.edu> william@lanai.cs.ucla.edu (William Cheng) writes:
>In article <l76c4kINNa20@spim.mips.com> koblas@mips.com (David Koblas) writes:
>
>When I try to compile this on a SPARC running SunOS 4.1.1 with version
>2.2.2 of gcc, I get the following error messages when compiling Options.c:

I'm on a SPARC running SunOS 4.1.1 with version 2.1 of gcc. I used:
CFLAGS = -pipe -O2 -finline-functions -fomit-frame-pointer 
CC=gcc

and it worked fine.

-- 
Harry Langenbacher 818-354-9513 harry%neuron6@jpl-mil.jpl.nasa.gov
Concurrent Processing Devices Group, FAX 818-393-4540
JPL,  M/S 302-231, 4800 Oak Grove Dr, Pasadena CA 91109        USA
From: converse@expo.lcs.mit.edu (Donna Converse)
Newsgroups: fj.mail-lists.x-window
Subject: Re: Finding the current cursor
Date: 23 Jul 92 23:25:16 GMT
Distribution: fj
Organization: X Consortium, MIT Laboratory for Computer Science

Message-Id: <9207232005.AA13835@excess.lcs.mit.edu>
             <1992Jul22.161928.19371@andersen.co.uk> 
Date: Thu, 23 Jul 92 16:05:40 EDT


> 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? 

I *guess* that you either do not have the correct name of the cursor
resource or that you are doing get values before the widget's window 
is realized.
From: siegel@mcclb0.med.nyu.edu
Newsgroups: fj.mail-lists.x-window
Subject: HELP! What's wrong with this code?...
Date: 27 Jul 92 19:20:00 GMT
Distribution: fj
Organization: NYU Medical Center, New York, NY 10016, USA

Date: 27 Jul 92 15:37:17 GMT
Message-Id: <1992Jul27.103717.1@mcclb0.med.nyu.edu>
Newsgroups: comp.windows.x

I can't seem to get this code to compile: it gives a Segmentation
Fault on the last line. Can anyone tell me what I've done wrong?

/**************************CODE STARTS HERE *************************/

/* Compile with: cc smalltest.c -lXm -lXt -lX11 -o smalltest */

#include <stdio.h>
#include <X11/Xlib.h>
#include <X11/Xutil.h>
#include <Xm/Xm.h>
#include <Xm/Form.h>
#include <X11/Xirisw/GlxMDraw.h>
#include <X11/Xirisw/GlxDraw.h>
#include <X11/keysym.h>
#include <gl/gl.h>
#include <gl/device.h>
#include <math.h>

static XtAppContext app_context;

static XrmOptionsDescRec SGIoptions =
	{"-display", "*display", XrmoptionNoArg, "mchip02:0.0"};
static Cardinal num_options = 1;

Widget SGItoplevel, MACtoplevel;

Display *MACdisplay;

main(int argc, char **argv)
{
	SGItoplevel = XtAppInitialize
	(
		&app_context,
		"GLcanvas",
		&SGIoptions,
		num_options,
		&argc, argv,
		NULL, /* instead of fallback_resources */
		NULL,
		0
	);

	MACdisplay = XtOpenDisplay(&app_context, "Display_Canvas",
		"glcanvas", NULL, 0, &argc, argv);
	MACtoplevel = XtAppCreateShell("glcanvas", "GLcanvas",
		topLevelShellWidgetClass, MACdisplay, NULL, 0);
}

I appreciate whatever help anyone can lend/give away. Please respond
via email to:
	siegel@med.nyu.edu
	Chris Siegel
	NYU School of Medicine
From: hugh@rschp1.anu.edu.au (Hugh Fisher)
Newsgroups: fj.mail-lists.x-window
Subject: Re: X: User simplicity vs code complexity
Date: 27 Jul 92 03:20:22 GMT
Distribution: fj
Organization: Research School of Chemistry, ANU

Date: 26 Jul 92 23:56:38 GMT
Message-Id: <1992Jul26.235638.2137@newshost.anu.edu.au>
Newsgroups: comp.windows.x


  The problem of complex development environments to create
  applications that are easy to use seems unavoidable. Try
  picking up all six volumes of Inside Macintosh at once,
  or measure how much space the new Windows 3.1 reference
  manuals occupy on a store bookshelf.

  Having slogged through the Macintosh learning curve and now
  working my way into X, I'd say that X is no harder, and in
  fact 'scales' better as things become more complex. Macintosh
  developers discover that menus are programmed differently
  from scrollbars from buttons from dialogs...Xlib or the X
  Toolkit at least use the same building blocks (windows/widgets)
  for all of these so more of your knowledge transfers.

	Hugh Fisher
From: p00004@mail.psi.net (Michael Smith)
Newsgroups: fj.mail-lists.x-window
Subject: X server for MS-Windows?
Date: 28 Jul 92 06:05:45 GMT
Distribution: fj
Organization: Performance Systems Int'l

Date: 27 Jul 92 15:20:00 GMT
Message-Id: <712261047.0.p00004@mail.psi.net>
Newsgroups: comp.windows.x

Is there such a thing? That is: an X-windows server that runs under 
MS-Windows 3.1 as a Windows app, i.e. not in a DOS box. Such a product
would be particularly valuable if source code were obtainable.

Thanks--

Michael Smith
From: jones@chpc.utexas.edu (Bill Jones)
Newsgroups: fj.mail-lists.x-window
Subject: Re: undefined symbol attempting to build X applications
Date: 21 Jul 92 22:57:19 GMT
Distribution: fj
Organization: The University of Texas System - CHPC

Date: Sun, 19 Jul 92 05:24:51 GMT
Message-Id: <1992Jul19.052451.15989@chpc.utexas.edu>
Newsgroups: comp.windows.x

Put a reference to get_wmShellWidgetClass, and 
get_applicationShellWidgetClass but do no call the routines.
This cause the loader to find them.  It appears that there
is a bug in the SunOS 4.1.2 loader and/or libraries.

Bill Jones