HDTenEightyP/NetNews huggingface dataset:
From: csd05@seq1 (Yufan Hu)
Newsgroups: comp.windows.x
Subject: Re: Regarding How to stop Dirty Pictures.
Date: 26 Sep 92 18:04:17 GMT
Reply-To: csd05@@seq1.keele.ac.uk
Organization: University of Keele, England
X-Newsreader: TIN [version 1.1 PL6]

Todd Brewer (brewer@deimos) wrote:
: In article <Bv5Esq.L6D@acsu.buffalo.edu> rjking@acsu.buffalo.edu (Randall J. King) writes:
: >liles@sweetpea.jsc.nasa.gov (Clifton Liles 282-4736) writes:
: >
: >>In article <1992Sep25.004856.1583@lub001.lamar.edu>, ravi@lub001.lamar.edu writes:
: >>|> How can you stop other people from putting dirty/unwanted pictures on
: >>|> to your workstation. They can apparently do so, by setting their 
: >>|> DISPLAY variable to the desired Workstation's IP address.
: >>I'm sitll not a happy camper.  If one does the "xhost | xhost -" bit, it turns
: >>off ALL access to the display, including yours!  If you leave your own Host name
: >
: At our site we use Sun workstations with Opengook 2.0. If we do nothing with 
: things like xhost, only the user who started up Openwindows is allowed to
: connect to the server/display. I regularly use xhost to add my own machine to 
: the list so that I can get to it from processes using rlogin/su. I tried to 
: rlogin to another machine and set the environment variable DISPLAY to the
: internet address of that machine and got bounced. Seems like you either have a
: loophole or an implicit use of xhost which you might want to rid yourself of.
: 

Not so bad. You can transfer access authority to any individual user on
any machine by using xauth. Here is the command I put in the .xinitrc:

xauth extract - $HOST\:0.0 | rsh seq1 -l csd05 /usr/bin/X11/xauth merge -

This will merge the access authority created on the server to the .Xauthority
file on seq1. Make sure that the .Xauthority is only accessible
to the account on that machine. This way the access to the server is restricted
to the user who can access the .Xauthority.

I believe X11 server also have this feature. Look at the manuals for X server
and xauth.

-Yufan
==============================================================================
JANET : yufan@uk.ac.keele.cs     || Yufan Hu
BITNET: yufan%cs.kl.ac.uk@ukacrl || Dept. of Computer Science, Univ. of Keele,
other : yufan@cs.keele.ac.uk     || Keele, Staffordshire.  ST5 5BG.  U.K.
------------------------------------------------------------------------------
Telephone: +44-782-621111 x 7357    FAX:  +44-782-713082
==============================================================================
From: charuhas@virtual4.harvard.edu (Thomas Charuhas)
Newsgroups: comp.windows.x
Subject: Centerline OI/ViewCenter vs NeXTstep
Date: 5 Oct 92 20:14:19 GMT
Article-I.D.: das.1992Oct5.201419.28960
Organization: Aiken Computation Lab, Harvard University

Does anybody out there have enough familiarity with Centerline's
OI Library and ViewCenter to compare it to NeXTstep? Our goal is
to develop some visualization tools here at Harvard.
Also, what is a good source for Centerview example programs
and information etc ?

Any help would be greatly appreciated.

Thomas Charuhas
charuhas@das.harvard.edu
Newsgroups: comp.windows.x
From: hays@ponder.ponca.dupont.com
Subject: Capture Window Larger Than Screen??
Reply-To: hays@pogun.dnet.dupont.com
Organization: Conoco Inc., Ponca City, OK
Date: Mon, 5 Oct 1992 19:51:35 GMT

I have a window that is larger than the screen.  I would like to capture it to
a file.  XWD only captures what is visible on the screen.  Is there a way to
capture the whole window, not just what is visible on the screen?  Thanks in
advance for your help!!

