HDTenEightyP/NetNews huggingface dataset:
From: laufer@math.luc.EDU (Konstantin Laufer)
Newsgroups: comp.windows.open-look,comp.windows.x
Subject: OpenWindows with Xsun instead of xnews server?
Date: 25 Aug 92 20:01:51 GMT
Reply-To: laufer@math.luc.edu
Organization: Loyola University Chicago

I have been running OpenWindows on a Sun ELC, and the performance is
horrific, especially when using olvwm.  I decided to switch back to
plain X11, but using what's already there in the OpenWin installation.
In other words, I want to run the X11 subset of the OpenWin
installation by replacing the slow xnews server by the fast Xsun
server.  I got an Xsun binary and am able to start up X under twm, but
as soon as I start any xview-based program, I get the following
messages:

XView warning: Cannot load font '-b&h-lucida-medium-r-*-*-*-120-*-*-*-*-*-*' (Font package)
XView warning: Cannot load font '-b&h-lucida-medium-r-normal-sans-*-120-*-*-*-*-*-*' (Font package)
XView error: Cannot open connection to window server: :0.0 (Server package)

I understand the font-related messages, but not the one related to the
server.  Moreover, when I quit twm and try to start ol(v)wm, I get a
segmentation fault.

Is there anything I'm missing, extra environment variables or so?  Any
suggestions would be appreciated.

-- 
-Konstantin [laufer@math.luc.edu]
Newsgroups: comp.windows.open-look
From: ram@Marigold.XAIT.Xerox.COM (Ramprasad Krishnamurthy [XDOM Contractor])
Newsgroups: comp.windows.open-look
Subject: Overriding default key bindings
Date: 1 Sep 92 19:15:11 GMT
Reply-To: ram@Marigold.XAIT.Xerox.COM (Ramprasad Krishnamurthy [XDOM Contractor])
Distribution: usa
Organization: Xerox Advanced Information Technology, Cambridge, MA


Hi OLIT gurus

Does anyone know how to override the default key bindings in OLIT 3.0 (specifically the OL_DEFAULTACTION is bound to "Return" which I would like to override)


Thanx
Ram
From: leue@crd.ge.com (Bill Leue)
Newsgroups: comp.windows.open-look
Subject: Printing X Graphics
Keywords: Open Windows, graphics, PostScript, printing
Date: 3 Sep 92 18:12:30 GMT
Reply-To: leue@crd.ge.com
Organization: General Electric Research & Development

Does anyone know of a filter or other mechanism that will allow you to
convert X-based graphics calls into something you can send to a PostScript
printer?

I'm thinking of something like the capability that is built into the
Mac environment: to print some graphics, you just set the output port to
the printer and issue the same QuickDraw calls that you would normally
used to draw on the screen, and the printer driver takes care of translating
the calls to PostScript.  I'm looking for the equivalent capability to
add to one of my programs running under Open Windows 3.0, where I am drawing
the graphics using the standard X primitives, e.g, XDrawRectangle(), etc.

These drawing primitives are so similar to the Mac versions (no coincidence,
I suspect) that it seems strange that some provision wasn't made for printing,
but I can't find anything documented in O'Reilly Volumes 1 or 2.

Thanks!
-Bill Leue
Newsgroups: comp.windows.open-look,comp.windows.x
From: klamer@mi.el.utwente.nl (Klamer Schutte)
Subject: Re: OpenWindows with Xsun instead of xnews server?
Organization: University of Twente, BSC-El
Date: Thu, 27 Aug 1992 07:35:06 GMT

In <9208252001.AA12022@dedekind.math.luc.edu> laufer@math.luc.EDU (Konstantin Laufer) writes:

->I have been running OpenWindows on a Sun ELC, and the performance is
->horrific, especially when using olvwm.  I decided to switch back to
->plain X11, but using what's already there in the OpenWin installation.
->In other words, I want to run the X11 subset of the OpenWin
->installation by replacing the slow xnews server by the fast Xsun
->server.  I got an Xsun binary and am able to start up X under twm, but
->as soon as I start any xview-based program, I get the following
->messages:

