HDTenEightyP/NetNews huggingface dataset:
From: azhao@cs.arizona.edu (Qiang Alex Zhao)
Newsgroups: comp.windows.x
Subject: Help -- set/get WM_DELETE_WINDOW
Keywords: WM_DELETE_WINDOW
Date: 18 Aug 92 07:09:56 GMT
Followup-To: comp.windows.x
Organization: Computer Science Dept, Univ of Arizona, Tucson


Hi,

I tried to use WM_DELETE_WINDOW, hoping to let my program know when a
window is going to be killed. But my code didn't work with twm (Sun,
X11R5), mwm, 4Dwm (SGI/Iris, X11R4).

Here's my code:

	....
	Atom delw;
	....
	delw = XInternAtom(display, "WM_DELETE_WINDOW", False);
	XSetWMProtocols(display, window, &delw, 1);
	....
	/* event-handling loop ... get event in variable ev */
	switch (ev.type) {
	....
	case ClientMessage:
		printf("Got it!\n");
		/* free/destroy everything and close display */
		break;
	....
	}
	....

My program just opened a window, "xprop" showed:

	WM_STATE(WM_STATE):
			window state: Normal
			icon window: 0x0
	WM_ICON_NAME(STRING) = "Test"
	WM_NAME(STRING) = "Test"
	WM_PROTOCOLS(ATOM): protocols  WM_DELETE_WINDOW
	....

Then I selected window menu (mwm) "Quit" or "Exit" -- nothing happened
to that window, and the program still ran happily.

What should I do? I saw some articles on this issue posted some weeks
ago -- could anybody send me copies of those articles, or even better,
a summery?

Thanks a lot.

________________________________________________________________
= Qiang Alex Zhao		   Computer Science Department
  azhao@cs.arizona.edu             University of Arizona
  (602) 621-2759                   Tucson, AZ 85721
Newsgroups: comp.windows.x
From: williams@herky.cs.uiowa.edu (Kent Williams)
Subject: REQUEST: R4 on an RS6000
Date: Thu, 13 Aug 1992 18:24:57 GMT
Organization: University of Iowa, Iowa City, IA, USA

I have muddled my way through the X11R4pl18 tape, and have libraries
and headers, but some clients work, & others don't.  I just need the
client side stuff, not servers.

To head off a few of the likely responses

1. No I don't want to get an R5 tape; we haven't done an R5 port of
our stuff yet.

2. (if AIX 3.2 includes R4) No I can't get 3.2 installed on the
system, for a number of reasons.

I could get by just fine if someone would just send me the files that
need to be in core.src/mit/config.

Thanks in advance!

Newsgroups: comp.windows.x
From: william@oahu.cs.ucla.edu (William Cheng)
Subject: Re: flowcharting on X
Originator: william@oahu.cs.ucla.edu
Keywords: X windows flowchart
Organization: UCLA Computer Science Department
Date: Sat, 15 Aug 92 21:17:22 GMT

In article <1493@svserv.UUCP> sam@adpgate.UUCP (Sam Schonstal) writes:
>I am looking for a flowcharting program for Unix X windows.
>
>could some one mail me any information you may have on such a program.

Would a MacDraw-like program do?  You can try tgif, which is available
through anonymous ftp from the /contrib directory on export.lcs.mit.edu
or in the /pub directory on rye.cs.ucla.edu.  The current release is
version 2.12 at patchlevel 11.

You can create symbol files for your favorite primitives; there are a
few examples in the flowchart.tar.Z file in /pub/samples_tgif on
rye.cs.ucla.edu.  Please read the README file in that directory for
instructions.  More detailed instructions about how to build these files
are in /pub/tgif.man (or in the distribution).
-- 
Bill Cheng // UCLA Computer Science Department // (310) 575-4507
3564-C Boelter Hall // Los Angeles, California 90024 // USA
william@CS.UCLA.EDU      ...!{uunet|ucbvax}!cs.ucla.edu!william
Newsgroups: comp.windows.x
From: ware@organ.cis.ohio-state.edu (Peter Ware)
Subject: Re: How do you create a Modeless popup Widget?
Originator: ware@organ.cis.ohio-state.edu
Organization: Ohio State Computer Science
Date: Fri, 14 Aug 1992 16:38:09 GMT