Randy Hays
Conoco Inc.
Ponca City, OK
Internet: hays@pogun.dnet.dupont.com
From: ehrlich@cs.psu.edu (Dan Ehrlich)
Newsgroups: comp.windows.x
Subject: X11R5 under AUX?
Date: 30 Sep 92 15:09:58 GMT
Followup-To: poster
Organization: Computer Science Department, Penn State University

Can anyone confirm a rumor that X11R5 can actually be built (server and all)
under A/UX?  What version of A/UX is needed?

Thanks.
--
Dan Ehrlich - Sr. Systems Programmer - Penn State Computer Science
"Universities should be safe havens where ruthless examination of
 realities will not be distorted by the aim to please or inhibited
 by the risk of displeasure." - Kingman Brewster
Newsgroups: comp.windows.x
From: oaf@vingmed.no (Ole Asbjorn Fadum)
Subject: Motif
Organization: The Internet
Date: Wed, 30 Sep 1992 08:01:15 GMT


Hi

Someone know the email adress for contacting OSF?

ole asbjorn fadum(oaf@vingmed.no)
From: tonyf@peacock.ims.com (Antonio Freixas)
Newsgroups: comp.windows.x
Subject: Re: Color string to nearest match converter?
Date: 29 Sep 92 14:43:46 GMT
Reply-To: tonyf@ims.com
Organization: Integrated Measurement Systems, Inc.

In article <1a7cl2INN99@fbi-news.Informatik.Uni-Dortmund.DE>, klute@tommy.informatik.uni-dortmund.de (Rainer Klute) writes:
|> In article <ghawkins.717351964@unix1.tcd.ie>, ghawkins@unix1.tcd.ie (George
|> C. Hawkins) writes:
|> |> 
|> |> Before I write it could somebody help me out and send me the code
|> |> for a converter that takes a string (matching one of the entries
|> |> in rgb.txt) and returns the nearest matching color available in
|> |> the current colormap if it cannot get that exact color.  I imagine
|> |> it should be quite easy to do, just request the contents of the
|> |> entire colormap using XQueryColors and then scan it. If you've
|> |> already written this please could I have a copy?
|> 
|> 
|> The following code does this on Xlib level. If you are using Xt, you could
|> make use of the string to pixel converter (see below).
|> 
|> 
|> /* This function tries to lookup a named color and to allocate a color cell
|>    in a read-only colormap. A pixel value will be returned. If anything
|>    fails, the specified default pixel value will be returned. */
|> ...

I hope George Hawkins doesn't mind my kibbitzing on his original
question.

Contrary to what Rainer Klute says, his code does not satisfy the
original request.  Allocating a new color cell is not the same as
finding the "nearest matching color in the current colormap".

An interesting question is whether one would ever really want to get
the "nearest matching color".  The result might produce some very
awkward and unpredictable color combinations.  Also, in searching the
colormap for the nearest color, one might want to avoid read/write
cells since their colors may change without warning (and I don't know
how to determine which cells are read/write off the top of my head).
After finding the nearest matching read-only color cell, one would
want to allocate it to avoid having the cell freed when the original
application that allocated it went away.

Another comment:  It seems to me that the code listed by Rainer code
be more easily implemented using XAllocNamedColor.  Wouldn't the
following do the same things?

/* This function tries to lookup a named color and to allocate a color cell
   in a read-only colormap. A pixel value will be returned. If anything
   fails, the specified default pixel value will be returned. */

unsigned long AllocateNamedColor (display, colormap, colorName, defaultPixel)
Display *display;
Colormap colormap;
char *colorName;
unsigned long defaultPixel;
{
    XColor exact, bestMatch;
    if (XAllocNamedColor (display, colormap, colorName,
                          &bestMatch, &exact) != 0) {
            return defaultPixel;
    }
    return bestMatch.pixel;
}



					         -- tonyf@ims.com
					       (503) 626-7117 x1349
Xref: sparky comp.windows.x:17448 comp.windows.open-look:4025
From: sinan@Mtesol.boeing.COM (Sinan Karasu)
Subject: Re: Parser for Mathematical equations
Organization: The Internet
Date: Mon, 28 Sep 1992 17:52:42 GMT

