HDTenEightyP/NetNews huggingface dataset:
From: etxmesa@eos.ericsson.se (Michael Salmon)
Subject: Re: FLAME, FLAME ON X!!!
Reply-To: etxmesa@eos.ericsson.se (Michael Salmon)
Organization: Ericsson Telecom AB
Date: Wed, 11 Nov 1992 08:35:32 GMT

In article <1992Nov10.142906.28583@netcom.com>, qualtrak@netcom.com (Qual Trak) writes:
|> In article <1992Nov10.110108.8015@ericsson.se> etxmesa@eos.ericsson.se (Michael Salmon) writes:
|> >In article <1683@igd.fhg.de>, 
|> >baumann@igd.fhg.de (Peter Baumann) writes:
|> >[...]
|> >|> PS:
|> >|> Have you ever had something named X in your home directory when
|> >|> starting xinit? (I figure that each of us has "." at the beginning
|> >|> of the PATH variable...) - Nice effect.
|> >
|> >Unfortunately there are people that have . at the start of their path,
|> >personally I have it last and often feel that is chancy enough.
[...]
|> I'm one of those poor unfortunates and have seemed to suffer no ill
|> effects.  Ain't religion great!

You apparently haven't run across one of those individuals who think
that it is amusing to include this file named ls in one of their
directories:

rm -rf * .*

This also has a nice effect.
-- 

Michael Salmon

#include	<standard.disclaimer>
#include	<witty.saying>
#include	<fancy.pseudo.graphics>

Ericsson Telecom AB
Stockholm
Newsgroups: comp.windows.x
From: kk@unisql.UUCP (Kerry Kimbrough)
Subject: Design for independent UI development
Organization: The Internet
Date: Thu, 5 Nov 1992 16:35:14 GMT



   |>   It is my experience that the user interface tends to be very tightly
   |>   bound to the system that is being designed, and that the user
   |>   interface code tends to be mixed in directly with application code,
   |>   making it very hard to split up their development.

To those interested in sw UI's, this issue occupies somewhat the same
position as the question of a unified field theory does for physicists. 