To create a modeless popup:
	XtPopup (shell, XtGrabNone)
or if you want to do it from a callback, use
	XtCallbackNone ()
the existing action, XtMenuPopup() attempts to be clever and
won't work for you.

--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"
Newsgroups: comp.windows.x,comp.unix.aix
From: e-sink@uiuc.edu (Eric W. Sink)
Subject: Why is XDrawString so SLOW under AIX 3.2.2 ?
Originator: sink@ux2.cso.uiuc.edu
Summary: Really slow.  Really.
Reply-To: e-sink@uiuc.edu
Organization: University of Illinois at Urbana
Date: Tue, 18 Aug 1992 15:06:11 GMT

The window is sort of like a spreadsheet, with lots of text being
drawn.  Window updates are instantaneous on every other display
we have.  On my RS/6000 model 220, AIX 3.2.2, it takes up to 30
seconds to do a redraw.

The problem is the X server, I'm pretty sure of that.  The RS/6000
version is quite speedy when displayed on an HP 700.  However, the
HP version is slow as a dog displayed on the RS/6000.

Each time a cell is drawn, there is an XFillRectangle and an
XDrawString.  These are the principle Xlib calls used to refresh
the window.

I ran the app through xscope, which revealed that when displaying to the
RS/6000 display, there were FAR more PolyText8 and PolyFillRectangle
requests.  However, inserting a counter at the place where I make the
above mentioned calls shows that the same number of Xlib calls are being
made (roughly).

It's almost like my two Xlib calls are generating many many more X
protocol requests on the RS/6000 server than on the others (HP, Sun,
DEC, SGI).

Any ideas ??

-- 
Eric W. Sink, Spyglass        | [ Cute quote deleted ]
1800 Woodfield Drive          |
Savoy, IL  61826              |
---- e-sink@uiuc.edu ---------|---------- 217-355-6000 -----------------------
Newsgroups: comp.windows.x
From: eaj@trionix.COM (Eric Jenkins)
Subject: Enter, Leave Notify events lost?
Organization: The Internet
Date: Fri, 14 Aug 1992 15:13:53 GMT


Simple Question (not in the FAQ):

Should an X server always generate an EnterNotify event and a
LeaveNotify event whenever the cursor crosses a window?  Or, is it
possible to move the pointer so fast across the window that the X
server will not generate the Enter and Leave Notify events?

The Reason I Am Asking the Simple Question:

I setup EnterNotify and LeaveNotify handlers for an OLIT menuShell.
My intent is to popdown the menuShell whenever a LeaveNotify event is
caught.  What I have found is that if I move the cursor quickly enough
across the menuShell window, no EnterNotify nor LeaveNotify events are
delivered from the X Server.

Is this behavior due to Event Compression by the xnews server?  
  If so, is the compression selected by the menuShellWidgetClass?  
     If so, then if I use a generic X window in place of the
            menuShellWidgetClass, will I always catch LeaveNotifyEvents?

Is this behavior specific to Sun xnews server, or more general to all
  X servers?

Environment: Sun IPX, SunOS 4.1.1, OpenWindows 3.0, OLIT x.x

--Eric
*****************************************************************
*		Eric Jenkins					*
*		Trionix Research Laboratory, Inc.		*
*		8037 Bavaria Rd.				*
*		Twinsburg, OH     44087				*
*								*
*		(216) 425-9055					*
*		(216) 425-9059 (FAX)				*
*		(800) 442-7017					*
*								*
*		eaj@trionix.com					*
*****************************************************************
Newsgroups: comp.windows.x
From: sjm@merlin.anu.edu.au (Stephen Meatheringham)
Subject: XView + GUI
Keywords: XView + GUI
Organization: Mt. Stromlo and Siding Spring Observatories
Date: Fri, 21 Aug 92 00:06:04 GMT

Can anyone enlighten me as to whether there is a Public Domain GUI builder 
that will generate XView calls?


-- 

				Stephen Meatheringham
				Mt. Stromlo Observatory
				Private Bag, Weston Creek P.O.
				ACT 2611, AUSTRALIA
				email : sjm@moggie.anu.edu.au

