HDTenEightyP/NetNews huggingface dataset:
From: dana@Software.Mitel.COM (Dana Peters)
Newsgroups: alt.toolkits.xview
Subject: TERMSW and tcsh
Date: 14 Sep 92 19:04:23 GMT
Organization: MITEL Corporation, Kanata, Ontario, Canada

I'm encountered a problem which I just can't seem to work around.  I'm hoping
someone can help me (apologies if this has cropped up here before, which it
probably has).

It occurs when I start my xview application from a tcsh and put it into the
background with '&'.  The application later forks a second application
containing a TEXTSW.  Problem is that the tty settings of the TEXTSW are
screwed up.  I believe it is a symptom of the following problem:

     Bug Id:       1030204
     Category:     xview                           
     SubCategory:  library                         
     Synopsis:     cmdtool can start up with bogus tty settings
     Public Summary:
	     Cmdtool sets it pty setting based upon information found in an
	     environment variable.  In SunView, this variable is initialized 
	     by the suntools/sunview program.  In OpenWindows, this variable 
	     is initialized by the X11/NeWS server.  Unfortunately, under X11 
	     or OpenWindows, cmdtool may not be forked from the server, so 
	     this variable will not be present in cmdtool's environment.  If 
	     this is the case, cmdtool inspects the tty settings of its control 
	     terminal and sets its pty to have those same settings.  
	     Unfortunately, the control terminal doesn't always have settings 
	     that are reasonable for cmdtool's pty, and so things can get 
	     screwed up.
     Work Around:
	     Type "reset^J" to the cmdtool after it comes up.  You won't be able
	     to see what you type, but that command will reset the terminal.
	     Alternatively, make sure you start up cmdtool from a control
	     terminal that has reasonable modes.

Since tcsh uses "weird" tty settings which it can't temporarily set back to
"normal" ones if the application is run in the background, the TERMSW inherits
these and things don't happen as expected.  At least one version of dbxtool
suffers from this problem as well.  To make matters worse, typing ^Z causes
the application to be killed so I can't 'bg' it to put it into the background.
The problem seems to be the same across Openwin 2 and 3.  What can I do to
work around this (besides not using tcsh or not putting the application into
the background) ?
--
Dana Peters
Dana.Peters@Software.Mitel.COM
From: martin@Chemeng.Ed.Ac.Uk (Martin Spenceley)
Newsgroups: alt.toolkits.xview
Subject: Re: Devguide Drag Drop.
Date: 8 Sep 92 15:22:17 GMT
Reply-To: martin@Chemeng.Ed.Ac.Uk
Organization: Edinburgh University Chemical Engineering Department.
Originator: martin@wick

>In article 92Sep8093602@toxicavenger.bear.com, buzz@toxicavenger.bear.com (Buzz >Moschetti) writes:
>>In article <1992Sep7.154416.27463@chemeng.ed.ac.uk> martin@Chemeng.Ed.Ac.Uk (Martin 
>>Spenceley) writes:
>>  Anyone out there know how to use the DevGuides gdd functions to allow text items be >used?