Someone asked for a parser for mathematical equations on the net
about two weeks ago. This just came to my attention. Since I do
not know his e-mail address , I am posting this in hopes that he
will see it. This from a package called dstool which does
wonderful dynamical systems simulation using xview3 and ow3.
Even tho' I have ported xview3 to concurrent I have not tried
it on a concurrent yet. But I think I will..Enjoy

Sinan


----INCLUDED MESSAGE 9trimmed)------------------------------------------------------------
A new release of dstool is now on the ftp server macomb.tn.cornell.edu. 

Below is a description:

------

Version 1.1 of dstool contains useful new features, but is primarily a 
bug fixing release. 
..................
Major new features present in the release are:

	a) A Poincare section mode in the orbits panel. Layered on top of 
	the standard dstool event stopping code, Poincare sections can be
	computed  with respect to surfaces that are unions of level sets
	of phase space variables or auxiliary functions. The mode is selected
	from the "Stopping Condition" choice field of the orbits panel.

	b) A Parser window to allow input of dynamical systems without 
	recompilation. The parser also generates dstool model files 
	which can then be compiled for faster performance. Use of the 
	parser is selected from the models menu of the 	command panel. 
	Documentation is in the directory $DSTOOL/contrib/parserwin/doc, 
	and there is a man page in $DSTOOL/man

...etc....
..........
..........
Newsgroups: comp.windows.x
From: oj@miki.pictel.com (Oliver Jones)
Subject: Re: Getting the X Server to Use FS
Organization: PictureTel Corporation
Date: Tue, 6 Oct 1992 13:09:56 GMT

In article <1992Oct6.002109.7175@cs.ucla.edu> tek@pram.cs.ucla.edu (Ted Kim (Random Dude)) writes:
>Is there a way to get the R5 sample X server to make use of the font
>server? 

Yes, of course.  Put the font server in the display server's font path.

   % xset +fp tcp/fontservermachine:7000

Isn't this intuitively obvious?   :-)
Newsgroups: comp.windows.x
From: mikwe@isy.liu.se (M Wedin)
Subject: 3D visualization
Reply-To: mikwe@isy.liu.se
Organization: Linkoping University
Date: Thu, 1 Oct 1992 15:58:55 GMT

Hi !

I'm looking for a 3D-toolkit that works with XView. I have an application
that visualize colourspaces that I want to convert to 3D-visualization.

Any ideas, I don't want to port it to Athena and use Xaw3d.

Mail me.


---
O+-oo-+-oo-+-oo-+-oo-+-oo-+-oo-+-oo-+-oo-+-oo-+-oo-+-oo-+-oo-+-oo-+-oo-+-oo-+O
O    Mikael Wedin                                    Email: mikwe@isy.liu.se O
O    Image Processing in Graphics Art                Phone: +46-13-281301    O
O    Department of EE                                Fax:   +46-13-282599    O
O    Link|ping University                                                    O
O    S-581 83 LINK\PING      "I'm dancing barefoot, heading for a spin       O
O    Sweden                   some strange music drags me in..." -N. Young   O
O+-oo-+-oo-+-oo-+-oo-+-oo-+-oo-+-oo-+-oo-+-oo-+-oo-+-oo-+-oo-+-oo-+-oo-+-oo-+O
From: mouse@thunder.mcrcim.mcgill.edu (der Mouse)
Newsgroups: comp.windows.x
Subject: Re: Drawing in a window border?
Date: 29 Sep 92 03:56:42 GMT
Organization: McGill Research Centre for Intelligent Machines

In article <DRMRES27.92Sep24185443@c32.ucs.usl.edu>, drmres27@ucs.usl.edu (Mejia Pablo) writes:

> Is it possible to draw into a window's border?  If so how?

No.  You get a similar effect by drawing into a pixmap and setting it
as the window's border-pixmap, but this is usually wasteful because it
means keeping around a pixmap as big as the outside size of the window,
even though only a small portion of it every gets used.  About the only
alternative is to draw into the root window with a GC whose
subwindow-mode is set to IncludeInferiors, but this will let you draw
anywhere, and requires that you figure out which portions of your
window's border are visible if you wish to restrict your drawing
properly...and requires that you grab the server to avoid races.  There
is also nothing corresponding to an Expose event for the border.

					der Mouse

			    mouse@larry.mcrcim.mcgill.edu
