HDTenEightyP/NetNews huggingface dataset:
From: spencer@med.umich.edu (Spencer W. Thomas)
Subject: Re: Shared memory extension (XShm)
Followup-To: comp.windows.x
Organization: University of Michigan
Date: Fri, 4 Sep 1992 21:01:50 GMT

In article <71982@apple.Apple.COM> pgj@Apple.COM (Paul Jensen) writes:

...  Question from me about XShm extension and detecting when it can
be used ...

> Well, this isn't an intrinsics question, but I'll take a stab at it.

My fault -- I was thinking "It isn't an app question, so it must be an
intrinsics question."

>   What you need to do is
> set an error handler to detect if the X_ShmAttach request fails.

This seems to be the consensus.  The documentation is wrong when it
says that XQueryVersion will tell you whether you can use it with a
particular display.  It only tells you whether the extension is present.

Further discussion should be directed to comp.windows.x only (per the
followup-to line above).

--
=Spencer W. Thomas 		|  Info Tech and Networking, B1911 CFOB, 0704
   "Genome Informatician"	|  Univ of Michigan, Ann Arbor, MI 48109
Spencer.W.Thomas@med.umich.edu	|  313-747-2778, FAX 313-764-4133
Newsgroups: comp.windows.x.intrinsics
From: dealy@kong.gsfc.nasa.gov (Brian Dealy - CSC)
Subject: Prob subclassing from BulletinB for use with RectObj subclasses?
Keywords: widget object RectObj 
Reply-To: dealy@kong.gsfc.nasa.gov (Brian Dealy - CSC)
Organization: Goddard Space Flight Center
Date: Mon, 31 Aug 92 12:10:19 GMT



-- 
Hi, I have written a container widget which I would like to make a subclass ofd
XmBulletinBoard. The widget accepts RectObj subclasses as children and maintains
stacking order for them and distributes events to the children. As a child of 
Bulletin Board I get the following feedback from dbx after it dumps core.

warning: object file read error: text address not found
ConvertATranslation() at 0xf7791778
XtInstallAccelerators() at 0xf7791d7c
`Manager`ConstraintInitialize() at 0x23764
CallConstraintInitialize() at 0xf77759a0
CallConstraintInitialize() at 0xf7775978
CallConstraintInitialize() at 0xf7775978
_XtCreate() at 0xf7775d28
_XtCreateWidget() at 0xf7775f80
XtCreateWidget() at 0xf7776010
XtCreateManagedWidget() at 0xf7776034
main() at 0x2ac0

this occurs when I add an RectObj subclass to the container. It takes widget children fine.  I have the code segment in my manager widget which says:
#ifdef X11R4_INTRINSICS
     static CompositeClassExtensionRec ext;

     ext.next_extension = NULL;
     ext.record_type = NULLQUARK;
     ext.version = XtCompositeExtensionVersion;
     ext.record_size = sizeof(CompositeClassExtensionRec);
     ext.accepts_objects = True;
     genManagerClassRec.composite_class.extension = (XtPointer) &ext;
#endif

I got this from the athena tools plotter widget and it worked fine until I switched from subclassing off constraint to BulletinBoard.

A friend says this is a problem with Bulletin Board (or maybe XmManager).
Anybody know about this? any info will be greatly appreciated. Thanks
Brian Dealy

dealy@kong.gsfc.nasa.gov
Newsgroups: comp.windows.x.intrinsics
From: fineman@markov.arc.nasa.gov (Charles Fineman)
Subject: Re: Getting color names(char*) for resources.
Organization: NASA/ARC Information Sciences Division
Date: Wed, 26 Aug 1992 23:12:14 GMT