>I don't believe it is possible with DevGuide gdd_ functions.  You probably can
>implement a solution by directly creating and manipulating DND objects from
>XView 3.0, but this means getting tangled up in the selection service, atoms,
>and lengthy event handlers.  :-(
>
>The UIT C++ library from Sun extends DND functionality to all objects.  Any
>interface component may be dragged and/or dropped on, and the callback
>interface is orthogonal across all components.

This is where I got the initial idea to Drop onto text items in the first place.
Unfortunately I do not like how the UIT guic? system forces all the items inside one big object. My code takes a gxv++ window object and inherits its attributes with my windowing class to give the window object the flexibility I need when using the text items.

I have got the text items to receive engineering data (i.e 34.03 lb/ft3 etc ), parse it and display a converted value (based on the user defined units), and the window class handles the extra complexity involved like initialising all the text items if a global change unit message is recieved through the tooltalk mechanism and changing the text item state based on the drop operation. 

It is sad the Devguide software does not support other items. It would have saved me re-inventing nearly all its present functionality. :-(


Martin
-- 
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
    Martin W. Spenceley                        Telephone 031 650 5891         
    Department of Chemical Engineering         Email M.W.Spenceley@uk.ac.ed   
    Edinburgh University                       or    martin@uk.ac.ed.chemeng  
Newsgroups: alt.toolkits.xview
From: ericp@netcom.com (Eric Pederson)
Subject: Re: Constant Length Scrolling TEXTSW
Date: Fri, 11 Sep 92 17:38:32 GMT
Organization: Netcom - Online Communication Services  (408 241-9760 guest) 
Distribution: alt

In article <BUZZ.92Sep10231516@doctordoom.bear.com> buzz@fsrg.bear.com (Buzz Moschetti) writes:
>Before I go and code this thing up, let's try the net:
>
>Has anyone put together a text pane that maintains a constant length and
>can scroll within that "frame?"  For example, the pane grows/stores
>text until it hits, say, a 100000 bytes limit.  All insertions after this
>point will *erase* an equal quantity of text from the beginning of the
>pane.

This one was a pain to figure out the first time.

        /* Get name of temp file */
        x = tmpnam(NULL);
        warning("logfileCreate: using temp file %s for textsw\n", x);
        fd = creat(x, 0666);            /* TEXTSW_FILE must be a real file */
        if (fd == -1) {
                log_error("logfileCreate: error creating %s, errno=%d\n", x, errno);
        } else
                close(fd);

        /* These are all set up to make text window behave somewhat how we want it to */
        xv_set( LogPanelObjs->LogText,
                        TEXTSW_READ_ONLY, TRUE,
                        TEXTSW_AGAIN_RECORDING, FALSE,
                        TEXTSW_BROWSING, TRUE,
                        TEXTSW_CHECKPOINT_FREQUENCY, 0,
                        TEXTSW_DISABLE_CD, TRUE,
                        TEXTSW_DISABLE_LOAD, TRUE,
                        TEXTSW_HISTORY_LIMIT, 1,
                        TEXTSW_FILE, x,
                        TEXTSW_WRAPAROUND_SIZE, 64000,
                        TEXTSW_IGNORE_LIMIT, TEXTSW_INFINITY,
                        NULL);
 
Substitute a number for 64000 if you need to make it bigger.
-- 
Eric Pederson					(W) 510-210-8890
ericp@netcom.com
Newsgroups: alt.toolkits.xview,comp.windows.open-look
From: corbet@sargon.psu.edu (Robin Corbet)
Newsgroups: alt.toolkits.xview,comp.windows.open-look
Subject: XView ports
Date: 14 Sep 92 14:30:05 GMT
Reply-To: corbet@sargon.psu.edu
Followup-To: alt.toolkits.xview,comp.windows.open-look
Organization: Penn State University.

Is there a list anywhere of public domain ports of the XView toolkit?
The only ones I am aware of are to the DECstation; does anyone know of
any others?

I've read the Open Look FAQ but it doesn't appear to have this
information.

	Robin
corbet@astro.psu.edu
From: martin@patricia.verfahrenstechnik.uni-stuttgart.de (Martin Hepperle)
Newsgroups: alt.toolkits.xview
Subject: Re: How to delete textpane contents??
Date: 8 Sep 92 12:35:21 GMT
Organization: Institute A for Mechanics, University of Stuttgart, Germany

In article <18541.2aa5d330@levels.unisa.edu.au> 8328327c@levels.unisa.edu.au writes:
>I am having a problem trying to erase the contents of a text subwindow
>
>This is the code:
>
>
>xv_set(base->textpane, TEXTSW_READ_ONLY, FALSE, NULL);
>i=textsw_erase(base->textpane, 1, TEXTSW_INFINITY);
>xv_set(base->textpane, TEXTSW_READ_ONLY, TRUE, NULL);
>
>i is given value 0.
>
>I have tried textsw_delete, and using specific values rather than
>TEXTSW_INFINITY without succes.
>
>
>Any assistance by post to this group or direct to me would be appreciated.
>
>
>Thanks in advance,
> Steve Swain.

The following works for me (...don't know why...)

	/* empty message window */
	xv_set( Text_item, TEXTSW_READ_ONLY, FALSE, NULL );
	textsw_erase( Text_item, 0, TEXTSW_INFINITY );
	textsw_reset( Text_item, 0, 0 );
	xv_set( Text_item, TEXTSW_READ_ONLY, TRUE, NULL );


Martin.
________________________________________________________

      Martin J. Hepperle          MMMMMMMMMMMMH   HHH
     Universitaet Stuttgart       M   MMM   MMH   HHH
       Pfaffenwaldring 9          M   MMM   MMHHHHHHH
     D-7000 Stuttgart 80          M   MMM   MMH   HHH
 Germany, Europe, World, Universe M   MMM   MMH   HHH
     PLEASE USE THIS RETURN ADDRESS ONLY:
    martin@mecha2.verfahrenstechnik.uni-stuttgart.de
________________________________________________________
From: david@yamada-sun.UUCP (David Gray)
Newsgroups: alt.toolkits.xview
Subject: colored glyphs in scrolling lists
Date: 15 Sep 92 00:04:52 GMT

I would like to use a panel scrolling list in which I have glyphs and
strings.  My application does not use SunView color map segments, it uses
plane graphics and calls to the Xlib color map.  I also have Pixmaps set up
that use various stipple patterns.

My problem is this:  I would like to use the Pixmaps as colored glyphs in the
scrolling list.  The XView 3.0 manual is very unhelpful in this regard, other
than telling me I need to use a color map segment and set the plane depth to
some value other than one - as well as using a Server Image.

Any ideas anyone?  Without a lot of overhead and redundancy  (such as creating
a color map segment), I would like to be able to draw glyphs into a scrolling
list, on which I can set a plane mask, use a stipple pattern, and draw a color.
From what I've seen of the panel package, this aint possible.   Do I need to
create a panel extension?  Or does someone have a clever trick?

#################################################################
# David Gray							#
# Phase Three Logic						#
#								#
# email: nosun!yamada-sun!david					#
#################################################################
From: buzz@doctordoom.bear.com (Buzz Moschetti)
Newsgroups: alt.toolkits.xview
Subject: Constant Length Scrolling TEXTSW
Date: 11 Sep 92 03:15:16 GMT
Reply-To: buzz@fsrg.bear.com (Buzz Moschetti)
Distribution: alt
Organization: Bear, Stearns & Co. Inc.

Before I go and code this thing up, let's try the net:

Has anyone put together a text pane that maintains a constant length and
can scroll within that "frame?"  For example, the pane grows/stores
text until it hits, say, a 100000 bytes limit.  All insertions after this
point will *erase* an equal quantity of text from the beginning of the
pane.

Any takers?
From: wagner@ike.ucdavis.edu (John Wagner)
Newsgroups: alt.toolkits.xview
Subject: Re: Display Picture (e.g. gif)
Date: 8 Sep 92 06:53:16 GMT
Reply-To: wagner@ike.ucdavis.edu
Organization: University of California, Davis

I got it from uunet.  Works very well.

---
John Wagner
Institute of Theoretical Dynamics
University of California, Davis

Bush/Quayle 1992: Saddam has a job, do you?

My opinions aren't even mine, much less those of anyone else...
+------------------------------------+----------------------------+
| jmwagner@ucdavis.edu               | Wenn Du meinen Quelltext   |
| jmwagner@ucdavis                   | verstehen kannst, bist Du  |
| {ucbvax, lll-crg}!ucdavis!jmwagner | mir einen Schritt voraus!  |
+------------------------------------+----------------------------+
Newsgroups: alt.toolkits.xview
From: jjohnson@tramp.Colorado.EDU (James Johnson)
Subject: canvas repaint
Organization: University of Colorado, Boulder
Date: Mon, 7 Sep 1992 18:36:01 GMT
From: downey@inmet.camb.inmet.com (Terry Downey)
Newsgroups: alt.toolkits.xview
Subject: xv_window_loop/xv_window_return
Date: 15 Sep 92 13:28:50 GMT
Distribution: usa
Organization: Intermetrics Inc, Cambridge MA

These functions are described (in XView 3.0 Reference Manual: Converting
SunView Applications) as replacements for window_loop and window_return.
The XView Reference Manual also mentions them, but O'Reilly Volume Seven
does not and a grep of the header files finds no evidence of either function.
As far as I know, everything (documentation and source) is Version 3.  Can
anyone tell me anything about these functions?

Thanks,
Terry Downey     downey@inmet.inmet.com
Newsgroups: alt.toolkits.xview
From: bmb@siren.cs.wayne.edu (Amir M. Baig)
Subject: Xview Scroll List Problem? Help Needed!
Organization: Wayne State University, Detroit, MI
Date: Tue, 8 Sep 1992 07:41:20 GMT

Hello Netters:


I am trying to create a scrolling list in xview using the
following code: 

		panel1 = (Panel)xv_get(subframe, FRAME_CMD_PANEL); 

		plitem =  (Panel_item)xv_create(panel1, PANEL_LIST,
		    PANEL_LIST_ROW_HEIGHT,   16,
		    PANEL_NOTIFY_PROC,     which_class,
		    NULL);

		plitem = (Panel_item)xv_create(panel1, PANEL_LIST,
		    PANEL_LIST_ROW_HEIGHT,   16,
		    PANEL_NOTIFY_PROC,     which_class,
		    NULL);


		for (i=0;i<10;i++)
		{
		  xv_set(plitem, PANEL_LIST_INSERT, i, NULL);
		  xv_set(plitem, PANEL_LIST_STRING, i, s1, NULL);
		}

		xv_set(subframe, 
		    XV_SHOW, TRUE,
		    NULL);

		xv_create (panel1, PANEL_BUTTON,
		    PANEL_LABEL_STRING,			"OK",
		    PANEL_NOTIFY_PROC,			done_ok, 
		    NULL);

But it does not show the whole list , just shows one 
scroll item  at a time. I want to show couple of entries in one
shot. 

Could some one help me please??

Thanks in advance.


Amir BAig

bmb@pandora.cs.wayne.edu
From: doehr@magellan.den.mmc.com (Brett B. Doehr)
Newsgroups: alt.toolkits.xview
Subject: Re: DevGuide
Date: 4 Sep 92 20:32:34 GMT
Organization: Martin Marietta Astronautics Group

In article <1992Sep3.145014.14503@adimail.uucp>, tel@adimail.uucp (Terry Monks) writes:
|> Where do you get DevGuide? Is it part of a release? Is it a
|> separate product/ If so how much does it cost?
|> 
|> Thanks
|> -- 
|> Terry Monks        Automata Design Inc    (703) 742-9400
|> 

From SunSoft.  No, it is not bundled in with a release of OpenWindows or
anything like that.  It is a separate product sold by SunSoft, a division
of Sun Microsystems (or something, it's hard to keep up).  Contact your
local/regional Sun sales rep for specific pricing, including any applicable
discounts.  A ballpark figure is ~$800 for initial license with media and
documentation, and ~$500 for additional licenses.  (Hold me to those figures,
they are based on a vague recollection of what I heard they went to with the
latest release, we purchased it nearly 2 years ago).

--Brett.  (Not associated with Sun but a happy Devguide user).

---------------------------------------------------------------
| Brett B. Doehr           Martin Marietta Astronautics Group |
| Voice: +1-303-977-1504   P.O. Box 179  Denver, CO 80201 USA |
| Fax:   +1-303-977-1530          Internet: doehr@den.mmc.com |
Newsgroups: alt.toolkits.xview
From: jjohnson@tramp.Colorado.EDU (James Johnson)
Subject: canvas resize
Organization: University of Colorado, Boulder
Date: Mon, 7 Sep 1992 18:42:16 GMT

Dear XVEIW Gods,

I am just starting to use XVIEW and already I am puzzled.
I compiled the line.c program from the O'Reilly book and
found that it did not work the way I had expected it to.
When ever the window is resized such that at least one
dimension is increased, then a REPAINT event is generated
and a new line is drawn across the canvas.  If, however,
the window is resized such that it is smaller in both the
x and y dimension, then the repaint procedure is NOT called.
Can any one expain to me why?  How can I get repaint events
if the window is made smaller in both dimensions.  HELP!

Here is the line.c program, I tried to add some things to
the canvas, but nothing seemed to work.

/*
 * line.c -- demonstrates installing a repaint routine in a canvas.
 * The routine is called whenever the canvas needs to be repainted.
 * This usually occurs when the canvas is exposed or resized.
 */
#include <X11/Xlib.h>
#include <xview/xview.h>
#include <xview/canvas.h>
#include <xview/xv_xrect.h>

main(argc, argv)
int argc;
char *argv[];
{
    Frame frame;
    void  canvas_repaint_proc();

    xv_init(XV_INIT_ARGC_PTR_ARGV, &argc, argv, NULL);

    frame = (Frame)xv_create(NULL, FRAME, NULL);

    (void) xv_create(frame, CANVAS,
        CANVAS_REPAINT_PROC,    canvas_repaint_proc,
        CANVAS_X_PAINT_WINDOW,  TRUE,
        XV_WIDTH,               WIN_EXTEND_TO_EDGE,	/* I added these	*/
        XV_HEIGHT,              WIN_EXTEND_TO_EDGE,	/* "			*/
        CANVAS_RETAINED,        FALSE,			/* "			*/
        NULL);

    xv_main_loop(frame);
}

/*
 * repaint routine draws a line from the top left to the bottom right
 * corners of the window
 */
void
canvas_repaint_proc(canvas, paint_window, dpy, xwin, xrects)
Canvas        canvas;         /* unused */
Xv_Window     paint_window;   /* unused */
Display      *dpy;
Window        xwin;
Xv_xrectlist *xrects;         /* unused */
{
    GC gc;
    int width, height;

    gc = DefaultGC(dpy, DefaultScreen(dpy));
    width = (int)xv_get(paint_window, XV_WIDTH);
    height = (int)xv_get(paint_window, XV_HEIGHT);

    XDrawLine(dpy, xwin, gc, 0, 0, width, height);
}

Thanks in advance,
jjohnson@unavco.ucar.edu
From: jon@prl.philips.co.uk (Jon Piesing)
Newsgroups: alt.toolkits.xview
Subject: XView style toolkit for PC
Date: 7 Sep 92 11:25:12 GMT
X-Newsreader: Tin 1.1 PL3

I have heard a rumour of a toolkit compatible with XView at the C source 
code level but running under Microsoft Windows. Does anybody know any more 
than this ?

Jon Piesing
Philips Research Labs
Redhill, UK
From: buzz@toxicavenger.bear.com (Buzz Moschetti)
Newsgroups: alt.toolkits.xview
Subject: Re: Devguide Drag Drop.
Date: 8 Sep 92 13:36:02 GMT
Organization: Bear, Stearns & Co. Inc.
In-reply-to: martin@Chemeng.Ed.Ac.Uk's message of 7 Sep 92 15:44:16 GMT

In article <1992Sep7.154416.27463@chemeng.ed.ac.uk> martin@Chemeng.Ed.Ac.Uk (Martin Spenceley) writes:
	[ ...deleted... ]
>  The gdd callback function is not letting the drop site for a text item
>  to be registered, claiming it is an illegal drop site. Is this because
>  the DevGuide drag drop implementation does not work with items other
>  than canvas, list and panel?

That is correct!

>  Anyone out there know how to use the DevGuides gdd functions to allow text items be used?

I don't believe it is possible with DevGuide gdd_ functions.  You probably can
implement a solution by directly creating and manipulating DND objects from
XView 3.0, but this means getting tangled up in the selection service, atoms,
and lengthy event handlers.  :-(

The UIT C++ library from Sun extends DND functionality to all objects.  Any
interface component may be dragged and/or dropped on, and the callback
interface is orthogonal across all components.
From: suraj@ariel.its.unimelb.EDU.AU (U.L.J.S.R Perera)
Newsgroups: alt.toolkits.xview
Subject: HELP: creating frames at fixed possition
Date: 10 Sep 92 08:05:48 GMT
Organization: University of Melbourne, Australia


I try to create a fixed frames giving its X and Y coordinates.
Where as for canvases and panels specification of XV_X and XV_Y accepted,
it is not so for in case of frames and menues. How can I do it?

Thanks in advance

Suraj.

suraj@ratchet.mame.mu.oz.au
From: 8328327c@levels.unisa.edu.au
Newsgroups: alt.toolkits.xview
Subject: How to delete textpane contents??
Date: 3 Sep 92 08:56:15 +0930
Organization: University of South Australia

I am having a problem trying to erase the contents of a text subwindow

This is the code:


xv_set(base->textpane, TEXTSW_READ_ONLY, FALSE, NULL);
i=textsw_erase(base->textpane, 1, TEXTSW_INFINITY);
xv_set(base->textpane, TEXTSW_READ_ONLY, TRUE, NULL);

i is given value 0.

I have tried textsw_delete, and using specific values rather than
TEXTSW_INFINITY without succes.


Any assistance by post to this group or direct to me would be appreciated.


Thanks in advance,
 Steve Swain.
Newsgroups: alt.war
From: jac54@cas.org ()
Subject: A battle for oil (was Re: The most decisive battle in history ?)
Organization: Chemical Abstracts Service, Columbus, Ohio
Date: Mon, 14 Sep 1992 19:23:26 GMT

In article <1992Sep14.142317.4973@ecl.psu.edu> clf@ecl.psu.edu writes:
>
>       When I proposed the battle of Stalingrad as most decisive battle in
>recent history I did so with the assumption that the Wehrmacht followed up the
>conquest of the city with the conquest of the oil rich regions to the south.

	[stuff deleted without prejudice]
>
>       Also, this operation could have been followed up with an invasion of
>Persia (Iran) and had a remote possibility (NOTE I state REMOTE) of linking
>up with Rommel's Afrika Korps, assuming they got supplied better.
>
>       Then would come India.  But the Persian gulf is MANY TIMES more
>important that India because of the oil.

	I have a map of the Middle East on the wall here.  Getting from
	the steppes into India would have been a hellish excercise.
	Northern Turkey and Iran are extremely mountainous, as is
	Afghanistan.  Defending those mountain passes against an
	armoured attack would exact a heavy toll on the attackers.  Even
	the Russians came unstuck in the Hindu Kush and the Pamirs.
	Logistic lines would have been constricted and horribly vulnerable.

	I suspect that the Germans could have been ground down to the
	nub assaulting those mountains.

	Incindentally, anybody know how extensive oil field development
	was in the Gulf at the time?  Iran had BP in there in 1913, but
	I seem to recall that there was none found in Saudi Arabia until
	after WWII.

	Alec Chambers.
>
>SS

What an unfortunate abbreviation!
Xref: sparky alt.war:1924 soc.history:8201
From: vvirrank@cc.Helsinki.FI (Ville Virrankoski)
Newsgroups: alt.war,soc.history
Subject: Battle of Hastings?
Date: 11 Sep 92 13:20:59 GMT
Organization: University of Helsinki, Finland
X-Reader: GNUS 3.13


Battle of Hastings was decisive...But what make it so decisive?
What kind of Europe we have now, if William had lost?

You could count this as alternate history, but still... 
Newsgroups: alt.war
From: dickwin@sequent.com (Dick Winningstad)
Subject: Re: The most decisive battle in history ?
Organization: Sequent Computer Systems Inc.
Date: Tue, 15 Sep 92 02:19:52 GMT

For my two bits:

How about the battle of Marathon?

Westen Civilization was saved from Oriental (Persian) despotism
which allowed the Greek civilization to continue to grow and in turn
allowed Western thought to flourish over Europe, America, and a good
chunk of the rest of the world.

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
+Dick Winningstad                                                    +
+                    Italian Wines are Fine                          +
+          I'd rather be on a Moto Guzzi in eastern Oregon.          +
+          Fourth gear curves at 7000 RPM are the greatest!          +
+dickwin@sequent.com                                                 +
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Newsgroups: alt.war