Newsgroups: comp.windows.x.motif
From: jojo@sabrina.dei.unipd.it (Giorgio Paolucci 264433)
Subject: font required
Organization: D.E.I. Universita' di Padova, Italia
Date: Wed, 30 Sep 1992 17:36:54 GMT

Hello,
I have a problem using the function XmTextSetHighlight(): it make my
application crash. To solve my problem i tought to use a char-set with both
normal and reverse characters and use XmTextReplace() to put a string in
reverse mode. Unfortunately I haven't got such a font. Can anybody help me?
I'd need a font like the 6x13.scf but with normal and reverse character.
Thankyou in advance.

Newsgroups: comp.windows.x.motif
From: mstorey@csr.UVic.CA (Margaret-Anne D Storey)
Subject: Explicit Positioning of Windows
Originator: mstorey@csr
Organization: University of Victoria, Victoria, BC, Canada
Date: Fri, 2 Oct 92 22:58:51 GMT

Hi,

I am currently in the midst of writing a large motif system running
on an IBM RS6000.  This system has many windows.  I would like to be
able to explicity position the windows (shells) myself.  Is there
some way to do this?

Many thanks in advance!
Peggy Storey,
University of Victoria,
British Columbia,
Canada.
(mstorey@csr)
From: mokros@chekov.UU.NET (Ivo Mokros)
Newsgroups: comp.windows.x.motif
Subject: Re: Setting labelString does not take effect immediately ?
Date: 6 Oct 92 00:11:17 GMT
Organization: Nothern Telecom, Ottawa, Canada

In article <2997@contex.contex.com> avinash@felix.contex.com (Avinash Chopde) writes:
>I have scanned though many of the O'Reilly manuals trying to find
>out exactly when are resource changes applied, and am getting nowhere... 
>
>If I have a label widget, and do these steps in  some callback that
>takes a long time to return to the user:
>    ...
>    SetValues - labelString: "Processing......"
>    XFlush(..)
>    <process some long task - 1-5 secs)
>    SetValues - labelString: "Processing Complete."
>    return from callback.
>
>In the above example, it seems as if the label changes are not sent
>until after the callback returns, and then of course, only the
>second one shows up on the screen.

Since XtMainLoop isn't running while in your callback, events aren't processed
until you exit.  Use XmUpdateDisplay instead of XFlush.

>
>But, if I use a text widget, it all works as expected:
>    ...
>    SetValues - value: "Processing......"
>    XFlush(..)
>    <process some long task - 1-5 secs)
>    SetValues - value: "Processing Complete."
>    return from callback.
>
>The text widget does say Processing...., and then when the task
>completes, it changes to the second string.

It does the same for me. I don't know why.


 Northern Telecom Canada
                   /|
+---+  ---       /  |
|   | /   \    /    +---+
|   |/     \ /          |   Ivo Mokros
|   +---+   +---+   +---+   mokros@bnr.ca
|   |   |   |   |   |
|   |   |   |   |   |       The opinions expressed are either
|   |   |   +---+   +---+   my own, or those of Northern Telecom.
|   |   \      /|      /    I'm not sure which.
+---+    \____/  \____/
From: aw@BAE.BELLCORE.COM (Andrew Wason)
Newsgroups: comp.windows.x.motif
Subject: Re: table widgets
Date: 5 Oct 92 18:21:39 GMT
Distribution: inet
Organization: The Internet

Lloyd Lewis <lewis@koala.drea.dnd.ca>  writes:
> 
> Does anyone have any code or know of any prototyping tools
> which will produce table widgets for motif with characteristics
> described below?  I have already followed up on the FAQ
> recommendations, but as yet no replies have been received.

The XbaeMatrix widget can do everything you describe.  It's available
from export.lcs.mit.edu:contrib/Xbae-widgets-3.7.tar.Z