->XView warning: Cannot load font '-b&h-lucida-medium-r-*-*-*-120-*-*-*-*-*-*' (Font package)
->XView warning: Cannot load font '-b&h-lucida-medium-r-normal-sans-*-120-*-*-*-*-*-*' (Font package)
->XView error: Cannot open connection to window server: :0.0 (Server package)

->I understand the font-related messages, but not the one related to the
->server.  Moreover, when I quit twm and try to start ol(v)wm, I get a
->segmentation fault.

The solution is to install the OpenWindows fonts in X11 font directories.
convertfont(1) can help in this process. Figuring out what fonts are
requiered is the difficult step overhere; we just converted everything,
and ended up with a lot of doubles.

Note that not all OpenWindows programs will run: some need News support
(like pageview :-), which Xsun does not have. 

It is running over a year overhere (color 8 && monochrome, sun3 & sun4)
without big problems. No experience with X11R5, only X11R4.

Klamer
--
Klamer Schutte			Tel: +31-53-892778	Fax: +31-53-340045
Faculty of electrical engineering -- University of Twente, The Netherlands
preferred: klamer@mi.el.utwente.nl     SMTP: klamer@utelmi01.el.utwente.nl
From: weinri@athena.cs.uga.edu (Kevin Weinrich)
Newsgroups: comp.windows.open-look
Subject: Remote client works in X11, not NeWS - auth problem?
Date: 28 Aug 92 17:57:56 GMT
Organization: University of Georgia, Athens

I have a problem that I *think* is an XNeWS authorization problem.
I'm hoping someone has seen this before.

The .Xauthority file that *both* /usr/bin/X11/Xsun and 
$OPENWINHOME/bin/xnews like, won't let me run xauth on it.  When I do:
  xauth extract - $DISPLAY
it responds:
  No matches found, authority file "-" not written
(which means I can't permit any other machines to display on my local
machine, which is the source of my problem).

If I run xauth, it responds:
  Using authority file /home/kbw/.Xauthority
  xauth>
I type:
  list
it responds:
  #ffff##:  MIT-MAGIC-COOKIE-1  debf8cd. . .
That first field looks mangled (it should say something about helios),
but the servers seem to accept it.

I have another authority file that I don't remember how I cobbled
together, which works with Xsun, but not xnews, and behaves
properly with xauth.  In xauth it lists:
  helios.ath.epa.gov:0  MIT-MAGIC-COOKIE-1  debf8cd. . .
  helios/unix:0  MIT-MAGIC-COOKIE-1  debf8cd. . .
  hermes/unix:0  MIT-MAGIC-COOKIE-1  14bdb20. . .
Note that the hexkeys in *both* .Xauthority files are the same!  So
why won't the second one work for xnews and/or why won't the first
one let me pass its xauth information to another machine?

I'm running X11R5 and OpenWindows 2.0 on two Sun SPARC boxes running
OS 4.1 and 4.1.1, respectively.  Here follows my startup script
with a few comments:


#! /bin/sh
# @(#)openwin 23.25 90/06/19

# environment variables that this shell script sets/changes:
export DISPLAY FONTPATH FRAMEBUFFER HELPPATH LD_LIBRARY_PATH
export MANPATH NEWSSERVER OPENWINHOME PATH XAPPLRESDIR

DISPLAY=":0"

# default FRAMEBUFFER is /dev/fb if not in the environment.
FRAMEBUFFER=${FRAMEBUFFER-"/dev/fb"}

# Derive the $NEWSSERVER variable from the digit in $DISPLAY
newsport=`expr "$DISPLAY" : '.*:\([0-9][0-9]*\)' + 2000`
NEWSSERVER=`$OPENWINHOME/bin/newsserverstr $newsport`

FONTPATH=$OPENWINHOME/lib/fonts:/usr/lib/X11/fonts
HELPPATH=$OPENWINHOME/lib/help


XAPPLRESDIR=$OPENWINHOME/lib/X11/app-defaults