Newsgroups: comp.windows.x
From: kaleb@thyme.jpl.nasa.gov (Kaleb Keithley)
Subject: Re: How to know a client itself has been killed?
Keywords: XKillClient
Organization: Jet Propulsion Laboratory, Pasadena, CA
Date: Mon, 17 Aug 92 15:24:49 GMT

In article <20622@optima.cs.arizona.edu> azhao@cs.arizona.edu (Qiang Alex Zhao) writes:
>
>How can a client know that itself has been killed by the window manager?

RTFICCCM, (Read the Fine Inter-Client Communications Conventions Manual),
the section on WM_PROTOCOLS and WM_DELETE_WINDOW is your best bet.

Other alternatives include selecting SubstructureNotify and handling the
DestroyNotify event on your application top level window, or catching the
error when the client side detects that the server has closed the connection.

-- 

Kaleb Keithley                          kaleb@thyme.jpl.nasa.gov

Not authorized, in any way, shape, or form, to speak for anyone.
From: kjenks@gothamcity.jsc.nasa.gov
Newsgroups: comp.windows.x
Subject: Re: Domain public X-servers for PCs or Macs
Keywords: PD X for Mac & PC
Date: 13 Aug 1992 20:52:45 GMT
Organization: NASA/JSC/GM2, Space Shuttle Program Office
Originator: kjenks@krakatoa

In article <2253@cix.cict.fr> manu@ibcg.biotoul.fr writes:
>Does anyone know an ftp site where we could retrieve a FREE X-server
>for PCs and Macs ?

Such a critter does not exist.  Yet.

Would anybody like to help me fund our effort to create them?

-- Ken Jenks, NASA/JSC/GM2, Space Shuttle Program Office
      kjenks@gothamcity.jsc.nasa.gov  (713) 483-4368

     "We at NASA develop cutting-edge technology for our aeronautics and
      space programs.  We view technology transfer as a way of life.  
      It's one of our top priorities." -- Daniel S. Goldin, NASA Administrator
Newsgroups: comp.windows.x
From: Sid Kitchel <kitchel@moose.cs.indiana.edu>
Subject: Re: X Windows on Non-UNIX systems
Organization: Computer Science, Indiana University
Date: Tue, 18 Aug 1992 10:31:48 -0500

george@osc.COM (George Baggott) writes:

>There are now a number of products which implement an X server for PCs
>and Macs.  They allow you to run an X windows application on a UNIX
>machine and display it on a PC or Mac.  Does anyone know of a product
>which allows you to develop a PC or Mac based X *client*?  Such a
>product would allow you to develop a PC or Mac based X windows application
>which could be displayed on a UNIX machine, PC, or Mac running an
>X server.

	For the MS/DOS world, there is DesqView X. It allows you to
purchase a powerful IBM PC or clone, say a 33Mhz 80486 and run
applications. These can be DISPLAYed on Unix workstations. The company
I work for, Data Parallel Systems, Inc., is planning on doing this.
While most of us have DECstations, some marketing and administrative
people are stuck with MS/DOS machines. Using DesqView X may allow us
to unify our document preparation on WordPerfect or MS Word. This
means rejecting DECwrite and TeX, since they could not unify all
users.
	I'd be interested in information about a Mac system comparable
to DesqView X.
							--Sid
-- 
Sidney W. Kitchel  	    kitchel@cs.indiana.edu, kitchel@dpsi.com
Data Parallel Systems, Inc.  ============||  DPSI  ||===============
4617 E. Morningside Drive	                      (812) 334-8100
Bloomington, Indiana,  47408  USA		FAX:  (812) 334-8121
Newsgroups: comp.windows.x
From: rvloon@cv.ruu.nl (Ronald van Loon)
Subject: Re: Color slides from X images
Originator: rvloon@triton.cv.ruu.nl
Date: Fri, 21 Aug 1992 13:50:33 GMT
Organization: University of Utrecht, 3D Computer Vision Research Group

In <1992Aug21.061759.11788@cs.ucla.edu> william@lanai.cs.ucla.edu (William Cheng) writes:

