HDTenEightyP/NetNews huggingface dataset:
From: huang@eagle (Zheng Huang)
Subject: Disp RGB graph by Xlib function
X-Newsreader: Tin 1.1 PL4
Organization: Sangamon State University
Date: Fri, 28 Aug 1992 21:08:14 GMT

I want to display the RGB graph in a window, but I don't known how to do it by
using Xlib functions. 
I got the graph displayed in the window by graphic subroutine functions(winopen
writeRGB). But the problem is the window ID returned & reconized by graphic 
subroutine function is different with the window ID(for same window) by Xlib
function. How can I catch the the standard window ID which can be reconized
by window manager and Xlib functions by using Xlib functions or graphic 
subroutine functions.

===========================example =====================================
long  winid;
..
winid = winopen(); /* if this is the first window opened, winid will be 1 */
this window 'winid' will be the current window. so all the graphic subroutine
function like 'RGBmode', 'gconfig', 'writeRGB' will work on this window. But
the same window created above maybe reconized as window ID=0x380000d(which I 
got from 'xwininfo' command), Xlib function only reconized '0x380000d' as the
window id for that window, not '1'. How can I get the window id '0x380000d' by
Xlib function or graphic subroutine function which is created by winopen,
swinopen. 
========================================================================

I would appreciate it if any of you could tell me how to make this work.
My environment is Silicon Graphic, IRIX system V R4.01.

Thanks.

Huang.

--

*****************************************************************
    Name:   John Z. Huang                   
    Email:  huang@eagle.sangamon.edu
    Phone:  (W)217-524-1984,  (H)217-529-2860
    Fax:    (217)524-2101
    Mail:   406 E. Monroe, Station #222, Springfield, ILL 62701
*****************************************************************
From: henrich@crs.cl.msu.edu (Chuck Henrich)
Newsgroups: comp.windows.x
Subject: X & my Sun Keyboard (Doesn work!)
Date: 1 Sep 92 22:43:41 GMT
Distribution: comp
Organization: Michigan State University

I have just installed a Sun Type-5 Keyboard, along with the sun patches,
and the keyboard, and all of its keys are recognized by the sun console.

However, once in X, all of the special keys no longer function (I.e.
num lock, arrow keys, insert,home,pageup/down)  Does anyone have any
idea how I can re-activate all these keys in X?

-Crh

--
                          
Charles Henrich      Michigan State University      henrich@crs.cl.msu.edu
     
Newsgroups: comp.windows.x
From: izeek@techunix.technion.ac.il (Ilan Aisic)
Subject: Re: 256 grayscale levels with standard colormap
Reply-To: izeek@techunix.technion.ac.il (Ilan Aisic)
Organization: Technion, Israel Inst. of Technology
Date: Thu, 3 Sep 1992 19:54:18 GMT

In article <1992Sep2.040959.16164@walter.cray.com> vincent@cadillac.cray.com (Vincent LE BARAZER) writes:
>
> Hi everybodyx,
>
> I'd like to create an X application that draw lines of pixels, with
>color level from 0 to 255 in a Grayscale visual.
> This application has to work either on 8 planes grayscale servers or
>on 24 planes color server.
>
> My first step was to Create a new colormap, allocate 256 levels of gray
>pixels ( red = green = blue ), and install this colormap .
>
> ... but other X clients running on the same server do not like this new
>colormap !
>
> So , how can I handle 256 gray levels without changing the color map ?
>I suppose that the Visual type has something to do with this ??....
> ...

If you want to use a virtual colormap for your window, you will
get the "colormap flashing" whenever you move your pointer into and out of
your window (in an 8 planes server).  To avoid the "flashing" (when other
windows appear in false colors), it  is recommended that you allocate
from the default colormap. But then, you will not get 256 colors because
some (or many) of the cells are already in use.
If you still cannot get all the colors you need, that is, enough slots,
and you want to minimize the flashing, I suggest the following approach:
1. Create your own virtual colormap.
2. If your application only needs grays, assign all the grays
   you need to the upper portion of your colormap.
3. Leave as many unused colorcells (in your virtual colormap)
   as possible in the beginning of the colormap.
4. If your application also needs other colors, you may want
   to consider copying the content of the first colorcells
   (as many as possible) from the default colormap into your colormap.