# confirm framebuffer configuration
    $OPENWINHOME/bin/xn_ck_fbs

# start up xinit and thus the server.
# The following line will let xauth work properly, but of course I
# can't run, e.g., pageview
# $OPENWINHOME/bin/xinit -- /usr/bin/X11/Xsun $DISPLAY -auth $HOME/.Xauthority
$OPENWINHOME/bin/xinit -- $OPENWINHOME/bin/xnews $DISPLAY -auth $HOME/.Xauthority

exit 0
Newsgroups: comp.windows.open-look,comp.windows.x
From: laufer@math.luc.EDU (Konstantin Laufer)
Subject: Re: OpenWindows with Xsun instead of xnews server?
Reply-To: laufer@math.luc.edu
Organization: Loyola University Chicago
Date: Wed, 26 Aug 1992 01:16:36 GMT

I wrote:
> I have been running OpenWindows on a Sun ELC, and the performance is
> horrific, especially when using olvwm.  I decided to switch back to
> plain X11, but using what's already there in the OpenWin installation.
> In other words, I want to run the X11 subset of the OpenWin
> installation by replacing the slow xnews server by the fast Xsun
> server.  I got an Xsun binary and am able to start up X under twm, but
> as soon as I start any xview-based program, I get the following
> messages:
> 
> XView warning: Cannot load font '-b&h-lucida-medium-r-*-*-*-120-*-*-*-*-*-*' (Font package)
> XView warning: Cannot load font '-b&h-lucida-medium-r-normal-sans-*-120-*-*-*-*-*-*' (Font package)
> XView error: Cannot open connection to window server: :0.0 (Server package)
> 
> I understand the font-related messages, but not the one related to the
> server.  Moreover, when I quit twm and try to start ol(v)wm, I get a
> segmentation fault.

After installing all the missing fonts, everything works fine!  I
don't understand what the missing fonts have to do with the server.  I
would estimate the subjective performance increase to about 500%, and
I was even running OW3 before, which is supposed to be considerably
faster than OW2.  To me, this tremendous performance increase
justifies doing without all the OpenWin-specific stuff, and I gladly
went back to FrameMaker/X, too.

Any comments are *still* appreciated.

-- 
-Konstantin
Newsgroups: comp.windows.open-look
From: lee@sq.sq.com (Liam R. E. Quin)
Subject: Re: DevGuide3.0 Libs-Who owns the source?
Organization: SoftQuad Inc., Toronto, Canada
Date: Tue, 1 Sep 92 21:24:07 GMT

> We are currently developping *lots* of software with devguide3.0, most of
> which can not be distributed on the net as sources because it needs
> the devguide3.0-libraries to compile, in particular the DRAG'n'DROP and
> filebox-codes, which are provided in source together with devguide
> but protected by SUN, as I believed.

> Can the source be distributed freely?

Fairly freely.  The copyright notice is appended.

You must only distribute it as part of something you have developed, as
I understand it.  Actually I'd like to see it available separately on
export.lcs.mit.edu along with XView 3, as then programs that used it would
have smaller distributions.  But for now at least, you have to include the
oibraries with your product.  You could bundle lots of programs together
with one copy of the libguide and libguidexv libraries, of course.

> If yes, why is it not a part of xview3?

Because it was developed by the Devguide team using XView, rather than by
the XVIew team, I assume.

Here's a copy of the copyright notice:

