HDTenEightyP/NetNews huggingface dataset:
From: paetsch@sc.zib-berlin.de (Paetsch)
Subject: Re: Xaw-Dialog
Organization: The Internet
Date: Wed, 15 Apr 1992 15:05:04 GMT

Many thanks to all of you who gave me help.
Here is a summary of all the answers I got.

==================
	A couple of ways.  First the translation:

...Dialog.value.translations:	#override <Key>Return: MyReturn()

	but \n will not be put in the value widget, you will have to do this
    yourself in MyReturn().  The second is to trap a modification of the
    text widget, and detect whether the last key was return:

static XtCallbackRec   callback[] = {
			{(XtCallbackProc) EditedText,	(XtPointer) True},
			{(XtCallbackProc) NULL,		(XtPointer) NULL}
		};

:
:

XtVaSetValues (XtNameToWidget (dialog, "value"),
	       XtNcallback, (XtArgVal) callback, NULL);

	Where EditedText() is your callback procedure.  It should check what
    the last character was.

	Printout the manual in .../mit/hardcopy/Xaw.  Have fun.

Here comes a piece of code. Compile it with
 cc -o test test.c -lXaw -lXt -lXmu -lX11 -lXext
and run it with
 ./test -xrm 'test.dialog.value.translations:#override <Key>Return:DialogFinish()'

/******************************* test.c *******************************/
#include <X11/Intrinsic.h>
#include <X11/StringDefs.h>
#include <X11/Xaw/Dialog.h>

#include <stdio.h>

/*+ Forward Declarations */
static void dialog_finish ();
static void quit();

static Atom wm_delete_window;

static XtActionsRec actions[] = {
    {"quit",    quit},
    {"DialogFinish", dialog_finish},
};



extern int
main (argc, argv)
     int argc;
     char * argv[];
{
  XtAppContext app_c;
  Widget top_level, dialog;

  top_level = XtInitialize(argv[0], "Test", NULL, 0, & argc, argv);
  app_c = XtWidgetToApplicationContext (top_level);
  XtAppAddActions (app_c, actions, XtNumber(actions));
  XtOverrideTranslations
    (top_level, XtParseTranslationTable ("<Message>WM_PROTOCOLS: quit()"));
  dialog = XtVaCreateManagedWidget("dialog", dialogWidgetClass, top_level,
				   XtNvalue, "",
				   XtNlabel, "Enter text:",
				   0);
  XtRealizeWidget (top_level);
  wm_delete_window = XInternAtom(XtDisplay(top_level), "WM_DELETE_WINDOW",
				 False);
  (void) XSetWMProtocols (XtDisplay(top_level), XtWindow(top_level),
			  &wm_delete_window, 1);
  XtMainLoop ();
}


static void
dialog_finish (self, event, par, npar)
     Widget self;
     XEvent * event;
     String * par;
     Cardinal * npar;
{
  char * string;

  self = XtParent (self);
  if (! XtIsSubclass (self, dialogWidgetClass))
    fprintf (stderr, "s0x%06lx is not a dialog widget\n");
  string = XawDialogGetValueString (self);
  fprintf (stderr, "Dialog contains \"%s\"\n", string);
}


static void quit(w, event, params, num_params)
     Widget w;
     XEvent *event;
     String *params;
     Cardinal *num_params;
{
  if (event->type == ClientMessage &&
      event->xclient.data.l[0] != wm_delete_window) {
    XBell(XtDisplay(w), 0);
  } else {
    XCloseDisplay(XtDisplay(w));
    exit(0);
  }
}
Newsgroups: comp.windows.x
From: John R. Levine <johnl@iecc.cambridge.ma.us>
Subject: X paint program?
Organization: I.E.C.C.
Date: Sun, 12 Apr 1992 03:45:36 GMT

Are there any decent X paint programs available for free or cheap?  I have
a fax modem that can receive and send arbitrary bitmaps.  In many cases it
would be useful to edit a received fax a little (e.g. fill out a form and
splice in my signature) and re-send it.

So I need a paint program that can handle one-deep bitmaps and do the usual
things like splicing in clip art and inserting simple text.  A perusal of
the comp.sources.x archives didn't show anything that was obviously of use.
Xfig looks nice but it's a draw program and I've got bitmaps here.