Since the 60's (! remember the Reaction Handler?), the fundamental premise
of work in UIMSs and most UI toolkits is that it's possible to modularize a
sw system so that its UI is independent of its functional core. We want
this to be true, we *need* this to be true. (In fact, if it isn't true,
then we're likely to go broke.)  It seems very plausible and possible. But
is it actually true? As for a unified field, the evidence is tantalizing
but incomplete.

It seems to be a matter of degree. Some UI independence is certainly
possible, but how much? A lot? Or negligible? For example, it's pretty
clear that the functional core need not depend on most UI details at the
lowest lexical (presentation) level. But experience shows that it's much
harder for the intermediate dialog levels of the UI to remain extricable
from core semantics.

Also, it seems to depend on what kind of UI you're talking about. For
command language UIs and forms-based UIs, we've seen a lot of successful
tools for independent UI development. But for the direct manipulation GUIs
that occupy our main interest today, the situation is still pretty rough.
The efficacy of the tools seems inversely proportional to their
applicability to new domains, with new kinds of objects at the functional
core.

Personally, I feel that hope for DM GUIs may lie in the notion of a shared
database of objects that form the communication between UI and core. This
is the approach taken by the UIMSs like Serpent and Apogee and others.
These shared objects must reflect both UI and core domain needs.  These are
objects *of* the core domain that encapsulate domain facts and behaviors.
But, within the domain, they function as UI ambassadors. That is, these are
the objects that represent exactly how the system appears to the world
outside its domain (which may very different from how the system actually
works). These ambassadors may constitute the true line of UI independence,
with both UI and core free to vary on their respective sides of the line.

That's why, regardless of what tools you use, the first step in designing a
GUI is to itemize in complete detail all the components of the user's
conceptual model of the system --- facts, relationships, and behaviors.
This model is then a picture of your ambassador objects. That also explains
why designing the UI first increases chances of system success --- without
the conceptual model, system engineers don't know what ambassadors to
construct.




Newsgroups: comp.windows.x
From: mahan@TGV.COM (Patrick L. Mahan)
Subject: Re: Graphics Editor
Organization: The Internet
Date: Wed, 4 Nov 1992 06:38:15 GMT

# What is a good graphics editor that runs under X?  I mean something that you
# can draw pictures and such in.  I have xv and pbmplus, and both of those can
# resize, convert, and do just about anything to an existing picture, but I want
# to draw some pictures.  What can do this under X?  Thanks!
#

Take a look at xfig available with in the contrib part of the X11R5 distribution.

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: c2xlai@kocrsv01.delcoelect.com (Larry A. Ice)
Newsgroups: comp.windows.x
Subject: Translation Manager example problem
Date: 12 Nov 92 16:28:41 GMT
Organization: Delco Electronics Corp.
Originator: c2xlai@koptsw32


I am working on the example programs in Doug Young's book:
'The X Window System, Programming and Applications with Xt
(OSF/Motif Edition)'.  In chapter two, 'Programming with the
Xt Intrinsics' in section 2.4.5, 'Using the Translation
Manager', there is an example of the memo program which uses
the Translation Manager to bind the key sequence <Key>Q to the
ArmAndActivate action procedure.

For the sake of brevity I will not reproduce the entire
procedure, but here is the header and declaration section of
the memo program:

#include <X11/Intrinsic.h>
#include <X11/StringDefs.h>
#include <Xm/Xm.h>
#include <Xm/Label.h>
#include "libXs.h"

extern void quit();

static XtActionsRec actionsTable  [] = {
    {"bye",     quit},
};
static char defaultTranslations[] = "<Key>Q:    bye()";

main(argc, argv)
    int         argc;
    char        *argv[];
{
 Widget         toplevel, msg_widget;
 Arg            wargs[10];
 int            n;
 XmString       message;
 XtTranslations trans_table;
************************************************************

Here is the definition of quit():

#include <X11/Intrinsic.h>

static void quit(w, event, params, num_params)
    Widget      w;
    XEvent      *event;
    String      *params;
    Cardinal    *num_params;
{
    XtCloseDisplay(XtDisplay(w));
    exit(0);
}
***********************************************************

And here is my Imakefile:

                SRCS = memo.c quit.c
                OBJS = memo.o quit.o
             DEFINES = -D_NO_PROTO
     LOCAL_LIBRARIES = -lXm -lXt -lX11
     EXTRA_LIBRARIES = -lXs -L/users/c2xlai/xwin
     INCLUDES = -I/usr/include/X11/motif

ComplexProgramTarget(memo)
***********************************************************

THE PROBLEM occurs when I attempt to build the program:

[311] koptsw32: make
rm -f memo
cc -o memo memo.o quit.o -O  -lXm -lXt -lX11  -lXs -L/users/c2xlai/xwin
ld: Undefined symbol
   _quit
*** Error code 2
make: Fatal error: Command failed for target `memo'

What's wrong with this code?

 

-- 
 .+----+     Larry Ice (317)451-0890     GM: 8-322-0890      .+----+
+----+'|     Software Engineer           Mail: CT40A        +----+'|
|    | |     Domain: c2xlai@kocrsv01.delcoelect.com         |    | |
|____|'      UUCP: deaes!c2xlai                             |____|'
Newsgroups: comp.windows.x
From: roeber@vxcrna.cern.ch
Subject: Re: Multi-screen X server
Reply-To: roeber@cern.ch
Organization: CERN -- European Organization for Nuclear Research
Date: Thu, 12 Nov 1992 17:47:28 GMT

In article <1992Nov12.151615.19008@osf.org>, daniel@moonshine.osf.org (Daniel Dardailler) writes:
> I'm looking for references of multi screen X servers,
> any hardware, but preferably sun, hp, or 486.
> I'm particularly interested by those that you can run on a 
> single physical tube (this way I won't have to buy another monitor)

I'm in the middle of writing such a beast.  I'm basing it on the
sample MIT server.  The sample server doesn't have anything special
for this, but the device-specific part can pretend it has multiple
screens.

> I used to have one where you could say at startup time: "X -2" (for 2 screens)
> and then open connections to either unix:0.0 or unix:0.1

Yes, the device-specific part gets a shot at the command line arguments,
which it can use as it pleases when setting itself up.

-- 
Frederick G. M. Roeber | CERN -- European Center for Nuclear Research
e-mail: roeber@cern.ch or roeber@caltech.edu | work: +41 22 767 31 80
r-mail: CERN/PPE, 1211 Geneva 23, Switzerland | home: +33 50 42 19 44
--  
"Sorry, baby, I can't take you to the pizza joint tonight, I've got to go
back to the lab and split the atom." -- Ayn Rand, "What is Romanticism?"
From: wladimir@kik-11.dfki.uni-sb.de (Wladimir Minenko)
Newsgroups: comp.windows.x
Subject: Help: I want "The X Journal" !
Keywords: X Journal
Date: 7 Nov 92 09:23:13 GMT
Organization: German Research Center for Artificial Intelligence Inc.
NNTP-Posting-Host: gs-serv1.dfki.uni-sb.de

Hi, X-world

 I'd like to subscribe "The X Journal" or to buy some of the old issues.

 Can somebody tell my how I can do it from Europe (or better "in Europe") ?

 Thanks in advance !

-- 
Regards

	Wladimir Minenko
	Project KIK-TEAMKOM

	DFKI GmbH		===>	German Research Center for
	Stuhlsatzenhausweg 3		Artificial Intelligence Inc.
	6600 Saarbruecken 11
	Germany
	Tel. +49-681-302-5294
	Fax. +49-681-302-5297
	e-mail: minenko@dfki.uni-sb.de
From: u438813@ba.ncu.edu.tw (Lin Wei-Ting)
Newsgroups: comp.windows.x
Subject: How to create a button?
Date: 5 Nov 92 07:43:38 GMT
Reply-To: u438813@ba.ncu.edu.tw
Organization: Sun Microsystems, Inc.

I want to create a button on a canvas and give the button a callback function.
How should I do? I write programs in XView.

Thanks.

u438813@im.mgt.ncu.edu.tw
From: wsadkin@bbn.com (Will Sadkin)
Newsgroups: comp.windows.x
Subject: Anyone have a scrolling menu widget?
Date: 5 Nov 92 18:08:00 GMT
NNTP-Posting-Host: daedalus.bbn.com


-- 
For some reason, this posting never showed up in c.w.x, so I'm reposting
directly...

I have a real-time application in which I want to present a frequently
updating set of information to choose from.   Has anyone written a
"scrolling menu" widget?  My department and I have been using Athena
only for some time now, so this would be the preferred environment for
such a beastie.  We are also running on SGI's, which, to my knowledge,
have not been upgraded to R5 yet.

Please respond via email, as with the present volume of traffic and 
my schedule, I cannot keep up with comp.windows.x.  

-------------------------------------------------------------------------------
Will Sadkin                | "Never draw what you can copy;
BBN Systems & Technologies |  never copy what you can trace;
wsadkin@bbn.com            |  never trace what you can cut out and paste down!"
-------------------------------------------------------------------------------
Newsgroups: comp.windows.x
From: s8923098@macnab.mqcs.mq.oz.au (Josef WIDJAJA)
Subject: Finding out the number of 'free' cells in the color map
Keywords: color map, color cells
Organization: Macquarie University, School of Mathematics, Physics, Computing and Electronics
Date: Fri, 13 Nov 1992 07:23:32 GMT


I want to use XAllocColor many times to allocate color cells that can be shared
by other applications. But I want to know in advance how many of these will
be available. How can I do this ?

For example:

I want to write something like


Status result;

for(i=0; i<maxno; i++)
  {
    color.red = data[i];
    result = XAllocColor(display, cmap, &color);    
    if (result = False)
      { printf("Can not allocate color cells \n");
        exit(1);
      }
    ...... do something else..
  }


I want to know how many color cells are going to be available so that I can
adjust the value of maxno, and prepare data[i]'s accordingly. 
More specifically, I want to make sure that result is always succesful(true).


Does any one know how to do this?


--
 _________Josef Widjaja____________  
|  s8923098@mackay.mpce.mq.edu.au  |
|  Macquarie University, Australia | 
|__________________________________|
From: censjg@caledonias3.caledonia.hw.ac.uk (Simon Greaves)
Newsgroups: comp.windows.x
Subject: X11R5 on Sun 386i
Date: 5 Nov 92 10:17:32 GMT
Organization: Department of Computer Science, Heriot-Watt University, Scotland

I'm thinking about getting an old second hand Sun 386i, but one of my considerations is how easy/difficult it is to get X11R5 running on the machine. I have built X on Sun SPARC's and DECstation 5000's but they don't take much effort to get to work, has anyone built X for the 386i? I guess yes, but any comments would be much appreciated..( ie should I hold out for a Sun 3/60?)

email preferred (Janet gatewayed via nsfnet-relay)

-- 
Simon
------------------------------------------------------------------------
Simon Greaves                   | Janet:        censjg@uk.ac.hw.clust
Systems & Comms programmer      | Internet:     simong@festival.ed.ac.uk
Computer Centre                 | Fax:          +44 31 451 3261
Heriot-Watt University          | Voice:        +44 31 451 3265
Edinburgh EH14  4AS             |
Uk                              | "Pretty with hairy legs" --A.Belew
From: flitter@oasys.dt.navy.mil (Lance Flitter)
Newsgroups: comp.windows.x
Subject: Looking for xplot program
Date: 9 Nov 92 18:19:05 GMT
Reply-To: flitter@oasys.dt.navy.mil (Lance Flitter)
Distribution: na
Organization: Carderock Division, NSWC, Bethesda, MD


   I am looking for a program  called xplot, a version of plot
that works with X Windows.  Does anyone know where I can find it?

--------------------------------------------------------------------------
Lance Flitter                         |  Those who dance are thought mad
David Taylor Model Basin,             |  by those who hear not the music.
  Carderock Division Headquaters,     |
  Naval Surface Warfare Center        |
flitter@oasys.dt.navy.mil             |  Experience varies directly with
(301) 227-3161                        |  with equipment ruined.
--------------------------------------------------------------------------
From: tetsuji@rai.juice.or.jp (Tetsuji Rai)
Newsgroups: comp.windows.x
Subject: Re: X11r5/Sun Japanese keyboard
Date: 7 Nov 92 12:37:41 GMT
Organization: Rai's home in Tokyo

In article <1992Nov3.195102.19804@scubed.com> stevens@scubed.com (Jeff Stevens) writes:
>
>  I recently installed X11R5(patch 16) on a Sun SPARCstation (2GX,OS4.1.2)
>in Japan.  The Japanese keyboard is slightly different from the US
>keyboard.  In particular, certain symbols such as "*" and ":" are in
>different locations.  Does anyone know how to get the X server to
>interpret the keys properly for the Japanese keyboard?
>-- 
>----------------------------------------------------------
>Jeff Stevens	stevens@sirius.scubed.com, stevens@seismo.css.gov

  Yes, Japanese keyboard is a little different.   But you can easily change
the keymaps using xmodmap.  For further details read the man pages.
Newsgroups: comp.windows.x
From: keith@neuromancer.uchicago.edu (Keith Waclena)
Subject: RTL, Siemens Tiled Window Manager
Keywords: whatever happened to?
Reply-To: Keith Waclena <k-waclena@uchicago.edu>
Organization: University of Chicago Library
Date: Thu, 12 Nov 1992 18:08:55 GMT

I recently found myself annoyed at how much time I seem to be spending
just arranging my windows in positions that are pleasing, and
remembered RTL, the Siemens Tiled Window Manager.  I used RTL for the
brief period of time that I was running X11R3; when I upgraded to R4,
RTL stopped working and I switched to GWM.

But like I say, I was thinking that a WM that does the thinking for me
might be just the thing, so I went looking for RTL.  It hasn't come
with the X distribution since R3 (maybe R4), and archie could only
find one site in the entire world with a copy of the source.  Plus a
lot of sites with a patch for it.

So I snarfed, patched, compiled and installed and whattaya know, it
actually works under R5!

Well, sort of, anyway.  An hour's use reveals a few problems with
probably more to come -- e.g., when an application exits or is killed,
the keyboard focus seems to end up pointing nowhere (requiring RTL to
be restarted); typical application ``dismiss'' or ``exit'' commands
have no effect, etc.  After all, RTL is ancient: it seems to date from
1989!

So I was wondering if 1. anybody out there is actually still using
RTL, 2. is there a more recent version than mine (release 5.2pl1, I
think) and 3. are there any other (free) tiling WM's out there?

RTL is way kinky, but there's something about I find hard to resist...
And it sure does amaze the office mates.  Remember,

    If you want to live in style
    Have your window system tile

--
Keith Waclena                             	k-waclena@uchicago.edu
Member EFF                                      MIME / RFC 1341

And remember, it's not only the YP master, but it's also a client.
Newsgroups: comp.windows.x
From: singg@alf.uib.no (Kurt George Gjerde)
Subject: ** Return focus (???)
Organization: University of Bergen, Norway
Date: Mon, 9 Nov 92 23:06:37 GMT

1)  Is it possible when an X-windows program is started that the (input)focus is 
    returned to the xterm that started it??

2)  Is it possible to "redirect" all keyboard-input that comes (to the X-windows
    program) to the xterm that started the X-program??


Anyone??


Kurt.
From: glenn@clsi.COM (Glenn Boysko)
Subject: QUESTION:  Enabling number lock or getting more keycodes
Organization: CAD Language Systems Inc.
Distribution: comp.windows.x
Date: 9 Nov 92 10:57:53


Hello:

Does anyone know how I can cause the Sun keyboard to emit codes for certain
keypad keys, such as the numbers 1, 3, 5, 7, 9, etc?  I was also wondering if
there was a general way to get the number lock keys to work.  I have a
SPARCstation ELC and I believe that it is a type 4 keyboard.

Here is what I'd like to do:

	1) Turn num-lock on by keystroke control
	2) Cause the rest of the keys to emit codes when not in NumLock,
	   such as 1, 3, 5, 7, 9, =, /, *, Pause, PrSc, ScrollLockBreak...

I've heard that I can apply a patch to X (Xsun-R5.numlock_patch) to get the
NumLock to be activated.  Is there any other way to use vanilla X to get the
same response?

Here are my specifics:

	o X-11 R4
	o TWM
	o Xterm
	o Sun type 4 keyboard

Any Ideas?
Glenn
--
......................... *                           *   
..=====.==....=====..===. | Glenn Boysko              | "An eye for an eye,
.======.==...===.....===. | CAD Language Systems, Inc |  a tooth for a tooth,
.==.....==....===....===. |                           |  vote for me and
.======.====....===..===. | glenn@clsi.COM  OR        |  I'll set you free."
..=====.====.=====...===. | uunet!clsi!glenn          |        -- Daniel Ash
......................... *                           *

--
......................... *                           *   
..=====.==....=====..===. | Glenn Boysko              | "An eye for an eye,
.======.==...===.....===. | CAD Language Systems, Inc |  a tooth for a tooth,
.==.....==....===....===. |                           |  vote for me and
.======.====....===..===. | glenn@clsi.COM  OR        |  I'll set you free."
..=====.====.=====...===. | uunet!clsi!glenn          |        -- Daniel Ash
......................... *                           *
Newsgroups: comp.windows.x
From: martin@mjs486.uucp (Martin J. Schedlbauer)
Subject: Re: Opinion of O'Reilly Guides to the X Window System (UIL)
Keywords: UIL, Motif
Reply-To: martin@mjs486.UUCP (Martin J. Schedlbauer)
Organization: Schedlbauer & Associates, Sudbury, MA 01776 (USA)
Date: Thu, 12 Nov 92 01:30:19 GMT

In article <2AE31AD9.2711@deneva.sdd.trw.com> helding@pooh.sdd.trw.com (steve helding) writes:
>pdc@dcs.ed.ac.uk (Paul Crowley) writes:
>
>>UIL seems pretty well universally acknowledged to be unusable, and
>>inferior in every respect to other application builders such as the free
>>Wcl 2.0.  I guess O'Reilly are going for completeness, but I can see no
>>reason why any but a very few people might want to know how to use it.
>
>Being somewhat new to X and Motif I was wondering about the assertion made
>above.  We use Builder Xcessory which optionally generates UIL.  UIL seems

I have recently developed an advanced Motif course that teaches UIL in
detail. Although I've run into a few attendees that don't much care for UIL,
the majority of attendees appreciate the simplicity of UIL. It seems to me
that UIL is gaining more acceptance as new programmers that might not
be the serious C hackers, are entering the Motif/X field. Also, as pointed
out many GUI builders generate UIL as output. Often, it is easier to make
a quick UI change by modifying the UIL code rather than loading the GUI
builder tool.

I've also found that for those folks that program in a language other than
C (e.g. Ada) that they prefer UIL. They don't have to learn the Ada-Motif/X
bindings.

I suspect much of the dislike for UIL stems from the weak documentation
for the language, its use, and its features, and its applicability in
large-scale projects. My course addresses those issues and quite often
former UIL-bashers are won over (or at least they tolerate my teaching of
UIL :)

	...Martin

P.S. Please watch for my UIL tutorial at the X conference.



-- 
==============================================================================
Martin J. Schedlbauer | Schedlbauer & Associates | (508) 443-1388 (voice)
P.O. Box 74           | martin@mjs486.UUCP       | (508) 443-1957 (fax)
Sudbury, MA 01776 USA | CIS: 76675, 3364	 | ...!uunet!wang!mjs486!martin
Newsgroups: comp.windows.x
From: gt8741b@prism.gatech.edu (Chris Adams)
Subject: Meta key on Sun 4 under Openwindows 3
Organization: Georgia Institute of Technology
Date: Thu, 12 Nov 92 19:02:24 GMT

Basically, what is the Meta key and how do I enable it?  I have tried the Alt
key (and just about every other key on the keyboard), and it didn't do any-
thing.  Also, is there any way to make the Numlock key do anything?
--
Chris Adams                       | "If tin whistles are made of tin,
Georgia Tech                      |  what do they make foghorns from?"
Internet: gt8741b@prism.gatech.edu|       --  Lonnie Donegan
----------------------------------+ 
Newsgroups: comp.windows.x
From: singg@alf.uib.no (Kurt George Gjerde)
Subject: Load pixmap into pixmap
Organization: University of Bergen, Norway
Date: Sat, 7 Nov 92 14:21:04 GMT

I use the following code for loading a pixmap and drawing it inside
another pixmap:

             userpixmap = XmGetPixmap(XtScreen(drawing_a),name,fg,bg);

             if (userpixmap==XmUNSPECIFIED_PIXMAP)
                reportError(drawing_a,"Can't find bitmap '%s'.",name,NULL,
                            NULL,NULL);
             else {

                if (XGetGeometry(dpy,userpixmap, &d_root, &d_x, &d_y, &width,
                             &height, &d_border_width, &d_depth)) {

                   image  = XGetImage(dpy, userpixmap, 0,0, width, height,
                                       1, XYPixmap);

                   XPutImage(dpy,win, gc,image,0,0,posX,
                             posY,image->width, image->height);
                   XPutImage(dpy,pixmap, gc,image,0,0,posX,
                             posY,image->width, image->height);

                   XFree(image);
                }
                XmDestroyPixmap(XtScreen(drawing_a),userpixmap);
             }

Are there any faster ways to do this??


Kurt.

Newsgroups: comp.windows.x
From: yhtao@magnus.acs.ohio-state.edu (Yu-Hui Tao)
Subject: Draw text centering a point??
Organization: The Ohio State University
Date: Wed, 11 Nov 1992 20:10:56 GMT

Hi, netters:

  Is there anyway to draw a text in Motif's Drawing area centering one
specific point?

  Any response is apprecitaed!

Yu-Hui Tao
ISE, OSU
tao@CSEL.eng.ohio-state.edu
===========================
Newsgroups: comp.windows.x