The window manager will continue to switch colormaps,
but the colormap flashing will be reduced or not visible unless you have
some other color demanding applications on the screen.
This is so because the window manager (at least OpenWin), tend
to use the colors at the beginning of the colormap.

    ____
     /  /   __
    /  /   /_/ /| /
 __/_ /__ / / / |/   o o o

                           Ilan Aisic
           Israel                                 USA
Voice:   972-4-344474                         1-914-644-7710
Fax:     972-4-342492                         1-914-644-7763
E-mail:  izeek@techunix.technion.ac.il        ilan@allink.com
Newsgroups: comp.windows.x,comp.windows.x.intrinsics
From: bingcros@leland.Stanford.EDU (Richard Crosby)
Subject: 3D Athena Widgets, where are they?
Organization: DSG, Stanford University, CA 94305, USA
Date: Mon, 31 Aug 92 23:51:08 GMT

A little while back someone announced the existence of at 3D Athena
widget set and where you could get it.  Could someone please e-mail
me the information on how to get the widget set at either or both
rich@codedogs.com or bingcros@leland.stanford.edu?  Thanks...

Rich
From: greg@athena.cs.uga.edu (Greg Whitlock)
Newsgroups: comp.windows.x
Subject: ld: -ldl: No such file or directory (help needed)
Date: 4 Sep 92 17:12:30 GMT
Organization: University of Georgia, Athens


I recently posted to this group concerning the undefined symbols _dlopen,
_dlclose, etc and would like to thank everyone who replied.  Most everyone
told me to include the -ldl option on my final compilation line.  I did
this but a new error has arose.  It would seem this error is simple to fix
but I've been unable to fix it.  Here goes:

When compiling xgopher with the -ldl option I get the following error:
[excerpt from compiling; Sun4; OS4.1.1]