If it matters, I'm running X11R4 with Motif 1.1, will go to X11R5 when I
get around to it.

Regards,
John Levine, johnl@iecc.cambridge.ma.us, {spdcc|ima|world}!iecc!johnl
Newsgroups: comp.windows.x
From: eletanjm@nuscc.nus.sg (Tan Jin Meng @ NUS)
Subject: Re: X comms protocol
Organization: National University of Singapore
Date: Fri, 17 Apr 1992 16:08:25 GMT

clarsen@lsil.com (Chris Larsen 8993) writes:
:     Once upon a time when I worked for Inmos we implemented the X protocol on
: Transputer links.  This was done so that one Transputer could run the server and
: another a client.  We ported two different X clients (ico and twm) and Xlib.  I did
: most of the initial porting work but the twm port was done by Steve Shepherd (formerly
: of Inmos but I can remember who he works for now).  It worked pretty well once the
: deadlock situations where removed (I spent a lot of time getting rid of deadlock
: conditions, Transputer links a synchronous but the X protocol isn't!).
: 

Could you amplify on this deadlock situation thing? What are the
specific problems when the low level comms is synchronous?

One of my friends says that he vaguely remembers reading about X
terminals with SCSI ports. Can someone confirm this?
From: Gerry.Tomlinson@newcastle.ac.uk (G.M.Tomlinson)
Newsgroups: comp.windows.x
Subject: Re: Xt Translation Questions
Date: 8 Apr 92 13:23:35 GMT
Organization: Computing Laboratory, U of Newcastle upon Tyne, UK NE1 7RU.


> 
> I'm trying to modify 'xzap' application, posted recently to comp.sources.x.
> The application has a pane with some button, and a list widget which is
> regenerated when the function called 'Ps()' is called.
> I have added the 'Ps' to the action table, as shown below, so it can be
> referred externally, e.g. from the user's .Xdefaults:
> 
> xzap.c:
> -------
> XtActionsRec actionTable[] =
> {
>     {"Quit", Quit}, /* original code has only this...*/
>     {"Ps", Ps}      /* so I added this               */
> };
> 
> ~/.Xdefaults:
> -------------
>    xzap*translations:	#override\n\
> 	<Btn3Down>:	Ps()
> 
> So far, so good - I click the rightmost button and, voila! Ps() is indeed
> called.
> 
> My problem is that I want 'Ps()' to be invoked every time the xzap
> application is mapped (i.e. de-iconified) and/or redrawn (due to an Expose
> event.) When I modified my .Xdefaults to say:
>    xzap*translations:	#override\n\
> 	<MapNotify>:	Ps()
> the Ps() was being called infinitely without expose or map events. Since I
> don't believe that so many events were in the queue, I must be doing
> something wrong.

This is because you've  changed the translation table for every widget
in the application, including the viewport which actually contains 
the multilist widget. Unfortunately the viewport is explicitly unmapped
and mapped within the workproc triggered by the Ps(), hence the recurring
calls of Ps().

saying:

Xzap.translations: #override\n\
	<MapNotify>:    Ps()

should do the trick.

(I unmap and map the viewport because I adjust its height if it gets greater
than a certain value and don't want the intermediate state to be displayed).

	Gerry.

Gerry.Tomlinson@newcastle.ac.uk
Computing Laboratory, The University, Newcastle upon Tyne, UK, NE1 7RU
Tel: +44 091 222 8139
From: morten@odin.uniras.dk (Morten Hastrup)
Newsgroups: comp.windows.x
Subject: Re: UNIRAS and UIM/X
Date: 6 Apr 92 09:34:54 GMT
Organization: The Internet
X-Unparsable-Date: Mon, 6 Apr 92 9: 12:02 METDST


Due to a mistake it was claimed that the UNIRAS Dallas office could be
contacted for further information on UIM/X availability. However, the
UNIRAS Dallas office will *not* be distributing UIM/X, only the
European and Asian offices will distribute UIM/X.

UNIRAS A/S, Copenhagen
From: sheldon@kong.gsfc.nasa.gov (Roger Sheldon - AISS)
Newsgroups: comp.windows.x
Subject: Re: CLIPS by NASA
Date: 16 Apr 92 16:34:23 GMT
Organization: Goddard Space Flight Center

In article <1992Apr14.145353.5078@pencom.com> eric@pencom.com writes:
>In article <9204101447.AA15483@lenny.kaman.com> darin@kaman.COM (Darin S. Lory)  
>writes:
>> 
>> I was wondering if anyone in the X world heard of CLIPS that is
>> distributed by NASA.  It is supposed to me an Object-Oriented environment
>> to develop X windows tools via Lisp, C++, or another oop language.
>> 
>> If someone could straighten me out out the information about the product,
>> it would be greatly appreciated.
>> 
>> My boss would to purchase it for testing to see if it meets the requirements
>> we need it for.
>
>CLIPS has nothing to do with graphics.
>It is an AI'ish type of forward chaining inference language.
>Last I knew it was not Object Oriented in the slightest.
>It has an interface implemented in a number of graphical environments
>which may be how you confused it with graphics in general.

CLIPS 5.0 now has COOL (CLIPS Object-Oriented Language or some such thing).

- Roger
Newsgroups: comp.windows.x
From: wjs@sbcs.sunysb.edu (Bill Sakoda)
Subject: sun cgtwelve server?
Organization: State University of New York at Stony Brook
Date: Thu, 9 Apr 1992 19:48:26 GMT

Is a server available for the Sun 24 bit cgtwelve
frame buffer?  X11R4 or R5 (preferably, both) needed.
thanks
bill sakoda  wjs@sbcs.cs.sunysb.edu
Newsgroups: comp.windows.x
From: dave@lacerta.csis.dit.csiro.au (David Campbell)
Subject: DirectColor question
Organization: CSIRO Division of Information Technology
Date: Thu, 16 Apr 1992 10:08:47 GMT

I am working with a 24-bit X server which uses the DirectColor model.

A diagram in section 7.2.3 "High Performance Color Displays" (page 187)
of the Xlib programming manual for version 11 (April 1990) show a diagram
which clearly explains the model.

It is possible to allocate read/write colorcells using XAllocColorCells()
but I am unaware of the correct way to mix'n'match R/G/B components from
those colorcells.

For example, I may call XAllocColorCells() asking for two colors to be
allocated:

RED=255, GREEN=0, BLUE=0 which may result in a pixelvalue of 0x010509
and
RED=0, GREEN=255, BLUE=0 which may result in a pixelvalue of 0x02060a

So if I call XPutPixel passing a pixelvalue of 0x010509 I should get
a RED pixel drawn.  Similarly for the green pixel.

Now if I call XPutPixel mixing the two, for example calling XPutPixel
with a pixelvalue of 0x010609 I may get a YELLOW pixel drawn because
RED + GREEN = YELLOW.

By doing this I am making some assumptions about the ordering of the
bytes inside the pixelvalue which is an unsigned long.  Is this ordering
part of the semantics of X?

Is there a tidy/elegant way to do this mix'n'matching?

Thanks,

-- 
  +--------------------------------------------------+-----------------------+
  | Dave Campbell                                    |            UNIX & C++ |
  | Phone: + 61 6 275 0944      Fax: + 61 6 257 1052 |   _--_|\       PLEASE |
  | CSIRO Division of Information Technology         |  /      \             |
  | Centre for Spatial Information Systems           |  \_.--._/ <- Canberra |
  | PO BOX 664                                       |        v              |
  | CANBERRA ACT 2601       +------------------------+                       |
  | AUSTRALIA               | dave@csis.dit.csiro.au |                       |
  +-------------------------+------------------------+-----------------------+
  |           COBOL programmers never die; they're already dead.             |
  +--------------------------------------------------------------------------+
From: jps1741@aw2.fsl.ca.boeing.com (Joseph P. Stegman)
Newsgroups: comp.windows.x
Subject: X11R4 bugs list???
Date: 9 Apr 92 15:53:08 GMT
Organization: none

Where can I get an X11R4 bugs list???

Thanks,

Joe

-- 
-- Joe Stegman                 |     Voice: (206) 234-2432                 --
\  Boeing Commercial Airplanes |  Internet: jps1741@aw300.fsl.ca.boeing.com /
/  P.O. Box 3707, M/S 66-04    |Boeing net: jps1741@aw300                   \
-- Seattle, WA  98124-2207     |      UUCP: ..!uunet!bcstec!aw300!jps1741  --
From: p654851@austin.lockheed.com (p654851)
Newsgroups: comp.windows.x
Subject: Looking for HAN GUL (Korean) font
Keywords: xedit
Date: 8 Apr 92 15:55:02 GMT
Organization: "Lockheed Austin Division, 6800 Burleson Rd, Austin, TX 78744

Does anybody know where I can find the HAN GUL (Korean) font?  I have
a project that requires the displaying Korean and can't find the font.
Any leads will be greatly appreciated.

Thanks,
John N. Adair


=====================================================================   
 John N. (Nick) Adair				Phone: (512)386-4400
 Lockheed Missiles & Space Company, Inc.	FAX:   (512)386-4223
 Lockheed Austin Division  MS-T210-30F
 6800 Burleson Rd. 
 Austin, Texas  78744

 E-Mail: jnadair@austin.lockheed.com
=====================================================================
From: converse@expo.lcs.mit.EDU (Donna Converse)
Newsgroups: comp.windows.x
Subject: Re: Should XtOverrideTranslations work this way?
Date: 11 Apr 92 14:43:51 GMT
Organization: X Consortium, MIT Laboratory for Computer Science


> In article <ku9d3hINN8i2@news.bbn.com>, rnewman@bbn.com (Ron Newman) writes:
> > In the following Wcl "program", a new translation for
> > "<Key>" seems to override the old translation for 
> > "<Key>g", even though the left-hand side is not the
> > same.  Why does this happen?
> > [...]
> > *but.activateCallback: WcTraceCB (overriding translations) \n\
> >     WcSetValueCB (^raw.translations: #override\n\
> >       <Key>: WcTraceACT("key pressed (override)"))
> > [...]
> > *raw.translations: \
> >    <Btn1Down>: WcTraceACT("Button 1 down") \n\
> >    <Key>g: WcTraceACT("G key pressed") \n\
> >    <Key>: WcTraceACT("Key pressed (original)")
> 
> 
> The R5 Xt spec says about XtOverrideTranslations:
> 
>   XtOverrideTranslations logically appends the string
>   representation of the widget's current translations to the string
>   representation of the new translations and reparses the result
>   with no warning messages about duplicate left-hand sides
> 
>   i.e., if the new translations contain an event or event sequence
>   that already exists in the widget's translations, the new trans-
>   lation overrides the widget's translation.
> 
> Assuming this applies to translations applied via XtSetValues
> with the #override directive, then your overriding translations
> are prepended to the widgets existing translations and you end up
> with:
> 
>     <Key>: WcTraceACT("key pressed (override)")\n\
>     <Btn1Down>: WcTraceACT("Button 1 down") \n\
>     <Key>g: WcTraceACT("G key pressed") \n\
>     <Key>: WcTraceACT("Key pressed (original)")
> 
> So the first translation for <Key> grabs all key events.


This is correct, except for one detail: the assumption that SetValues
on the translations resource has different effects depending upon the
directive in the translation table.  It doesn't (or shouldn't).
The above translation table would result from calling XtOverrideTranslations.
SetValues on the translations resource always does a replacement operation,
never an augment or override.  SetValues ignores the directive in the
translation table.  So the resulting table, if SetValues is used, contains:

    <Key>: WcTraceACT("key pressed (override)")\n

And, sorry to say, I think this was implemented incorrectly in the R4 Core
SetValues method.


Donna Converse
Newsgroups: comp.windows.x
From: shocking@cxbne.cx.OZ.AU (Steve Hocking)
Subject: Re: X Load Monitor
Organization: Comperex Australia Pty Limited
Date: Tue, 7 Apr 1992 03:11:33 GMT

rsmith@proteus.arc.nasa.GOV (Roger Smith -- IAS) writes:
>DESCRIPTION:
>     The xnetload program displays a periodically updating histo-
>     gram  of  the  ethernet load average for the specified host.
>     The resulting graph is scaled as a 0% to 100% load. NOTE:The
>     specified host must be running rpc.etherd.
>------------------------------------------------------------------
>Roger Smith
>Sterling Software at
>NASA-Ames Research Center
>rsmith@proteus.arc.nasa.gov
>- 
>If change is -- inevitable -- predictable -- beneficial -- 
>doesn't logic demand that you be a part of it?
>One man cannot summon the future. But one man can change the present!
>    -- Kirk and the Alternate Spock, "Mirror, Mirror," stardate unknown

	Now for the difficult part .... Where does one acquire the source to
rpc.etherd?


	Cheers,

	Stephen
-- 
-------------------------------------------------------------------------------
"Love makes the world go around, but sex makes the ride fun"
		Stephen Hocking - Unix consultant
shocking@cxbne.cx.oz.au			-	I am responsible for myself...
From: ghart@ems.cdc.com (Geoffrey Hart)
Newsgroups: comp.windows.x
Subject: X event capture/replay
Date: 8 Apr 92 23:45:32 GMT
Reply-To: ghart@ems.cdc.com
Organization: Empros Systems International, a division of CDC

I saw a post on this, but I didn't see any reply, and my mail to the poster
has gone unanswered.  So I'll ask:

  Is there any tools which can record (capture) the various X events coming
into the server, and then later one can replay (re-transmit) these events?

  We are trying to set up some simple regression tests for our X clients,
and an automatic way to emulate an interactive user would be nice.

p.s.
  The more inexpensive the better ;-)