#
# @(#)Makefile  2.16 91/10/15 Copyright 1990 Sun Microsystems
#
# This file is a product of Sun Microsystems, Inc. and is provided for
# unrestricted use provided that this legend is included on all tape
# media and as a part of the software program in whole or part.  Users
# may copy or modify this file without charge, but are not authorized to
# license or distribute it to anyone else except as part of a product
# or program developed by the user.
# 
# THIS FILE IS PROVIDED AS IS WITH NO WARRANTIES OF ANY KIND INCLUDING THE
# WARRANTIES OF DESIGN, MERCHANTIBILITY AND FITNESS FOR A PARTICULAR
# PURPOSE, OR ARISING FROM A COURSE OF DEALING, USAGE OR TRADE PRACTICE.
# 
# This file is provided with no support and without any obligation on the
# part of Sun Microsystems, Inc. to assist in its use, correction,
# modification or enhancement.
# 
# SUN MICROSYSTEMS, INC. SHALL HAVE NO LIABILITY WITH RESPECT TO THE
# INFRINGEMENT OF COPYRIGHTS, TRADE SECRETS OR ANY PATENTS BY THIS FILE
# OR ANY PART THEREOF.
# 
# In no event will Sun Microsystems, Inc. be liable for any lost revenue
# or profits or other special, indirect and consequential damages, even
# if Sun has been advised of the possibility of such damages.
# 
# Sun Microsystems, Inc.
# 2550 Garcia Avenue
# Mountain View, California  94043
#


Lee
-- 
Liam Quin, lee@sq.com, SoftQuad, Toronto, 416 239-4801; the barefoot programmer
  lq-text (Unix text retrieval package) mailing list: lq-text-request@sq.com
  latest released version: 1.10; ftp: ftp.cs.toronto.edu in directory: pub
  If Adultery is for Adults, is Juvenal for Juveniles?
Newsgroups: comp.windows.open-look
From: svan@isy.liu.se (Jonas Svanberg)
Subject: Re: Q: C++ and callback problems.
Keywords: callback C++ c++ 
Reply-To: svan@isy.liu.se
Organization: Linkoping University
Date: Fri, 4 Sep 1992 07:21:44 GMT

swf@teradata.com (Stanley Friesen) responds:

> In article <1992Aug30.171624.1330@isy.liu.se> svan@isy.liu.se writes:
> |>
> |>	// call MyClass::bar when button activated
> |>	cellp->change_action( mcp, (OI_action_memfnp) &MyClass::bar );
> |
> |What is OI_action_memfnp? For this to be a legal and portable (?) cast it
> |has to be of type pointer-to-member-of-MyClass or a pointer-to-member-of-a-
> |-baseclass-of-MyClass. 
> |I suppose in this case that MyClass is derived from an OI-class? (hence the
> |lacking of a cast of mcp in the last call.) Is it really safe to make a 
> |member-function-call when both the objectpointer and the pointer-to-member-
> |-function have been casted "towards the baseclass"?
>
> You suppose correctly. To register a member function as a callback, the
> first base class of MyClass must be the OI class OI_callback.
>
> And, no, it is not safe, you had better be sure that the member function
> pointer you are passing actually pertains to the object pointer you are
> passing.

Yeah, but even if the memb-func-pointer does match the object-pointer, I
wonder if it is safe... Especially when considering multiple inheritance.


--------------------------------------------------------------
 Jonas Svanberg
 Department of Electrical Engineering
 Linkping University
 S-581 83 Linkping, Sweden             Email: svan@isy.liu.se
--------------------------------------------------------------

Newsgroups: comp.windows.open-look
From: imp@solbourne.com (Warner Losh)
Subject: Re: Q: C++ and callback problems.
Organization: Solbourne, User Interface Group
Date: Fri, 28 Aug 1992 04:11:39 GMT

If you really want to use member function callbacks (especially
virtuals), you should be using a C++ based toolkit.  It makes life so
much easier.  There are some commercial ones, plus some freely
distributable ones.  They make your life much simpler than trying to
kludge around the problem in a C based toolkit.

Warner

P.S.  You all should realize that I'm slightly biased on this issue. :-) 
-- 
Warner Losh		imp@Solbourne.COM
I've almost finished my brute force solution to subtlety.
From: fgreco@fis1026.shearson.com (Frank Greco)
Newsgroups: comp.windows.open-look
Subject: Re: XView & C+++
Date: 1 Sep 92 15:33:40 GMT

> The xview library uses pseudo objects which could be
> very nicely encapsulated by C++ objects. Did anyone do
> this, commercially or personally? I am very interested
> in the results.

	See UIT (PD software located on export) and XV++ (Commercial
	software obtained from Qualix - I believe src license is $495).

	Both are C++ wrappers around Xview.

	Frank G.

	Since this may be of general interest, I'll post this.