The problem is that X does not store the name of the color; rather it
stores the RGB values. If you *really* need the color name, you can
look at Cpicker (I think that's the name) from the contrib directory.
It's a widget that let's you edit the value of a color cell entry. One
of the options is to get a set of known (by name) colors that closly
match the cell being edited (never looked at the metric he uses
though).

If you don't need the name per se; just a string you can store so you
can load the color later, you can use the hex form for specifying
colors. Look at the documentation for XParseColor. You can specify a
color using one of the following forms:

	#RGB
	#RRGGBB
	#RRRGGGBBB
	#RRRRGGGGBBBB

Each character represents a hexidecimal digit.

Hope this helps!

	Chuck

--
Organization: Penn State University
Date: Sat, 29 Aug 1992 18:10:15 EDT
From: <NXD103@psuvm.psu.edu>
Newsgroups: comp.windows.x.intrinsics
Subject: How to change the label in a label wgt in a loop?

I was trying to change the label of a label wgt in a loop using
XtVaSetValues (or XtSetValues) and passing an array of strings to
XtNlabel.  However, only the last item of the string array appears
on the screen.  I also tryed to use XFlush after each XtVaSetValues
call, but in vain.  Within the loop, there are graphic operations on
other widgets.

The O'Reilly's book (Vol.5) describes that the XtVaSetValues function
calls the intrisics methods set_values, which uses a redraw variable to
control the widgets's redisplay feature.  Is this redraw variable
implemented for the label widget?

Could anyone help me to find a solution?   Thanks in advance.

Niu Duan

Newsgroups: comp.windows.x.intrinsics,comp.windows.x
From: tas@engr.ucf.edu (Taha Sidani)
Newsgroups: comp.windows.x.intrinsics
Subject: Help: Command Widgets graphics?
Date: 2 Sep 92 18:35:12 GMT
Organization: engineering, University of Central Florida, Orlando

I would like to create a command widget that does not follow the typical;
rectangle with a label inside.

My command widget should look like this:

	   ----------------------------------------
	   |  text..     |   text2       |  text3 |
	   |             |               |        |
	   |  text       |---------------| text   |
	   |-------------|  text         |        |
	   |   text      |               |        |
	   |_____________|_______________|________|  

I tried implementing this widget by creating :

      1.  a command widget in a Form Widget and
      2.  get the x, y location for that button and
      3.  create boxes inside of it
 However, The Form widget will not let me overlap widgets.

 Please send your reply to:

 taha@ists.engr.ucf.edu

 thanks
Newsgroups: comp.windows.x.intrinsics
From: rmbult01@orion.spd.louisville.edu (Robert M. Bultman)
Subject: Athena Text widget question
Summary: Why do some resources seem to be missing?
Date: Fri, 28 Aug 1992 19:05:35 GMT
Organization: University of Louisville
Keywords: Athena, Text widget

I am using an AsciiText widget and thought I would use XtVaGetValues
to get the resource AsciiText.XtNlength, which is listed in
Volume 5, X Toolkit Intrinsics Reference Manual.  When I try to
compile I get errors to the effect that the compiler doesn't
know what the Asciitext structure is.  Looking at AsciiText.h
I don't see the length resource listed.  What gives?  (BTW, I
also tried to get just XtNlength.  Compiler didn't cough, but
program returned -1 for the string length.)

call:
=====
int length;

XtVaGetValues(
	theAsciiTextWidget,
	[XtNlength/AsciiText.XtNlength], &length,
	NULL
	);

Thanks for any answers.
Rob
-- 
Robert M. Bultman                              |
Speed Scientific School                        |
University of Louisville                       |
Internet: rmbult01@starbase.spd.louisville.edu |
Newsgroups: comp.windows.x.intrinsics
From: subhas@spss.com (Subhas Darisipudi)
Subject: List Widget Selection
Organization: SPSS Inc.
Date: Sat, 29 Aug 1992 19:38:45 GMT

Hi

  I am trying to improve performance on list selection . Typically 
I am working on a large list(>500 strings!!), and  selections are made
on random order. I would like do selection as a BATCH, as for adding
deleting operations. Is there a way ? 
I am using Motif1.1 running under AIX/RISC. I prefer not
to go programming the  List Widget.

please e-mail me your suggestions. 
Thanks in advance.

Subhas
From: pprun@lookout.mnet.uswest.com
Newsgroups: comp.windows.x.intrinsics
Subject: More popup positioning troubles
Date: 26 Aug 92 16:46:14 GMT
Organization: US WEST Communications