-- 
    geoff hart ghart@ems news@ems library@ems   x4273   s/ems/ems.cdc.com/
Newsgroups: comp.windows.x
From: mahan@tgv.COM (Patrick L. Mahan)
Subject: RE: Full-screen windows
Organization: The Internet
Date: Thu, 9 Apr 1992 18:22:42 GMT

#
#This is probably a stupid newbie question, but what the hell - 
#
#I'm writing (trying to write) a menu system in X, and would like
#to have a login screen that takes up the whole screen, and can't be
#resized or iconized - how do I do this? 
#

Unless you have a window manager running while the login screen is there
then don't worry about resize or iconifing the app.  To make it the size
of the screen use the functions XHeightOfScreen() and XWidthOfScreen().

Patrick L. Mahan

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

Waking a person unnecessarily should not be considered  - Lazarus Long
a capital crime.  For a first offense, that is            From the Notebooks of
							  Lazarus Long
From: renalds@embers.ra.anl.gov (A Renalds RA/208/Sdcp ????)
Newsgroups: comp.windows.x
Subject: animation
Summary: summary of animation discussion
Keywords: animation
Date: 9 Apr 92 18:11:56 GMT
Article-I.D.: embers.70284311612335
Organization: Argonne National Laboratory, Argonne IL

A while ago, there was a discussion about animation using X.
I know there is no "standard" but could someone please send
me a summary of those discussions at:

	 renalds@embers.ra.anl.gov