> My working environment:
> 
> Motif 1.0, X11R3, HP-UX 7.00 on an HP 9000/834. 

You'll have to do some hacking to get XbaeMatrix to work under
R3/Motif 1.0.  I think HP is currently shipping R4/Motif 1.1,
maybe you can upgrade.


Andrew

_______________________________________________________________________________

Andrew Wason                                       Bell Communications Research
aw@bae.bellcore.com                                Piscataway, NJ
bellcore!bae!aw
Newsgroups: comp.windows.x.motif
From: bjoerns@stud.cs.uit.no (Bjoern Stabell)
Subject: Re: How to strip off "_popup" string in XmCreateFormDialog?
Keywords: _popup string XmCreateFormDialog app-defaults Motif NLS
Organization: University of Tromsoe, Norway
Date: Fri, 2 Oct 1992 17:13:50 GMT

In article <1992Oct1.123616.29248@bnr.ca>, kingo@bnr.ca (Kiem Ngo) writes:
] In article <i81XRB1w165w@tmchome.UUCP>, tchal@tmchome.UUCP (Thomas M. Chalfant) writes:
] |> dwu@hal.gnu.ai.mit.edu (Daniel Wu) writes:
] |>     ...
] |>     String title = "Printer/Plotter Setup";
] |>     ...
] |>     configDialog = XmCreateFormDialog (dialogShell, title, NULL, 0);
] |>     XtVaSetValues(XtParent(configDialog), XmNtitle, title, NULL);
] |>     ...
] |> 
] |> This should do the trick for you.  You just have to make sure you are
] |> setting the XmNtitle resource on the dialog shell!
] |> 
] |> Tom
]
] It does not matter what kind of dialogs is: you can set the
] title name to anything you want with one X call:
]
]       XStoreName(XtDisplay(toplevel),
]                  XtWindow(XtParent(motif_dialog_widgetID)), dialog_title);

Overkill, why use Xlib when Xt/Xm provides the functionality you need?

Just one minor addition to Tom's code.  The 'title' in the XmCreate-call is
really the name of the widget, and thus you may specify the title in the
app-defaults file (if you have one) like:

        applicationName*printerPlotterSetup.dialogTitle:   Printer/Plotter Setup

If you do it this way, you must drop the XtVaSetValues() call:

        configDialog = XmCreateFormDialog(dialogShell, "printerPlotterSetup",
                                          NULL, 0);

I believe this is a good habit since it enables you to change the default
language by using a different app-defaults file (not everybody wants
english :)  Choosing the right app-defaults file (based on your LANG) is is
done automagically if you have NLS (and have it configured properly).