Okay, I'm back.  My first post asked how I position popup shells.  To refresh
your memory, I'm using Motif and have a scheme of an application shell at the
top of the widget food chain (but, don't we all) and many popup shells under
it.  I wasn't specific enough in my previous post, because everyone thought
I wanted to do popup menus.  Au contraire, I have a design that mandates
all windows be in their own shell, either top level or transient, so they
can come and go and be independently moveable by the user.  In case anyone
cares, we're doing an object oriented design, specifically model-view-
controller, so each shell is an independent view.

As I mentioned before, trying XtMoveWidget before the XtPopup call does not
work.  Reversing the order of those calls positions the widget properly, but
only after it appears (flashes) at the spot that mwm deems it should appear.
Almost all of the respondees (is that a word?) told me to set the resources,
namely XtNx and XtNy.  Well, I'm ready to shoot my workstation to put it out
of its misery.  No matter if I set the resources before the widget creation
call or just before the XtPopup call with an XtSetValues, the shell goes
where ever it please (and not always the same place).  In my befuddled mind,
this points to the window manager playing the part of the bad guy.  I ask you
again, any clues, especially in the area of the window manager preventing
the positioning for reasons unknown?


Pete Prun
pprun@lookout.mnet.uswest.com

"any funny business, and the workstation gets it..."
From: ware@organ.cis.ohio-state.edu (Peter Ware)
Newsgroups: comp.windows.x.intrinsics
Subject: Re: More popup positioning troubles
Date: 27 Aug 92 17:42:48 GMT
Organization: Ohio State Computer Science
Originator: ware@organ.cis.ohio-state.edu

In article <1992Aug26.164614.20623@advtech.uswest.com>
pprun@lookout.mnet.uswest.com writes:

   No matter if I set the resources [XtNx & XtNy] before the widget
   creation call or just before the XtPopup call with an XtSetValues,
   the shell goes where ever it please (and not always the same
   place).  In my befuddled mind, this points to the window manager
   playing the part of the bad guy.

I'm a little surprised because I routinely use this method to position
shells.  Make sure you are setting it on the Shell and not the child
of the Shell.  Also, make sure you are using coordinates relative to
the root window.  Can you post a _short_ code fragment/example?

--pete
--
Pete Ware / Ohio State University /
           ware@cis.ohio-state.edu
           (614) 538-0965
Too bad the Nike slogan isn't "Just Do It Right" instead of "Just Do It"
From: nandraj@unisql.UUCP (Nandraj Arni)
Newsgroups: comp.windows.x.intrinsics
Subject: Getting color names(char*) for resources.
Date: 26 Aug 92 18:31:09 GMT
Reply-To: nandraj@unisql.UUCP (Nandraj Arni)
Organization: UniSQL, Inc., Austin, Texas, USA



   I want to know how to get color names(char*) for some Widget's
background or anything? I asked this before, I did not get answers
but some netters wanting the answers. That is why I am posting
across groups.

   Say, if you make an application with motif GUI. You want to get
the name of colors of some resources programmitically. How would
you do that at any level, Xlib, Xt or Motif?


Thanks,



-- 
*******************************************************************
Nandraj Arni

UniSQL, Inc.                           Voice: 512 343 7372 Ext. 107
9390 Research Blvd.                              Home: 512 794 9386
Kaliedo II			   	          FAX: 512 343 7383
Austin, TX 78759

Email: unisql!nandraj@cs.utexas.edu
*******************************************************************
Newsgroups: comp.windows.x.intrinsics
From: drand@spinner.osf.org (Douglas Rand)
Subject: Re: More popup positioning troubles
Organization: Open Software Foundation
Date: 26 Aug 92 18:30:39

In article <1992Aug26.164614.20623@advtech.uswest.com> pprun@lookout.mnet.uswest.com writes:

   Okay, I'm back.  My first post asked how I position popup shells.  To refresh
   your memory, I'm using Motif and have a scheme of an application shell at the
   top of the widget food chain (but, don't we all) and many popup shells under
   it.  I wasn't specific enough in my previous post, because everyone thought
   I wanted to do popup menus.  Au contraire, I have a design that mandates
   all windows be in their own shell, either top level or transient, so they
   can come and go and be independently moveable by the user.  In case anyone
   cares, we're doing an object oriented design, specifically model-view-
   controller, so each shell is an independent view.

   As I mentioned before, trying XtMoveWidget before the XtPopup call does not
   work.  Reversing the order of those calls positions the widget properly, but
   only after it appears (flashes) at the spot that mwm deems it should appear.
   ....

No no.  Bad, bad...  XtMoveWidget is for constraint widget parents
not for the user.   You can do two things.   The first is a call
to XtSetValues and set the x and y positions of the shell.  This is 
fine for most top level shells.  The second is calling XmMenuPosition
which takes an event specification and will "correctly" position the
menu for you.  I'd do the latter as we deal with the queer cases like
the menu moving off-screen and such.

--
Douglas S. Rand <drand@osf.org>		OSF/Motif Dev.
Snail:         11 Cambridge Center,  Cambridge,  MA  02142
Disclaimer:    I don't know if OSF agrees with me... let's vote on it.
Amateur Radio: KC1KJ
From: ldawes@uahcs2.cs.uah.EDU (Lisa Dawes, Computer Science Dept., Univ. of Alabama-Huntsville)
Newsgroups: comp.windows.x
Subject: R5 Server crash
Date: 27 Aug 92 22:20:10 GMT
Organization: The Internet


We've had problems where someone who is running remote X applications on
our R5 server on a Sparc I running SunOS 4.1.1 has had the server
crash.  

There seems to be no errors or warnings issued.  Sometimes these crashes seemed
to coincide with someone exiting a server on a remote machine.

I guess my question is, has anyone else had problems with the intermittent 
crashes of the R5 server on a Sparc.
From: m19823@mwunix (Ron Zahavi)
Newsgroups: comp.windows.x
Subject: ICCCM Ver. 1.1 document
Date: 26 Aug 92 13:51:02 GMT
Organization: MITRE Corporation, McLean VA

I am looking for a postscript (or text) version of the ICCCM Ver. 1.1 
document that comes along with X11R5.  I have tried to produce the
icccm.PS document from the icccm.ms file but the macros do not seem to
work correctly on our system.

I would appreciate it if someone coule e-mail me the document or point me
to where I may be able to access it.

Thanks,

 -- Ron --

==============================================================================
Ron Zahavi                              Tel:            (703)883-5407
MITRE Corporation                       Internet:       rzahavi@mitre.org
Mail Stop Z267
7525 Colshire Drive
McLean, Virginia 22102
==============================================================================
Newsgroups: comp.windows.x
From: futzi@uni-paderborn.de (Michael Kutzner)
Subject: Re: X-FTP ?
Followup-To: comp.windows.x
Organization: Uni Paderborn FB 17 Informatik GERMANY
Date: Tue, 1 Sep 1992 11:53:24 GMT


>>>>> About X-FTP ?, Luis Ochoa said:

Luis> Is there a X-FTP ?
Luis> I'll like to ftp files without having to type all the time at the FTP
Luis> prompt.

What about FtpTool4.3.

You get it on swdsrv.edvz.univie.ac.at (/x11/contrib/Ftptool4.3.tar.Z)
	      unix.hensa.ac.uk         (/pub/uunet/pub/window-sys/X/contrib/..)
              ftp.uni-paderborn.de     (/pub/unix/X11/more_contrib/ftptool-4.3.tar.Z)
and on other ftp-sites.

Luis> Thanx

Greetings, Michael


********************************************************************************
** -------------------------------------------------------------------------- **
**     Michael Kutzner    **  X-Betreuung     **  <futzi@uni-paderborn.de>    **
**                                                <xgurus@uni-paderborn.de>   **
** -------------------------------------------------------------------------- **
********************************************************************************
Newsgroups: comp.windows.x
From: kapdo@src.umd.edu ()
Subject: Help..I forgot how to get XGRABSC file..
Originator: kapdo@laplace.src.umd.edu
Organization: Systems Research Center, University of Maryland, College Park
Distribution: usa
Date: Fri, 28 Aug 1992 00:45:38 GMT


last time I posted how to print xwindow panel and I had several advises
to do this at that time.
Unfortunately, I forgot how to get xgrabsc file after I deleted mail about this
So, Anyone know how to get this, please let me know...

please send mail to kapdo@src.umd.edu

Thanks in advance

-kapdo@src.umd.edu


Xref: sparky comp.windows.x:15865 comp.windows.x.apps:877
From: azhao@cs.arizona.edu (Qiang Alex Zhao)
Newsgroups: comp.windows.x,comp.windows.x.apps
Subject: Re: Xnlock -- bug -- where's its author?
Date: 29 Aug 92 18:41:28 GMT
Followup-To: comp.windows.x
Organization: Computer Science Dept, Univ of Arizona, Tucson

> On Aug 28,  1:59pm, "Qiang Alex Zhao" wrote:
> |"I met some serious problem in using xnlock -- but my email to the
> |"author, "Dan Heller" <argv@sun.com>, bounced back.

Whoa -- old address.. I'm at argv@z-code.com

> XnLock is not written properly; it queues up all events (proof: start a XClock
> start xnlock, wait 2 mins or so, unlock, see the clock speed up) Your server
> crashes because it runs out of memory. Use xlock instead.
> -- 
> Ronald van Loon (rvloon@cv.ruu.nl) 3DCV Group, Utrecht, The Netherlands.

xnlock does a server grab so that no other application can pop up a
window on top of it.  It just so happens that when you do a server
grab, events queue up on the server (not in the app).  If an X server
runs out of memory because it can't deliver events, who's at fault?
I don't see how it can be xnlock's fault.  If you want to use xnlock
and don't want the grabs, just comment out those two lines in the
source.

  --dan

-- 
= Qiang Alex Zhao		   Computer Science Department
  azhao@cs.arizona.edu             University of Arizona
  (602) 621-1815                   Tucson, AZ 85721
From: fhl@milton.u.washington.edu (Dean Pentcheff)
Newsgroups: comp.windows.x
Subject: Building and setting up X for Japanese use
Date: 28 Aug 92 16:52:30 GMT
Reply-To: dean2@tbone.biol.scarolina.edu (Dean Pentcheff)
Followup-To: comp.windows.x
Organization: Department of Biology, University of South Carolina, Columbia

I'm in the process of trying to set up X Windows in as Japanese-ified a
fashion as possible (we have a new Japanese student in the lab).
However, I'm a bit lost.  

First question: is the -DX_WCHAR/-DX_LOCALE extension in the X11R5
build necessary if one wants to use internationalized versions of the
software?  If so, why does my build (on a Sparc IPC, SunOS 4.1.1) crash
when (and only when) those are defined?

Second question: what else should I (can I) do?  The student is a
biologist, so what we're looking for is the ability to read "fj"
netnews, plus any other generic X/UNIX facilities that have been
adapted for Japanese use.  We are not going to be doing software
development.  This is strictly an end user issue.

I gather that there may be versions of standard software (xterm, what
else?) that have been reworked for Japanese use.  Where can I find out
what there is and where to snarf code?

Thanks for any help or advice you can give me!

-Dean
From: brenner@ucunix.san.uc.edu (David L. Brenner)
Newsgroups: comp.windows.x
Subject: Problems with Num lock on a Sun
Date: 3 Sep 92 20:23:16 GMT
Organization: University of Cincinnati

I am using a Sun IPC with a type-4 keyboard, and I can't seem to get the
Num Lock key to register.  When I hit it I get no respose.

I used xev(1) to see if the event was being registered, and it is.

Has anyone else had/have this problem, and if so, how did you fix it.

Please excuse me if this is really obvious, but I can't seem to get this
to work, and it's become really critical that I get it working soon.

Thanks in advance.

David Brenner
brenner@ucunix.san.uc.edu

-- 
David L. Brenner                         brenner@ucunix.san.uc.edu
"Sorry, guys -- breaking into computers and writing a stupid virus
 doesn't make you a hacker.  It's not that easy."
  -- Robert Stevenson, Computerworld
Newsgroups: comp.windows.x,comp.windows.x.apps
From: ebina@void.uiuc.edu (Eric Bina)
Subject: Finding the installed colormap
Organization: NCSA
Date: Mon, 31 Aug 1992 22:05:27 GMT


How do I find out the currently installed colormap?  I need this for a simple
screen grabbing function I am doing.  To grab an arbitrary section of the root
window I do an XGetImage() with IncludeInferiors.  The problems is that the
colormap that is installed at the time of the grab may not be the default
colormap.  When I save this image to file, I want to save the proper colormap
with it.  In particular I am having this problem on an SGI Indigo.  The SGI seems
to do some strange stuff with colormaps in an attempt to prevent colors flashing
when you change to windows with different colormaps.  Can anyone give me any
help/advice on this?

	Eric Bina
	ebina@ncsa.uiuc.edu
Newsgroups: comp.windows.x.pex
From: rthomson@mesa.dsd.es.com (Rich Thomson)
Subject: Re: 3d WC from Cursor Position
Reply-To: rthomson@dsd.es.com (Rich Thomson)
Organization: Design Systems Division, Evans & Sutherland, SLC, UT
Date: Tue, 1 Sep 92 19:44:34 GMT

In article <1992Aug28.215200.1406@bmw.mayo.edu>
	bruce@mayo.edu writes:
>Is there anyway to get a  REAL 3D WC coordinate from a
>2d cursor position that reflects the ACTUAL location
>where it is (in 3d)

Since the cursor sits over a pixel in the 2D device coordinate space
of the screen, there is no "actual location" in 3D.  The only way for
a cursor to have a true 3D position is for the cursor to report three
axes of positioning information.

Basically, you're going to need a space ball, dial box, "bat",
polhemus position sensor, or some other kind of technology that has at
least three degrees of freedom.  A device with 2 degrees of freedom
(such as a mouse) can't report a true 3D position.

							-- Rich
-- 
	Repeal the personal income tax; vote Libertarian in 1992.
Disclaimer: I speak for myself, except as noted; Copyright 1992 Rich Thomson
UUCP: ...!uunet!dsd.es.com!rthomson			Rich Thomson
Internet: rthomson@dsd.es.com	IRC: _Rich_		PEXt Programmer
From: hersh@expo.lcs.mit.edu (Jay Hersh)
Newsgroups: comp.windows.x.pex
Subject: Re: GLX? OpenGL?
Date: 2 Sep 92 18:32:50 GMT
Organization: X Consortium, MIT Laboratory for Computer Science

In response to the following statement

>>This means
>>that PEX clients are assumed of widely available, relatively 
>>vendor-independant and cheap (PEX-IS is free) servers.



Bill Glazier writes


>The second assumption you made is that because the PEX-SI is 'free' on the MIT tape, this means PEX products will be less expensive.  Untrue again.  In fact,
>as argued by Allen Akin in this space not too long ago, the PEX-SI is financed 
>by the dues vendors pay to the X Consortium (most large vendors pay $50K/year),
>and by special assessments as required. For the first PEX-SI, Sun Microsystems
>was paid about $750K by participating companies.  Since a new SI will likely
>be developed for 6.0, either the X Consortium will have to finance the effort,
>or participating companies will either donate manpower or dollars to fund
>it's development.  There's no such thing as a 'free' SI (or lunch). 


I don't follow your conclusion at all Bill. All this fellow said was that
there is a source of free PEX Servers. He made no connection between costs
of commercial PEX Servers and the fact that they're based on a free (no quotes)
SI. Yes in fact the vendors paid for the SI, but if they didn't pay for the
SI they would all have had to pay for individual implementations themselves.
Since most vendors leverage some or all of the SI code, they do acheive some
savings in their development costs. I would guess the same is true for OpenGL,
but it is not accurate or fair to compare the development cost of PEX to the
license cost of OpenGL. The cost of the PEX-SI now (and when 6.0 is available)
to the general public will continue to be $0.00, it is publicly ftp-able
software. For many folks this is the bottom line they're concerned with,
how much can I get it for, not who paid to develop it, or how much it cost
them..


	Personal Opinions

	Jay Hersh

--
Hopfen und Malz, Gott erhalts
Newsgroups: comp.windows.x.pex