Thanks in advance!
Newsgroups: comp.windows.x,comp.windows.x.motif
From: curtis@NeoSoft.com (Curtis Keller)
Subject: Growth from XCopyPlane
Organization: NeoSoft Communications Services -- (713) 684-5900
Date: Tue, 07 Apr 1992 21:00:28 GMT
Keywords: XCopyPlane memory leak growth


I have a application that makes repeated calls to XCopyPlane
to copy a bitmap to a Motif drawing area widget.   It seems that
when the bitmap changes -- each call to XCopyPlane eats a bit of
memory.    My application is changing bitmaps on a regular basis
and the memory growth is quite significant (and fast).
 
The growth is in the application rather than in the server - so
I'm more confused.
 
If this problem is addressed in the FAQ - please email the relevant
section to me -- I can not ftp over to export (for some internal
reason?). 
 
Thanks
-- 
Curtis Keller
713-953-8320
curtis@neosoft.com   or   uunet!scisoft!curtis
From: scott@statsci.com (Scott Blachowicz)
Newsgroups: comp.windows.x
Subject: grid menus in gwm?
Date: 10 Apr 92 21:41:28 GMT
Article-I.D.: arugula.SCOTT.92Apr10134128
Reply-To: scott@statsci.com
Organization: Statistical Sciences, Inc., Seattle, WA USA