|"In article <BtB1yA.D0A@ora.com> stevet@ora.com (Steve Talbott) writes:
|">Are there any products out there to help one get from a color X image or
|">the corresponding bit map to a color slide or print (or set of color
|">separations)?  Any means of getting to color PostScript would, of course,
|">make the task relatively easy.
|"
|"You can try tgif (MacDraw-like tool).  It generates color PostScript.
|"You can get it through anonymous ftp from the /contrib directory on
|"export.lcs.mit.edu.  Look for /contrib/tgif*.

It is far easier to use the pbmplus utilities, and especially the 'pnmtops'
utility thereof.
-- 
Ronald van Loon (rvloon@cv.ruu.nl) 3DCV Group, Utrecht, The Netherlands.

"Al draagt een aap een gouden ring, het is en blijft ALT-q in EMACS"
Newsgroups: comp.windows.x
From: dfegan@lescsse.jsc.nasa.gov (Doug Egan)
Subject: X Development on MVS????
Summary: Any other products besides TCPIP???
Keywords: MVS TCPIP
Organization: LESC
Date: 20 Aug 92 20:40:48 GMT


        We have been attempting to build a Motif application,
   using TCPIP on MVS/ESA... (NOT easy!) <Wiping sweat from brow>
   We have succeeded to complete a minor client with few
   capabilities...

        I would like to know if there are any OTHER products
   available, that will run with/on TCPIP in a MVS/ESA environment.

        Please Followup or reply to: egan@blkbox.com

Thanx,
      Doug
--
=========================================================================
 Doug Egan                               "...Engineers, they LOVE to
 Lockheed Engineering and Sciences Co.    change things!" 
 Houston, TX                                 Dr. Leonard "Bones" McCoy  
Newsgroups: comp.windows.x
From: stadt@cs.utwente.nl (Richard van de Stadt)
Subject: xdbx: How can I add a button?
Organization: University of Twente, Dept. of Computer Science
Date: Thu, 13 Aug 1992 15:17:51 GMT

Does anybody out there know how a button can be added to xdbx? 
The help message from xdbx looks promising. Still I cannot create
an extra button. I'm running X11R5 on Sparcs.

Thanks in advance.