athena% make
rm -f xgopher
gcc -fstrength-reduce -fpcc-struct-return -o xgopher xgopher.o list.o util.o misc.o net.o  gui.o options.o help.o  panel.o save.o text.o error.o cso.o index.o  KeyWSink.o -g   -L/usr/local/X/export/sparc/lib -L/usr/lib -lXaw -lXmu -lXt -lXext -lX11  -ldl -B/usr/bin/
ld: -ldl: No such file or directory
*** Error code 1
make: Fatal error: Command failed for target `xgopher'
athena%

(The same happens when enclosing -ldl within -Bstatic -BDynamic)

The following file exists in /usr/lib: 
-rwxr-xr-x  1 root        24576 Oct 13  1990 /usr/lib/libdl.so.1.0

Someone suggested that -l looks only at *.a files in /usr/lib.  If so,
how would I solve this problem?

I would greatly appreciate any help as this has gone beyond getting xgopher
and xarchie compiled.  I would really like to solve this problem so noone
else has to deal with it.  

Thanks.

-Greg Whitlock
 (greg@athena.cs.uga.edu)
From: jonm@imatron.COM (Jon Meyers)
Newsgroups: comp.windows.x
Subject: Re: Motif Numbers
Keywords: motif
Date: 28 Aug 92 21:39:01 GMT
Followup-To: Jonathan Meyers
Organization: Imatron Inc., South San Francisco


Regarding Motif in the market, and the future of GUI's,
I've got a bit of information.

Actually, I've been in the same boat recently for a 
company I've been working for.

Here's the basic info I've got :

- Motif is rapidly capturing the Xt/C language based GUI
market, if they haven't got most of it wrapped up already.

- OpenLook has a significant market share for the same
market, mostly due to Sun's continued strength in the
workstation market.

- C++ based toolkits (OI) are generating interest, though
it seems that they haven't captured market share yet.

- Watch out for MOOLIT!  It let's one compile the same(?)
code for Motif or OpenLook.

Where might the evidence come from?  Well, I have a few
sources.  I suggest you look into these for yourself to
help confirm my information.  I would be happy to hear
differing opinions, except from those folks at Sun - 
who likely must defend OpenLook until the end.

- I called OSF, and they were happy to send me the 
Dataquest charts on GUI marketshare, showing Motif's
strength in the market.

- I attended XWorld and Xhibition, and found that speakers
,users and vendors were targeting Motif much more often
than OpenLook.

Hope this is interesting/helpful.

Feel free to comment/flame to jmm@imatron.com


Jonathan Meyers
Newsgroups: comp.windows.x
From: GJAMES@HUSKY1.STMARYS.CA (GJames)
Subject: eXodus
Organization: Saint Mary's University
Date: Tue, 25 Aug 1992 17:00:16 GMT

I am running eXodus by White Pine software on my pc. I can connect to a Sun 
W/S and start to run openlook. I get as far as bringing up a menu but if I 
try to run somthing i.e. clock or th e like I get a message from eXodus:

eXodus failed to accept a new client. possibly out of network connections.
	if I look in the help/about eXodus it says 30 of 32 clints free.

	I also get the following message sometimes:
Problem setting default modifier mapping


Any help would be appreciated.
From: klute@tommy.informatik.uni-dortmund.de (Rainer Klute)
Newsgroups: comp.windows.x
Subject: Re: a utility for setting window & icon names?
Date: 28 Aug 1992 08:45:41 GMT
Organization: CS Department, Dortmund University, Germany
Distribution: world
NNTP-Posting-Host: tommy
Keywords: WM_NAME and WM_ICON_NAME properties

In article <1992Aug28.103649.164427@dstos3.dsto.gov.au>, mark@genesis.itd
(Mark Nelson) writes:
|> Does anyone have a utility for setting the WM_NAME and WM_ICON_NAME
|> properties of a window?
|> 
|> xprop allows you to remove a property of a window but I couldn't find
|> anything
|> to set a property.  I know of XSetWMName(), XSetWMIconName(), etc but I
|> would
|> really rather avoid using them if I could.

Well, um, alternatively you could try XChangeProperty :-).

-- 
  Dipl.-Inform. Rainer Klute      klute@irb.informatik.uni-dortmund.de
  Univ. Dortmund, IRB
  Postfach 500500         |)|/    Tel.: +49 231 755-4663
D-W4600 Dortmund 50       |\|\    Fax : +49 231 755-2386
Xref: sparky comp.windows.x:15862 comp.graphics:9267 comp.windows.x.apps:876 comp.windows.x.motif:5902 comp.unix.aix:9204 comp.sys.dec:4790 comp.sys.sgi:13033 comp.sys.hp:9850
From: ndd@bal1 (Ned Danieley)
Newsgroups: comp.windows.x
Subject: Re: Disappearing command line arguments
Date: 28 Aug 92 14:01:10 GMT
Distribution: na
X-Newsreader: Tin 1.1 PL5

Jeff Stevens (stevens@scubed.com) wrote:
: In article <1992Aug27.035954.16698@scubed.com>, stevens@scubed.com (Jeff Stevens) writes:
: |>   XtInitialize (and variants) removes all Xt command line arguments
: |> from the command line list argv and reduces argc accordingly.  However,
: |> it also removes a "-d" flag, and sometimes removes a "-t" flag.  "-d"
: |> appears to be equivalent to "-display".  These are not documented toolkit 
: |> options, and I can't find any reference to them in the X source code.
..
: 
: Thanks to the people who responded so quickly to the above question.  I had
: not realized that any unique abbreviation of an option flag would be interpreted
: as the option flag.  This seems like a dangerous feature, since it means that
: if the command line is parsed by the application other than by the resource
: manager, application flags must be distinct not only from the standard toolkit
: flags, but also from any unique abbreviation of these flags or any application
: supplied flags.  The only safe solution to this problem is to explicitly 
: reference each flag in the application defined options table.
: 
: -- 
: ----------------------------------------------------------
: Jeff Stevens	stevens@s3mars.scubed.com, stevens@seismo.css.gov


This is something that I complained about several years ago, but
didn't get much sympathy. what I did was to stick an ifndef in
mit/lib/X/ParseCmd.c to skip the code that does that match, and
then put the proper define in my site.def. this means that you
have to use the full length names for all X options, but we
decided that was easier than changing all our programs.


diff -c ParseCmd.c.dist ParseCmd.c.bal
*** ParseCmd.c.dist     Wed Oct 30 15:00:26 1991
--- ParseCmd.c.bal      Wed Oct 30 15:01:11 1991
***************
*** 123,133 ****
--- 123,135 ----
                    break;
                }
            }
+ #ifndef       BAL
            else if (!argchar) {
                /* may be an abbreviation for this option */
                matches++;
                foundOption = i;
            }
+ #endif
            else if (table_is_sorted == Sorted && optchar > argchar) {
                break;
            }

--
Ned Danieley (ndd@sunbar.mc.duke.edu)
Basic Arrhythmia Laboratory
Box 3140, Duke University Medical Center
Durham, NC  27710   (919) 660-5111 or 660-5100
Xref: sparky comp.windows.x:15689 comp.windows.x.motif:5849
From: mark@trident.datasys.swri.edu (Mark D. Collier)
Newsgroups: comp.windows.x,comp.windows.x.motif
Subject: Using GUI builders (TeleUse in particular)
Date: 26 Aug 92 22:00:27 GMT
Followup-To: comp.windows.x
Organization: Southwest Research Institute, San Antonio, Texas

I am planning to develop a very sophisticated, highly interactive
Motif application. I have been using X/Motif for several years and
have been using internal tools to simplify user interface develop-
ment. For this new project, I am being strongly encouraged to use
TeleUse. My questions are:

     1) How well do these GUI builders really work in terms of
        developing a non-prototype product?

     2) Can I really divide the user interface, application code,
        and yet make them talk together in an elegant fashion?

     3) How is TeleUse as compared to other GUI builders. Does
        its billing as a UIMS (as opposed to a VDT) really mean
        anything?

     4) Would you use TeleUse to develop TeleUse? My application
        is a display/GUI builder which focuses on output-driven
        COTS/custom widget (like DataViews, SAMMI, SL-GMS, etc).

All opinions are welcome and encouraged. If I get enough input I
will summarize the responses.

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Mark D. Collier                      Southwest Research Institute
Senior Research Analyst              Automation and Data Systems Division
Voice: (512) 522-3437                Data Systems Department
FAX:   (512) 522-5499                Software Engineering Section
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
From: 6500mack@ucsbuxa.ucsb.edu (Michael P. Mack)
Newsgroups: comp.windows.x
Subject: Re: Color icons
Date: 28 Aug 92 18:05:30 GMT
Article-I.D.: ucsbcsl.5564


In the WMHints, set the icon_window to some window you created and then
set the background pixmap to the desired pixmap.  Whenever you iconify
the main window, the color icon will appear.

Mike
Newsgroups: comp.windows.x
From: rpb0804@zeus.tamu.edu (BATES, ROBERT PATRICK)
Subject: X-Windows on a Macintosh...?
News-Software: VAX/VMS VNEWS 1.41    
Organization: Texas A&M University, Academic Computing Services
Date: Wed, 2 Sep 1992 18:47:00 GMT

Howdy!  I just recently acquired a version of DesqView/X for my 386, and have 
seen a coupla demos of using X to interconnect different platforms, using that 
software package.  I am currently contemplating hooking my PC into a Mac 
AppleTalk network in our dorm (of the home brew variety) and we were 
considering using the X-Window and TCPIP standards to do so.  However, my buddy 
isn't sure about a version of X-Windows ported over to the Mac platform, and 
has doubts about the performance of one if it already exists.  Just curious 
about that li'l tidbit... Any suggestions would be greatly appreciated!

Thanks.

==============================================================================
Robert Bates                        Disclaimer:
rpb0804@zeus.tamu.edu                   "I make no claims..."
Texas A & M University
==============================================================================
Newsgroups: comp.windows.x
From: robh@eclipse.cs.colorado.edu (Robert G Henderson)
Subject: Compiling InterViews 3.0 with g++ 2.2.2
Keywords: InterViews g++ 2.2.2
Organization: University of Colorado Boulder
Date: Thu, 27 Aug 1992 20:55:43 GMT



I've successfully compiled libIV.a with g++ 2.2.2 on
a decstation running ultrix 4.2.  However, I've run into
a problem compiling libUnidraw.a that I'm having trouble
fixing.  If I was a C++ programmer, I could probably work
around it but I'm not.

The file giving me trouble is src/lib/Unidraw/catalog.c:

../catalog.c: In method `class PSPattern* Catalog::ReadPattern (const char *, int)':
../catalog.c:1596: bad argument 0 for function `istream::istream (struct streambuf*, class ostream* (=  0 ))' (type was unsigned int )
../catalog.c:1596: in base initialization for class `istream'