Hi-
   Before I go off and do this myself, I thought I'd ask...

   Has anybody put together a package of WOOL code for gwm that would give you
a menu that is a grid of buttons instead of one long list? I've got an xterm
menu that has a button for each host. That one is getting awfully long. I'd
like to be able to do it as a 5x6 grid instead of one 30 item menu. I'm
already playing some games in constructing the menu from xterm-list, so I
could put it in there, but I wanted to see if anyone's done this one before.

Thanx,
--
Scott Blachowicz    USPS:  Statistical Sciences,  Inc    Ph: 206/283-8802 x240
                             1700 Westlake Ave N #500   FAX: 206/283-8691
E-Mail: scott@statsci.com      Seattle, WA USA  98109
..or..  uunet!statsci!scott
..or..  scott%statsci.uucp@coco.ms.washington.edu
From: eric@pencom.com
Newsgroups: comp.windows.x
Subject: Re: Have trouble with bitmaps
Date: 14 Apr 92 14:56:26 GMT
Organization: Pencom Software

In article <1992Apr12.204652.28232@cs.tulane.edu> oberoc@bourbon.ee.tulane.edu  
(Tino Dai) writes:
> 
> 	I'm having trouble display a bitmap (.xwd extension). Actually
> I trying to convert this image into a gif file. Any suggestions