Remeber that your app-defaults file must be called the same as the name you
give your application (applicationName in the example above) when you do
Xt(App)Initialize(), and that it must be in your XUSERFILESEARCHPATH
path...  For instance, if it is in the current directory, you'll have to
add "./%N" to your XUSERFILESEARCHPATH environment variable.  (Entries are
separated by :'s)


Kind regards,
-- 
                                                  Bjoern Stabell
                                                  University of Tromsoe
                                                  (+47) 83 44 053 / 83 75 164
                                                  bjoerns@staff.cs.uit.no
Newsgroups: comp.windows.x.motif
From: tlj@zycor.lgc.com (Tim Jones...NOT)
Subject: Missing 3D toggle button gadget shadows in XmForm
Organization: Landmark/Zycor   Austin, Texas
Date: Thu, 1 Oct 1992 20:31:02 GMT

I could not find this problem mentioned in the motif FAQ; has anyone seen it
before: I am losing the 3D shadows on some toggle button gadgets.  The widget 
hierarchy is:

  Shell -> XmFrame -> XmForm -> XmForm -> XmForm -> XmToggleButtonGadget

(yes, there are some redundant forms). If I put the toggle button up one level:

  Shell -> XmFrame -> XmForm -> XmForm -> XmToggleButtonGadget

the 3D shadows are fine.  Apparently the problem is with the third XmForm, 
but I can't figure it out.  Where do gadgets get their shadows from, anyways?

Setting the XmNshadowThickness on the toggles makes no difference.  The toggles
are still functional, and the XmNfillOnSelect color shows up when it is 
selected, but the indicator has no 3D shadows.

Does anyone have some suggestions?  Please email and I will post a summary
when I figure out the problem.  Thanks!


Tim Jones
tlj@zycor.lgc.com
From: al@osf.org (Alastair Gourlay)
Newsgroups: comp.windows.x.motif
Subject: Re:Changing Background Colors of XmDialog Children
Date: 5 Oct 92 18:58:29 GMT
Distribution: inet
Organization: The Internet


> I'm using the set of XmCreate*Dialog() routines to create dialogs
> on the fly. These dialogs are going to be a different color than
> their parent widget. I can change the background of the dialog
> (bulletin board) but cannot seem to change the background of the 
> pixmap symbol.

If you set the XmNbackground of the dialog at create-time, the
pixmap will pick it up. If you set the background after creation
with XtSetValues then the pixmap will already have been created
with the old background.

If setting it at create-time is not an option because you wish to
dynamically change the background, you could try this:

(pseudo-code - see Ref. Manual for details)

	symbol = XmMessageBoxGetChild (XmDIALOG_SYMBOL_LABEL);
	new_pixmap = XmGetPixmap ("xm_working", fg, bg); /* or xm_warning etc. */
	XtSetArg (args[0], XmNlabelPixmap, new_pixmap);
	XtSetValues (symbol, args, 1);

Good luck,

	Alastair.
Newsgroups: comp.windows.x.motif
From: delp@syrinx.rap.ucar.edu (Stephen Delp)
Subject: Advice
Organization: Scientific Computing Division/NCAR Boulder, CO
Date: Tue, 6 Oct 1992 21:22:30 GMT

I'm trying to invoke callbacks from within my application without
user input. For example, if a process sends the application a message
I need to be able to change state and perhaps toggle a few buttons.
What is the best way to do this? Any help is appreciated.

Thanks,

Steve
From: bodarky@cme.nist.gov (Scott Bodarky)
Newsgroups: comp.windows.x.motif
Subject: Advice sought: XmStrings and XmLabels
Date: 30 Sep 92 15:53:51 GMT
Distribution: comp
Organization: National Institute of Standards and Technology


I'm having trouble getting multi-line text back out of an XmLabel.
Any suggestions would be welcome.

To wit:

1) I set the XmNlabelString of an XmLabel:

	XtSetArg(args[n], XmNlabelString, 
	         (xmstr[0]=XmStringCreateLtoR("test1\ntest2",
					       XmSTRING_DEFAULT_CHARSET)));

2) Later I extract the string and put it in an XmString:

	XmString taskidString;

	XtSetArg(args[0], XmNlabelString, &taskidString);
	XtGetValues(Label, args, 1);

3) I try to find out how many lines are in the XmString:

	printf("lines: %d\n",XmStringLineCount(taskidString));

	> lines: 1

4) I then try to get the string, two different ways:

	while (XmStringGetNextSegment(context, &taskids, 
				      &charset, &direction, &separator)) {
	  if (separator) printf("separator\n");
	  printf("text: %s\n", taskids);
	}

	> separator
	> text: test1

   Where did "test2" go?  Shouldn't the presence of one separator make
   the XmStringLineCount in (3) return a value of 2?

   Or, alternatively:

	while (XmStringGetLtoR(taskidString, XmSTRING_DEFAULT_CHARSET, &taskids)) {
	  printf("text: %s\n", taskids);
	}

	> text: test1

   Same result!

   The documentation I have for this stuff is minimal at best, and
   clearly what understanding I have is inaccurate at best.

   How can I get test1 and test2 extracted?

Many thanks,
-Scott (bodarky@cme.nist.gov)| "The American public knows what it wants,
			     |  and deserves to get it good and hard."
  The National Institute     |  
 of Standards & Technology   |  	-H. L. Mencken
Newsgroups: comp.windows.x.motif