=-=-=-=-=-=-=-=-=-=
From: alex@bnkc08.Bell.CA (Alex Laney)
Newsgroups: comp.windows.open-look
Subject: Need help in selecting a Panel Text Field.
Date: 3 Sep 92 20:34:18 GMT
Organization: Bell Canada - Ops Dvlpmt (Ntwk Systems)


I need to make a 'Panel Text Field' highlighted. I.e., selected. The
environment I am using is OpenWindows 2 and XView. Could someone point me
to some sample code to do this? If I have to fake mouse events to a text
field that is okay with me, but I really don't want to re-invent this if I
don't have to. I have a copy of the O'Reilly XView Manual, which describes
how to do this with text sub-windows, but that's not what I want. I know
that I can set the PANEL_CARET_ITEM, but that's just too subtle for the
user audience for the application I work on.

If this is solved simply in OpenWindows 3, I might just use that ...

(Don't email to me, I don't think my return addr will work..)

alex laney

...!animal!bnkc08!alex (I think)
A.LANEY on GEnie
From: soloway@tooltalk.Eng.Sun.COM (Mark Soloway)
Newsgroups: comp.windows.open-look
Subject: Re: Another UITV2 bug
Date: 29 Aug 1992 01:44:37 GMT
Organization: Sun Microsystems, Inc.
Distribution: world
Reply-To: soloway@tooltalk.Eng.Sun.COM
NNTP-Posting-Host: tooltalk

In article 3801@msuinfo.cl.msu.edu, adc@tardis.msu.edu (Alan D. Cabrera) writes:
>
>When I create an interface with a drop target box and set the various
>drag & drop cursors, testing the interface in Guide 3.0 works fine.
>When I run guic, compile and run, the program gets a segmentation fault
>and dumps core.
>
>
>---
>Alan Cabrera				internet:  adc@tardis.cl.msu.edu
>Computer Laboratory			phone:     (517) 353-3027
>Michigan State University		fax:       (517) 353-9847
>514 Computer Center			bitnet:    CABRERA@MSU
>East Lansing, MI 48824
>

Please send UIT bugs to uit-hotline@midniteoil.Eng.Sun.COM.  I don't always
have a chance to read comp.windows.open-look, but I always check the uit-hotline
every weekday.  Also, when you post a bug, please send some code or a .G file
that replicates the bug.  Otherwise, it is nearly impossible for me to solve the
problem.  Most UIT bugs are very special cases and cannot easily be replicated
by trial and error...

						Thanks,

							- Mark

__________________________________________
\_Mark Soloway (mark.soloway@Eng.Sun.COM)_\
/_Distributed Systems Services (ToolTalk)_/
\__SunSoft (A Sun Microsystems Company)___\
Newsgroups: comp.windows.open-look
Distribution: world
Date: Wed, 2 Sep 92 09:35:30 EDT
From: fgreco@fis1026.shearson.com (Frank Greco)
Subject: Re: DevGuide 1.1 -> 3  differences

> I have DevGuide 1.1. Is version 3 (I believe that's the current one)
> much different from 1.1? Is it worth updating?

	You cannot believe the difference!  Blow away the old one
	and get the 3.0 version.  The new one may be a bit more complex
	(well, the 1.X version was so simple, anything else is more
	complex), but there's much more functionality (and some major
	bugs were squashed).

	The new Connections manager is fantastic, the Project metaphor
	is extremely helpful in piecing together separate .G files (was
	a major league pain in 1.1), graphical depiction of your .G files,
	the file-chooser object, the new GROUP XView object, the drag-n-drop
	convenience routines, the src for these plus the src for reading
	.G files...

	It's a major improvement.  It's a no-brainer; definitely upgrade.

	Frank

	If it only could handle fonts (you only get 1) and
	panel/panel-item colors (e.g., I want my panel_list to be white
	with the underlying panel to be cadet-blue) a little better...