Try xwdtoppm and ppmtogif.   They are both in the standard
X distribution.
From: converse@expo.lcs.mit.EDU (Donna Converse)
Newsgroups: comp.windows.x
Subject: Re: Can a window be freed of WM's control?
Date: 10 Apr 92 16:33:27 GMT
Organization: X Consortium, MIT Laboratory for Computer Science


Someone asked:
> #I would like to create a window that is not controlled by a window manager.

Someone answered:
> At the Intrinsics level, after the widget is realized, use XChangeWindowAttributes
> to set the override_redirect field to true.

Much better to set the overrideRedirect resource on the Shell widget, 
and better yet to simply create an OverrideShell in the first place.
Newsgroups: comp.windows.x
From: eletanjm@nuscc.nus.sg (Tan Jin Meng @ NUS)
Subject: X comms protocol
Organization: National University of Singapore
Date: Tue, 14 Apr 1992 16:04:45 GMT

I am jus wondering...

	"X can support any reliable byte stream protocol"

Then why are all the implementations of X that I've seen so far are all
based on IP (with ethernet or serial line) as the lower level 
communications protocol.

Why not others? What about
	-	SCSI
	-	direct from VME, AT etc bus
	-	Any other reliable media

Do such implementations exist? If not, why? If there are, then I am sure
there are many people interested in hearing more about such products.
From: heinisch@uran.informatik.uni-bonn.de (Markus Heinisch)
Newsgroups: comp.windows.x
Subject: X11R5 on SparcStation2 GS - Fatal server error !?!
Keywords: X11R5 SparcStation2 GS
Date: 8 Apr 92 13:23:18 GMT
Reply-To: heinisch@uran.informatik.uni-bonn.de (Markus Heinisch)
Organization: Praktische Informatik III


Hi out there,

why am I getting an error when starting X11R5 on Sun SparcStation2 GS (or GT)
running SunOS 4.1.2 ?
(X11R5 is patched up to fix-10)

After starting X11, I received the following message :

	Fatal sever error
	no screens found
	XIO: fatal IO error 32 (Broken pipe) on X server "(null)"
	after 0 requests (0 known processed) with 0 events remaining
	The connection was probably broken by a server shutdown or KillClient


What does produce the error message
				   - SunOS 4.1.2
                                   - graphics accellerator card ?



If you have any suggestions, answers or solutions please let me know.
Thanks in advance

Markus Heinisch

E-mail :  heinisch@uran.informatik.uni-bonn.de
Newsgroups: comp.windows.x