Has anyone successfully compiled InterViews 3.0 with g++ 2.2.2.  If so,
I'd appreciate hearing from you.

Thanks,

Rob Henderson
robh@cs.colorado.edu







Xref: sparky comp.windows.x:16078 comp.windows.x.motif:5977 comp.windows.x.intrinsics:232
From: tchal@tmchome.UUCP (Thomas M. Chalfant)
Newsgroups: comp.windows.x,comp.windows.x.motif,comp.windows.x.intrinsics
Subject: Re: Changing the input focus to a text widget
Date: Tue, 01 Sep 92 22:30:56 EDT
Distribution: world
Organization: My house

> can get to the correct function call, but I don't know how to select the 
> text widget and make it the input focus.
> 

Chris,
Check out XmProcessTraversal() for explicitly setting the widget focus.

Tom
Newsgroups: comp.windows.x
From: oj@miki.pictel.com (Oliver Jones)
Subject: Re: Noseguy
Summary: use bmtoa
Organization: PictureTel Corporation
Date: Tue, 1 Sep 1992 12:20:44 GMT

In article <1992Aug31.144936.18413@news.iastate.edu> kwj@iastate.edu (kwj) writes:

>Any suggestions on how to interpret and decipher X-windows bitmaps would 
>be greatly appreciated.  