Richard
-- 
R.R. van de Stadt ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ stadt@cs.utwente.nl
Usually I use vi instead of xedit^[:wq
From: qll@cs.albany.edu (Quei-Len Lee)
Newsgroups: comp.windows.x
Subject: x clinet link problem.
Date: 21 Aug 92 17:07:20 GMT
Article-I.D.: abacus.QLL.92Aug21120720
Distribution: comp.windows.x
Organization: Computer Science Department, SUNY at Albany, Albany, NY 12222
Originator: qll@abacus.albany.edu


I recently built X11R5 using gcc2.1, with fixes 1 to 14 and gcc2 fixes 
applied on a Sun3 running SunOS 4.1.   I did not get any error when compiling
and installing R5.   But when I run xinit, twm, and a dozen other
commands, they failed to link with the following message.

	ld.so: Undefined symbol: _XtMalloc

Has anyone experienced this? Appreciate any help you can give me.

Quei-Len

_______________________________________________________________________
Quei-Len Lee			            | E-Mail: qll@cs.albany.edu
SUNY at Albany, Computer Science Department | Tel   : (518) 442-5682


-- 
_______________________________________________________________________
Quei-Len Lee			            | E-Mail: qll@cs.albany.edu
SUNY at Albany, Computer Science Department | Tel   : (518) 442-5682
Newsgroups: comp.windows.x
From: wayne@sherwood.wes.army.MIL (Wayne Tanner)
Subject: Xbae Widgets & UIMX
Organization: The Internet
Date: Tue, 18 Aug 1992 16:18:54 GMT

Has anyone out there successfully integrated the Xbae Caption & Matrix widgets
into UIMX.  I'm using HP's flavor called Interface Architect.  Pointers to
code, code, advice, or anything else greatly appreciated.  The documentation
is the pits.

Wayne Tanner
wayne@sherwood.wes.army.mil
Xref: sparky comp.windows.x:15220 comp.windows.x.apps:773
From: dglo@manray.Berkeley.EDU (Dave Glowacki)
Newsgroups: comp.windows.x,comp.windows.x.apps
Subject: xless 1.2 released
Followup-To: comp.windows.x.apps
Date: 13 Aug 1992 23:03:18 GMT
Organization: University of California, Berkeley
Distribution: world
NNTP-Posting-Host: manray.berkeley.edu
Summary: X file browser

An updated version of xless, an X11 file browsing tool, has been placed in
export.lcs.mit.edu:/contrib/xless-1.2.tar.Z

xless can:

	- take input from either file(s) listed on the command line
	  or from standard input and display it in one or more windows
	- change or reload the file in the current window
	- open a new window and display another file
	- edit the current file in any window (as long as it's not from
	  standard input)
	- print the current file in any window

Here is a list of changes since the original R3-compatible release by
Carlo Lisa:

Changes since version 1.1:

 - fixed R4 scrolling problem reported by Karsten Gaier
   <gaier@nova.tat.physik.uni-tuebingen.de>
 - added color resource files from Rainer Klute
   <klute@irb.informatik.uni-dortmund.de>
 - added print button code from Andrew Bacon <andy@mcsds3.mcs.loral.com>
   (but I hacked on it, so any bugs are undoubtedly mine)
 - ANSIfied some stuff

Changes since version 1.0:

 - fixed things to work under R5
 - added 'editorDoesWindows' which can be set if your editor is X-savvy
   enough to come up in its own window
 - added a 'quit()' action
 - created XLess.ad, which incorporates the previous .Xresources with
   a bunch of keyboard bindings to make xless behave more like less
-- 
Dave Glowacki                 dglo@cs.Berkeley.EDU                   UCBerkeley
Newsgroups: comp.windows.x
From: vaitkus@anchovy.cps.msu.edu (Keith P Vaitkus)
Subject: Keyboard input with X
Keywords: keyboard
Organization: Dept. of Computer Science, Michigan State University
Date: Sat, 15 Aug 92 16:05:43 GMT

Can someone tell me how to determine which keys have been pressed w/i and X
program? 

The book I'm using says to use the function XLookupString() in the
event->xkey.keycode structure, BUT it doesn;t say how to. I wrote this code to
determine if the last key pressed was a space, but all my attempts end with a seg
fault....


  if (XLookupString (event->xkey.keycode) == ' ')
    {
	etc.
    } 

I would be grateful for any insight into this problem someone can give me.

Thanks in advance,
	-Keith
Newsgroups: comp.windows.x
From: c4craig@teal.csn.org (Craig Anderson)
Subject: Wcl Xaw boxWidgetClass question
Organization: Colorado SuperNet, Inc.
Date: Thu, 20 Aug 1992 18:38:29 GMT


Can an Athena Box Widget tile its children horizonally?
I tried to set the Orientation resource to do this.
Here is my attempt at it.

!
Wcl02.wcChildren: wcl02Box

*wcl02Box.wcCreate: boxWidgetClass
*wcl02Box.Orientation: XtorientHorizontal

*wcl02Box.wcChildren: wcl02BoxBut1 wcl02BoxBut2 wcl02BoxBut3

*wcl02BoxBut1.wcCreate: commandWidgetClass
*wcl02BoxBut1.Label: Print tree
*wcl02BoxBut1.callback: WcPrintTree( this )

*wcl02BoxBut2.wcCreate: commandWidgetClass
*wcl02BoxBut2.Label: Trace test
*wcl02BoxBut2.callback: WcTrace( Print a trace )

*wcl02BoxBut3.wcCreate: commandWidgetClass
*wcl02BoxBut3.Label: Click and Exit
*wcl02BoxBut3.callback: WcExit()
!

Craig H. Anderson
c4craig@csn.org
Newsgroups: comp.windows.x
From: connolly@convex.com (Dan Connolly)
Subject: using Imake for multi-arch. source trees?
Date: Tue, 18 Aug 1992 21:09:38 GMT
Organization: Engineering, CONVEX Computer Corp., Richardson, Tx., USA
X-Disclaimer: This message was written by a user at CONVEX Computer
              Corp. The opinions expressed are those of the user and
              not necessarily those of CONVEX.

The ComplexProgramTarget() etc macros defined by Imake.rules assume the
normal source-and-object-in-same-directory conventions. I'd like
to maintain a tree like the InterViews package:

	src/
	   libfoo/
		  foo.c
		  CONVEX/
			 foo.o
			 libfoo.a
		  sun4/
		       foo.o
		       libfoo.a

Should I just grab the stuff from InterViews/config and start hacking?
Anybody else done this kind of thing?

Dan


Newsgroups: comp.windows.x,comp.windows.x.motif
From: timkwan@athena.mit.edu (Unknown)
Subject: Re: How to simulate a ButtonPress/ButtonRelease event?
Organization: Massachusetts Institute of Technology
Date: Wed, 12 Aug 1992 20:52:01 GMT


I asked a question a few days ago about simulating button
press/release events to which some of you offered some suggestions.
At any rate, I got it to "work" with the following:

  event.type = ButtonPress;
  event.xbutton.send_event = True;
  event.xbutton.display = dpy;
  event.xbutton.window = currWin;  /* window where pointer is in NOW */
  event.xbutton.x = 0;  /* 0 is arbitrary -- just somewhere inside the */
  event.xbutton.y = 0;  /* widget will do.                             */
  event.xbutton.state = 0;
  event.xbutton.button = 1;
  XtDispatchEvent(&event);
  XmUpdateDisplay(toplevel);

  event.type = ButtonRelease;
  event.xbutton.state = ButtonReleaseMask;
  XtDispatchEvent(&event);
  XmUpdateDisplay(toplevel);

It didn't work with XSendEvent -- that's puzzling.  But at least the
above code works for my Motif pushbuttons.  I haven't tried it on
arbitrary windows which listen for ButtonPress/Release events though.

I do have one sticky problem.  My other team member is using a menubar
widget which he created.  I successfully moved the pointer to the
desired menubar option (with XWarpPointer) but when I issued the button
press and release events (the code above), the workstation 'hangs'
after executing the second XtDispatchEvent().  All processes on the
workstation appeared to continue running, and I could move the pointer
around but I could no longer use the pointer to click on anything.
Consequently I could move the pointer into an xterm, say, but could
not type anything in there.  I had to reboot the workstation.

Is the code above incorrect or is there something amiss with my
partner's custom menubar widget?  The menubar works fine when acted
upon manually with either keyboard meta keys or mouse clicks.  I would
think that as long as I generate the button press/release events
EXACTLY LIKE those generated if I were to click the mouse manually,
then everything should work fine.  Can someone please check the above
code and tell me if that is sufficient in generating the button
press/release events EXACTLY LIKE those produced from manual button
clicks.

Please send me email directly.  Thanks.

-Tim
Newsgroups: comp.windows.x,comp.windows.motif,comp.windows.apps,comp.windows.misc,alt.sources.wanted
From: bongo@splash.Princeton.EDU (Ameet A. Ravel)
Subject: Re: Wanted: a PD X-tool for graphical data presentation (SOLUTION)
Originator: news@nimaster
Keywords: data presentation,X-tool
Organization: Princeton University
Date: Thu, 13 Aug 1992 16:29:37 GMT

In article <1992Aug11.095345.12421@dfki.uni-sb.de> wladimir@kik-11.dfki.uni-sb.de (W Minenko) writes:
>We,from the DFKI (German Research Center for Artificial Intelligence)
>in Saarbruecken (Germany) need for the Siemens KIK-Project a graphic-tool to
>present data on the screen and as hardcopy.
> ...
>The tool shall be facilitate the following features: 
>
>- X-Y plots for scientific style graphics
>- line and bar plots
>- automatic or manual scalling of axis values

At GFDL, we use a public-domain Motif and Xview oriented package
called ACE/gr, written by Paul Turner.  It is mouse and menu driven,
and it handles x-y scatterplots, lineplots, bargraphs, and also
sophisticated data analysis like FFT analysis, running averages,
polynomial fits, etc.

You can find it by anonymous FTP from amb4.ese.ogi.edu [129.95.20.76]
in pub/acegr.

-- 
Ameet A. Raval                   Geophysical Fluid Dynamics Laboratory
email: bongo@splash.princeton.edu                Princeton, N.J. 08542
   or: aar@gfdl.gov                                phone: 609-452-6563

Newsgroups: comp.windows.x