=-=-=-=-=-=-=-=-=-=
From: dominic@onions.natcorp.ox.ac.uk (Dominic Dunlop)
Newsgroups: comp.windows.open-look
Subject: xvnews 2.0p2 crashes instead of posting on Sun4c/SunOS 4.1.1/OW 3.0
Date: 28 Aug 92 09:13:28 GMT
Organization: British National Corpus, Oxford University, GB
Originator: dominic@onions.natcorp.ox.ac.uk

``The subject line says it all'', except that the program dumps core
with its PC somewhere in hyperspace.  I'm using the program ``straight
out of the box: all I changed were the NNTPSERVER, DOMAIN and
ORGANIZATION defines in xvnews.h.  Before I start poking about with
dbxtool, has anyone else seen and solved this particular problem?  (I
thought it might be due to having a long ORGANIZATION in a fixed-size
buff in xv_post.c.  No soap.)

Just to make life more interesting, the problem symptoms vary.
Sometimes things go up in smoke as soon as I select the ``Post''
button (in either newsgroup or article mode) ; sometimes I'm allowed
to compose a posting because xvnews is waiting to actually try to make
the post before crashing.

And another thing: I'm using Sun's cc 1.1.  Things seem to be
marginally more solid when I compile without the optimizer, but I
could be fooling myself.  I don't have guide installed, so I'm using
the libguide which came with the application.  (And, boy, what a large
binary results.)

-- 
Dominic Dunlop
Xref: sparky comp.windows.open-look:3627 comp.sys.sun.misc:3971 comp.os.vms:14215 vmsnet.misc:755
From: plutchak@porter.geo.brown.edu (Joe Sixpack)
Newsgroups: comp.windows.open-look,comp.sys.sun.misc,comp.os.vms,vmsnet.misc
Subject: Help: EDT on VMS from a Sun
Followup-To: comp.windows.open-look
Date: 27 Aug 1992 16:57:44 GMT
Organization: Brown University Planetary Geology
Distribution: world
NNTP-Posting-Host: pilsner.geo.brown.edu


   I'm not sure if this is a Sun question, a VMS question, an X
question, an OpenWindows question, or a little of each, but somebody
out there must have done this...

   We have a buncha Sun workstations running OpenWindows 3.0 (but
no documentation due to licensing quirks), and a few VMS machines,
all living happily on our network.  The users want to be able to
use xterm, telnet, or rlogin to connect to the VAXen from the Suns
(the easy part), and use keypad mode in EDT once they're there (the
hard part).  With the limited documentation on hand, I've yet to
come up with a usable and familiar way to use the Sun keypad in EDT.
   If anybody could point me in the right direction, I'd be much
obliged.  Send Email, and I'll summarize if there's any interest.

[Note Followup line, since I think this is mostly an X/Openlook question.]
--
Joel Plutchak, Research Programmer/Analyst
Newsgroups: comp.windows.open-look,comp.windows.x
From: jumper@spf.trw.com (Greg Jumper)
Subject: Between-session console doesn't work with XDM
Organization: TRW Sensor Data Processing Center, Redondo Beach, CA
Date: Sat, 29 Aug 92 20:47:50 GMT

I have tried unsuccessfully to use the "trick" suggested in topic 35 of the
"comp.windows.x" FAQ for starting a console window between XDM sessions by
altering the program used as "xrdb".  I am trying to use "contool" under
OpenWindows 3.0 (SunOS 4.1.2).

The symptom is that the console window appears and immediately disappears
before the authentication window is displayed.  I have tried disabling
authentication entirely, but that has no effect.  Apparently, the server is
being reset just before the authentication widget comes into play, thus
killing any existing clients.  (I also tried explicitly setting
"*resetForAuth" false.)

Am I overlooking something, or is there some other way to get a between-
session console window to work?
--
                                       Thanks,

                                       Greg Jumper
                                       TRW Signal Processing Facility
                                       jumper@spf.trw.com
Newsgroups: comp.windows.open-look