Use the little program "bmtoa" provided with the MIT X distribution.
From: jigang@dale.ssc.gov (Jigang Yang)
Newsgroups: comp.windows.x
Subject: Re: Colormap questions
Keywords: Colormap
Date: 2 Sep 92 17:18:29 GMT
Organization: SSC Lab

In article <1992Sep2.142522.8178@sunova.ssc.gov>, jigang@dale.ssc.gov (Jigang Yang) writes:
|> 
|>     Is there a text file in X11 giving standard colormap RGB values ?
|> 

     And I know the file /usr/lib/X11/rgb.txt. But this is the name database.
What I want is the definition(RGB values) of colormap itself. For example,
a table with 256 entry, each entry has values for RGB.

-- 
Jigang Yang, jigang@dale.ssc.gov, jyang@sscvx1.bitnet
2550 Beckleymeade Ave. MS 4011  Tel: 214-708-3498
Dallas, TX 75237                Fax: 214-708-4898 
 
Newsgroups: comp.windows.x,comp.windows.x.motif,comp.windows.x.intrinsics
From: cws@mbunix.mitre.org (Chris)
Subject: Changing the input focus to a text widget
Organization: The MITRE Corp., Bedford, Ma.
Date: Tue, 1 Sep 1992 16:33:29 GMT


Hi,

I've got a motif application that has a popup dialog with a matrix of
textwidgets, not unlike a spreadsheet layout.

I want to set up custom traversing of the widgets such that 

a. tabbing goes across a row
b. at the last widget in the row a tab goes to a widget not in the matrix
   but a return key at the last widget goes to the next row, first column
c. I'd also like to use the arrow keys to traverse
d. There are certain columns that are skipped on tab but not on a
   reverse tab. (col1 col2 col3 col5 -- but a back tab from col5 goes to
   col4 not col3!)


My first approach was to override the key translations, this works, in that I
can get to the correct function call, but I don't know how to select the 
text widget and make it the input focus.

I couldn't see how to accomplish 'c' or 'd' with tabgroups.

Any suggestions?  Am I overlooking something very obvious?

Thanks in advance (email and I'll summarize if appropriate)

Chris
From: Stuart.Marks@Eng.Sun.COM (Stuart Marks)
Newsgroups: comp.windows.x
Subject: Re: Color icons
Date: 28 Aug 92 02:27:48 GMT
Organization: The Internet


    I've created several color pixmaps, and I was wondering how I can
    create icons for them in Xlib (X11R4).  The icon_pixmap field of
    WMHints doesn't seem to work, since some window managers (e.g.  twm)
    only copy one bit plane of the pixmap to the icon.

Right, the ICCCM defines the icon_pixmap field as always being a 1-bit-deep
pixmap, i.e. really a bitmap.

    I've been using a window but I don't want all the window manager
    gadgets.  Should I just override the window manager and write all the
    routines to handle move, expose, etc.  events manually?

No.  To display a color icon, create a window for the icon.  Don't map it,
but instead put its XID into the icon_window field of WM_HINTS.  Paint into
it whenever you get an Expose event on it.  This window can be of any depth
or visual that is appropriate for what you're drawing into it.  Note:  not
all window managers support icon windows, so it might be a good idea to
supply an icon bitmap as well.

s'marks

Stuart W. Marks				stuart.marks@eng.sun.com
Window Systems Technology		2550 Garcia Ave. M/S 21-228
SunSoft, Inc.				Mountain View, CA 94043
Xref: sparky comp.windows.x:15879 comp.windows.x.motif:5907 comp.windows.open-look:3652 comp.windows.misc:1242
From: wongm@latcs1.lat.oz.au (Mun Chung Wong)
Newsgroups: comp.windows.x,comp.windows.x.motif,comp.windows.open-look,comp.windows.misc
Subject: Displaying different font characters in window title
Date: 30 Aug 92 07:21:07 GMT
Organization: Comp Sci, La Trobe Uni, Australia
Originator: wongm@ipc5.lat.oz.au


Hi,
  I wonder if any one has tried displaying characters of different fonts sets in the window
  title in X ?

  More specifically, I would like to display some Chinese characters of fonts HKU-Ch16 along
  with lucidasans-bolditalic-14 in my Xterm and other title. How can I do that. I tried
  only displaying Chinese chars in Xterm title, but I can't get it.

  Please email any replies to wongm@latcs1.lat.oz.au as I seldom read these newsgroups!

  Thanks in advance !!


  - wongm@latcs1.lat.oz.au
From: amir@matis.UUCP (Amir Katz)
Newsgroups: comp.windows.x
Subject: Help! I can't rebuild X11R5
Date: 30 Aug 92 21:17:44 GMT
Reply-To: matis!matis.ingr.COM!amir
Organization: SEE Technologies Ltd.
X-Unparsable-Date: Sun, 30 Aug 92 10: 30:01 IDT

Xperts,
I'm desperate. I've installed patches 13-17, and the XIDLE extension, and
rebuilt the full release. When I bring it up, after a minute or so, the
server dies. I assumed that XIDLE is to blame, so I removed the extension
and tried to rebuild. Now I'm getting errors when I'm build ANY executable.
For example: 

making all in ./extensions/test...
rm -f shapetest
cc -o shapetest shapetest.o -L/usr/lang/SC1.0  -pipe
   -L../.././extensions/lib -lXext  -L../.././lib/X -lX11 -L/usr/lib    
ld: /usr/lib/libXt.so.4.10: rd_shsb: can't open shared library /usr/lib/libXt.so.4.10
Compilation failed
gmake[3]: *** [shapetest] Error 4

I get the same error for all executables.
LD_LIBRARY_PATH is not defined, and as far as I can tell, in this
simple-minded case, shapetest.c does not use any toolkit stuff, so why does
it want to access libXt?
I typed 'ldconfig' to no avail. I made the libXt.so.* executable - also no
help here:
  -rw-r--r--  1 root       428374 Aug 28 10:09 /lib/libXt.a
  -rw-r--r--  1 root         5398 Aug 28 10:09 /lib/libXt.sa.4.10
  -rwxr-xr-x  1 root       385024 Aug 28 10:09 /lib/libXt.so.4.10*

I'm using Sun's native C compiler, on a Sun SS1+ w/SunOS 4.1.2. 

Before I restore X11R5 from tape, re-apply patches 1-12 and rebuild, does
anyone have an idea?

Help!!

Thanks in advance,
-- 
/* ----------------------------------------------------------- */
/*  Amir J. Katz             |   amir@matis.ingr.COM           */
/*  System Specialist        |   Voice:  +972 52-584684        */
/*  SEE Technologies Ltd.    |   Fax:    +972 52-543917        */
/* ............ Solaris 2.0 - The Final Frontier ? ........... */