HDTenEightyP/NetNews huggingface dataset:
From: buzz@bear.com (Buzz Moschetti)
Newsgroups: alt.toolkits.xview
Subject: Re: Question about calling Text window
Date: 21 Dec 92 14:11:56 GMT
Reply-To: buzz@bear.com (Buzz Moschetti)
Organization: Bear, Stearns & Co. - FAST
In-reply-to: akpatel@uncc.edu's message of 20 Dec 92 03:15:46 GMT

In article <BzJFqA.AKG@unccsun.uncc.edu> akpatel@uncc.edu (Alpesh K Patel) writes:
   I am trying to call a text window (read-only) when the user presses something. 
[...]
       char *name = (char *)xv_get(item, PANEL_LABEL_STRING);

	   frame = xv_create(NULL,FRAME,NULL);

	   textsw=xv_create(frame,TEXTSW,
		   TEXTSW_FILE_CONTENTS, "/tmp/test/help_doc",
		   TEXTSW_READ_ONLY, TRUE,
		   NULL);
		   sbar=xv_get(textsw,TEXTSW_SCROLLBAR);
	   notify_interpose_event_func(xv_get(sbar, SCROLLBAR_NOTIFY_CLIENT),
	   monitor_scroll, NOTIFY_SAFE);

--->     xv_set(frame, XV_SHOW, TRUE, NULL);  <---

   }

Frames are created by default in an unmapped state.  Call xv_set()
as shown to pop it up after you create it.
From: rickg@eng.sun.com (The Tankster)
Newsgroups: alt.toolkits.xview
Subject: Re: HELP! Find all files of a directory in Xview
Date: 29 Dec 92 13:41:06 GMT
Reply-To: rickg@eng.sun.com
Organization: SunSoft, Inc.
NNTP-Posting-Host: irondude
In-reply-to: cpg@cs.utexas.edu's message of 29 Dec 1992 04:44:11 -0600


   In article <1992Dec24.055841.14790@dec8.ncku.edu.tw> wangbs@casd1.iie.ncku writes:
   >
   >   Hi, all:
   >       How can I program to find all files of a directory in Xview. I want to
   >   it like the "Open" option of "File" pop-up menu in Turbo C. In Turbo C, 
   >   you can select the Open option to list many files that you can select.
   >   Since I am not good at Xview, it is better to have a example code to show
   >   me.   HELP!!!
   >
   >               Thanks for any response!!!
   >                                           wangbs@casd1.iie.ncku.edu.tw
   >                                           wangbs@locust.iie.ncku.edu.tw 



according to the SunSoft toolkit strategy annoncement that
appeared awhile back, the XView toolkit itself will eventually
contain such an object.  i guess it depends on when you need
it...

<<tank
--

*********************************************************************

	Richard M. "Tank" Goldstein		rickg@Eng.Sun.COM
	Window Developer Environment,
	SunSoft, Inc.

	"I'm a scientist.  I don't think, I observe."
			-Dr. Clayton Forrester, MST3K

*********************************************************************
From: dpkemp@afterlife.ncsc.mil (David P. Kemp)
Newsgroups: alt.toolkits.xview
Subject: Re: HELP! Find all files of a directory in Xview
Date: 30 Dec 92 19:41:43 GMT
Organization: The Great Beyond

rickg@eng.sun.com writes:
>   wangbs@casd1.iie.ncku writes:
>   >       How can I program to find all files of a directory in Xview. I want to
>   >   it like the "Open" option of "File" pop-up menu in Turbo C. In Turbo C, 
>   >   you can select the Open option to list many files that you can select.
>   >   Since I am not good at Xview, it is better to have a example code to show
>   >   me.   HELP!!!
>
>according to the SunSoft toolkit strategy annoncement that
>appeared awhile back, the XView toolkit itself will eventually
>contain such an object.  i guess it depends on when you need
>it...
>

I don't know what Turbo C does, but it sounds like "gfm" is what you
want.  It pops up a scrolling list of files, lets you navigate, and
returns the filename and directory in separate strings when you
double-click a regular file.

For a simple example, check out the "rasview" program in the Devguide
examples directory.  Works like a champ for me.


-- 
   Dave Kemp   dpkemp@afterlife.ncsc.mil 
-----------------------------------------------------------------------------
"Washington [D.C.] is a city of Southern efficiency and Northern charm"
     -- John F. Kennedy
Newsgroups: alt.toolkits.xview,uw.sun,pnw.sys.sun
From: bigac@carson.u.washington.edu (Aaron Ching)
Subject: How to specify the panel items for PANEL_LIST_STRINGS, in software
Organization: University of Washington, Seattle
Distribution: pnw
Date: Tue, 22 Dec 1992 20:52:47 GMT

I'm trying to declare a data type which can be used to specify the panel items for the PANEL_LIST_STRINGS in Xview.  I've tried the following:
...
static char item[][20] = {"item1","item2","item3",NULL};
...
	xv_set(Panel_list,
		PANEL_LIST_STRINGS, item,
		NULL);
...
This will display the "item1" only, because of the "\0" after the string.  I know I can put the items into the xv_set function, ie.
	...
		PANEL_LIST_STRINGS, "item1", "item2", "item3", NULL
	...
However, I have a long list of items which are read from another file during runtime.  
I'm now using a for loop to put the items onto the panel list, ie.
	... 	for (i=0;i<100;i++)
			xv_set(Panel_list,
				PANEL_LIST_STRING, i, item[i],
				NULL);
	...
The problem is: the panel list keeps flashing until all the items are added.
My question is: can I declare a variable so that I can specify all the items at one time without the use of for loop?

Someone has just suggested me to use Attr_avlist.  But the question still remains:  How can I specify the panel items in run-time w/o the for loop?

Thanks for your attention and help, in advance.

-- Aaron Ching

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
   Aaron Ching -- System Analyst Programmer
	Dept. of Lab Medicine
	University of Washington Medical Center
	aaron@lux.labmed.washington.edu
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

Newsgroups: alt.toolkits.xview,comp.windows.x
From: carl@crazyman.med.ge.com (Carl Crawford)
Subject: minimizing flashing by preserving colors in colormap
Reply-To: carl@crazyman.med.ge.com (Carl Crawford)
Organization: GE Medical Systems, Milwaukee,  WI
Date: Mon, 28 Dec 92 14:40:43 GMT


my xview application sometimes allocates more slots than are available
in the system colormap (cm).  when this happens, xview (xlib ?) gives
me a colormap segment (cms) that begins at location zero in the system
cm and maps it in when necessary.  the colors that i use for the first
few locations are used by xview and openwindows for background,
foreground, and highlighting by other applications.  to minimize
flashing i am trying allocate a slightly larger cm and preserve these
special locations.  using some kludgey code i am able to figure out
what to put in the locations.  does anyone know of a better way to
prevent the flashing? if not, is there a robust method to figure out
the number of locations to preserve and their contents?
--
Carl R. Crawford	   Voice: 414-521-6572
GE Medical Systems	   Fax: 414-521-6549
P.O. Box 414, W-875	   Internet: crawfordc@med.ge.com
Milwaukee, WI 53201
From: wangbs@casd1.iie.ncku
Newsgroups: alt.toolkits.xview
Subject: HELP! Find all files of a directory in Xview
Date: 24 Dec 92 05:53:35 GMT
Organization: CASD Lab.


   Hi, all:
       How can I program to find all files of a directory in Xview. I want to
   it like the "Open" option of "File" pop-up menu in Turbo C. In Turbo C, 
   you can select the Open option to list many files that you can select.
   Since I am not good at Xview, it is better to have a example code to show
   me.   HELP!!!

               Thanks for any response!!!
                                           wangbs@casd1.iie.ncku.edu.tw
                                           wangbs@locust.iie.ncku.edu.tw 
Newsgroups: alt.toolkits.xview,comp.windows.open-look
From: hue@island.COM (Pond Scum)
Subject: Re: minimizing flashing by preserving colors in colormap
Organization: Island Graphics Corp.
Date: Thu, 31 Dec 1992 07:54:29 GMT

carl@crazyman.med.ge.com (Carl Crawford) writes:
>my xview application sometimes allocates more slots than are available
>in the system colormap (cm).  when this happens, xview (xlib ?) gives
>me a colormap segment (cms) that begins at location zero in the system
>cm and maps it in when necessary.  the colors that i use for the first
>few locations are used by xview and openwindows for background,
>foreground, and highlighting by other applications.  to minimize
>flashing i am trying allocate a slightly larger cm and preserve these
>special locations.  using some kludgey code i am able to figure out
>what to put in the locations.  does anyone know of a better way to
>prevent the flashing? if not, is there a robust method to figure out
>the number of locations to preserve and their contents?

I don't know a really good way.  On my machine, with the order that I
start things and the .Xdefaults that I use, the first two colors in
the colormap are white and black.  The next four are various shades
of blue used by olwm.  The next four are various shades of grey used
by my XView applications.  If I copy those ten colors into the bottom
of a cms, and "lie" about it not being a control cms (so xview continues
to use the the same pixel values to draw), I don't have too much of a
flashing problem.  If I started my xterms before I started my XView
applications, the greys would probably start later in the colormap, and
I would need to copy more than the first ten colors into my colormap to
avoid most of the flashing.  I actually don't bother doing this most of
the time, I just make a control CMS to make sure the application is
consistent with itself and live with whatever flashing occurs.  I know
someone who always copies the first sixteen entries out of the default
colormap, feeling that the first sixteen colors are probably the ones you
always want to see.

Colormap segments are easy to use but there are some things you can't do
with them.  I have one application which needs 128 colors in an rgb-232
colormap, plus about a dozen more who's value I don't know when I create
the cms, so I make a 128 color cms and attach it to the window, then get
the X colormap for the window and XAllocColor a dozen more as needed.
It seems to work ok.

-Jonathan		hue@island.COM
Newsgroups: alt.toolkits.xview
From: drl@vuse.vanderbilt.edu (David R. Linn)
Subject: underlining in a ttysw (OW 3.0)
Originator: drl@jester
Keywords: ttysw term.underliningStyle
Organization: Vanderbilt University School of Engineering, Nashville, TN, USA
Distribution: na
Date: Sat, 2 Jan 1993 23:47:30 GMT

Can anyone speak authoritively about whether underlining in a ttysw
should work in OW 3.0?  I noticed today that manual pages displayed in
an OW3 cmd-tool have no underlined words, when the same pages displayed
in an xterm or the SunView cmd-tool do have underlined words.

In exmaining the ttysw source in the xview3 stuff from the contrib area on
export.lcs.mit.edu, I see that if OWI18N is defined, underlining appears
to be disabled.  Is OW3 compiled with this macro defined?

	David
-- 
David R. Linn, System/Mail/News Manager	| INET: drl@vuse.vanderbilt.edu
Disclaimer: I speak only for myself	| Phone: [+1] 615-343-6164
      "Some do, some don't and that's the way of the world."
From: wee@cs.ucdavis.edu (Chris Wee)
Newsgroups: alt.toolkits.xview
Subject: Customizing DevGuide
Date: 30 Dec 92 04:01:30 GMT
Reply-To: wee@cs.ucdavis.edu
Organization: Computer Science, University of California at Davis.

Hi all, I've just started to use DevGuide 3.0 and I wondered if there was a way
to customize some of the default code DevGuide (gxv) inserts into the callback functions.

An example is the fputs code gxv puts into every callback function.
It would be nice if this code were #ifdef'ed so that I can turn it on and off
when I'm trying to debug the UI interactions.

    fputs("tutorial: tutorial_main_base_win_style_notify_callback\n", stderr);

Is there a way to do this easily? I guess, I'll write a macro to re-map the
fputs function into an run-time if () test.

thanks!
---
-chris
From: rickg@eng.sun.com (The Tankster)
Newsgroups: alt.toolkits.xview
Subject: Re: HELP! Find all files of a directory in Xview
Date: 31 Dec 92 09:37:21
Organization: SunSoft, Inc.
	<RICKG.92Dec29084107@irondude.eng.sun.com> <hue.725789508@coney>
Reply-To: rickg@eng.sun.com
NNTP-Posting-Host: irondude
In-reply-to: hue@island.COM's message of Thu, 31 Dec 1992 08:11:48 GMT


   Newsgroups: alt.toolkits.xview
   From: hue@island.COM (Pond Scum)
   Organization: Island Graphics Corp.
   Date: Thu, 31 Dec 1992 08:11:48 GMT

   rickg@eng.sun.com (The Tankster) writes:
   >according to the SunSoft toolkit strategy annoncement that
   >appeared awhile back, the XView toolkit itself will eventually
   >contain such an object.  i guess it depends on when you need it...

   I guess it also depends on whether you think the one that comes with
   XView will satisfy your needs.  It's nice to have a canned one if
   you're not up for writing one yourself, but I'm sure there are a lot
   of software developers who can think of really neat features to put in
   a file requester won't be in the one supplied with a future version
   of XView.

exactly why the XView implementation takes the "kit" approach
rather then forcing you to start from scratch when the File
Chooser object is not exactly what you need (e.x. the "Load
Files" dialog in MailTool).  though those who do use the File
Chooser object have the benefits of having a look and feel that
is consistant with the rest of the OW desktop and as well as
the design input of our HI people and user testing.

in reality, it does not appear that our respective approaches
are dissimilar (sorry, i can't post code at this juncture). glad
to see that someone out there is doing useful things with XView
extensions!

<<tank




--

*********************************************************************

	Richard M. "Tank" Goldstein		rickg@Eng.Sun.COM
	Window Developer Environment,
	SunSoft, Inc.

	"I'm a scientist.  I don't think, I observe."
			-Dr. Clayton Forrester

*********************************************************************
From: cpg@cs.utexas.edu (Carlos M. Puchol)
Newsgroups: alt.toolkits.xview
Subject: Re: HELP! Find all files of a directory in Xview
Date: 29 Dec 1992 04:44:11 -0600
Organization: Department of Computer Sciences, UT Austin
NNTP-Posting-Host: thor.cs.utexas.edu

In article <1992Dec24.055841.14790@dec8.ncku.edu.tw> wangbs@casd1.iie.ncku writes:
>
>   Hi, all:
>       How can I program to find all files of a directory in Xview. I want to
>   it like the "Open" option of "File" pop-up menu in Turbo C. In Turbo C, 
>   you can select the Open option to list many files that you can select.
>   Since I am not good at Xview, it is better to have a example code to show
>   me.   HELP!!!
>
>               Thanks for any response!!!
>                                           wangbs@casd1.iie.ncku.edu.tw
>                                           wangbs@locust.iie.ncku.edu.tw 

I picked this from the comp.sys.sun.misc newsgroup some time ago :-)

Good luck!
From: gstilphe@apollo.mcl.bdm.com (Gerald Stilphen)
Subject: Re: How to specify the panel items for PANEL_LIST_STRINGS, in software
Date: Wed, 23 Dec 92 13:07:22 GMT
Organization: BDM International, Inc.
Distribution: pnw

In article <1992Dec22.205247.5092@u.washington.edu>, bigac@carson.u.washington.edu (Aaron Ching) writes:
>I'm trying to declare a data type which can be used to specify the panel items for the PANEL_LIST_STRINGS in Xview.  I've tried the following:
>...
>static char item[][20] = {"item1","item2","item3",NULL};
>...
>	xv_set(Panel_list,
>		PANEL_LIST_STRINGS, item,
>		NULL);
>...
>This will display the "item1" only, because of the "\0" after the string.  I know I can put the items into the xv_set function, ie.
>	...
>		PANEL_LIST_STRINGS, "item1", "item2", "item3", NULL
>	...
>However, I have a long list of items which are read from another file during runtime.  
>I'm now using a for loop to put the items onto the panel list, ie.
>	... 	for (i=0;i<100;i++)
>			xv_set(Panel_list,
>				PANEL_LIST_STRING, i, item[i],
>				NULL);
>The problem is: the panel list keeps flashing until all the items are added.

I don't know how to do it other than using the above loop.  To control any
flashing I usually do the following:

    xv_set(Panel_list, XV_SHOW, FALSE, NULL);

    do the list filling with your loop above.

    xv_set(Panel_list, XV_SHOW, TRUE, NULL);

It works for me and I feel that I have a lot of items in my lists.

Gerald E. Stilphen

Newsgroups: alt.toolkits.xview
From: wangbs@casd1.iie.ncku
Subject: HELP!! Display a window to both workstations..
Organization: CASD Lab.
Date: Thu, 24 Dec 1992 06:07:05 GMT


  Hi, all:
      How can I program to display windows to other machine from the machine
  which my application runs. The windows also display on the machine which 
  the application runs. It is better to have a example code....

                  Thanks for any response & Happy new year !!!

                                       wangbs@casd1.iie.ncku.edu.tw
                                  or   wangbs@locust.iie.ncku.edu.tw
Newsgroups: alt.toolkits.xview
From: lance@bach.udel.edu (Daniel A Lentz)
Subject: itimers and strange problems
Organization: University of Delaware
Date: Wed, 23 Dec 1992 00:13:37 GMT

 I have been playing around with xview and devguide and making a simple
 digital clock.  One problem I'm having is that when the application
 runs for long periods of time (~10 hrs) it will crash the system.

 I have a feeling it's related to my use of itimers, which is as follows:
 I define a 1 second timer and call notify_set_itimer_func, which sets
 up the window repaint procedure as the itimer func.  Ok, so then
 every second the repaint proc gets called and paints the correct
 digits for the clock.  That's basically it.  Does anyone have any
 suggestions?  Is there some function I should call from within the
 repaint to "dismiss" an itimer or something?


-- 
o o o o o o                             o o               o o o o o o o o o 
 o o o o o     lance@bach.udel.edu       o o  Good         o o o o o o o o o
o o o o o o    lance@diu.cms.udel.edu   o o     Morning!  o o o o o o o o o
 o o o o o                               o o               o o o o o o o o o
Newsgroups: alt.toolkits.xview,rec.games.go
From: kautz@research.att.com
Subject: Xview Go demo program available
Date: Tue, 22 Dec 1992 17:38:35 GMT
Distribution: alt
Reply-To: kautz@research.att.com
Organization: AT&T Bell Laboratories

Available:
    gogo version 1.0 -- a simple multi-player go board display program,
    for X11 using the xview toolkit

Gogo creates a single process which displays the same board on up to
12 X11 displays.  Gogo keeps track of whose turn it is to play, but no
restrictions about legal moves are enforced.  It also has a primitive
journaling mechanism, so games can be saved and restarted.

Gogo may be of interest to beginning xview programmers, as an
example of how to create and manage multiple displays.

For a copy of the source, please send me email.  It requires the xview
toolkit, and either C++ or an ansii-C compiler.

--
---- Henry Kautz

:internet: 	kautz@research.att.com
:uucp:		allegra!kautz		
Newsgroups: alt.war
From: cmort@NCoast.ORG (Christopher Morton)
Subject: Re: war list
Reply-To: cmort@ncoast.org (Christopher Morton)
Organization: North Coast Public Access *NIX, Cleveland, OH
Date: Mon, 28 Dec 1992 21:58:27 GMT
Followup-To: alt.war

As quoted from <1992Dec28.171033.8845@nntp.hut.fi> by c34657b@saha.hut.fi (Tuomas Viljanen):

> >Philipines. Doesn't the PLA know communism is dead?
> 
> No, my German teacher used to say: "Einige lernen nie".

That's *N*P*A*.  The PLA KNOWS that communism is dead.  They're in it for the
money! :)



-- 
------------------------------------------------------------------  

"Well whose opinions did you THINK these were...?" 
------------------------------------------------------------------  
Newsgroups: alt.war
From: mike@aloysius.equinox.gen.nz (Mike Campbell)
Newsgroups: alt.war
Subject: Re: Warfare in the Middle Ages 
Distribution: world
Date: Tue, 29 Dec 92 07:42:08 GMT
Organization: Me? Organized?


In article <1992Dec24.034607.26765@fcom.cc.utah.edu> syl5487@u.cc.utah.edu writes:

  > 
  > How important were archers and crossbowmen during the middle ages?

As with most such questions, it depended on who, where and when you 
were!

Presumably you know the background of such battles as Agincourt, 
Poitiers & Crecy, where the English were allowed to stand on the 
defence, and the French blithley rode/walked into trouble.

There was the battle of Falkirk (I think) where the Scots were forced 
to sit stationary in large "pike-blocks" or schiltrons due to the 
presence of English cavalry, and were shot to peices by longbowmen.

Generally medieval missile troops could provide real trouble for their 
opponents, but they were very vulnerable to heavy cavalry.  The 
English solved this by hiding behind stakes.  Most other nations 
used such troops in much smaller numbers, so they could be protected 
by spearmen.  King Richard I (the Lionheart) used mixed crossbow/spear 
units against the Moslems in the Outremer.

Contrary to popular belief, the longbow had no great advantage over 
the crossbow.  The standard method of using crossbows was for one chap 
to load, while another took the loaded crossbows and fired them.  When 
the loader got tired they could swap duties.  With this sort of drill 
the rate of fire for 2 men with crossbows was comparable to longbows 
over a period of 10 minutes or more.  Moreover the fire was 
"steadier", as the firer had no strain to hold as he took aim, and 
both could be protected by large shields (pavise) or mantlets for most 
of the drill.

All IMHO, of course :-)


  > Yes I am a new poster.

Welcome, and congratulations on getting this far!


Mike Campbell, Christchurch, New Zealand
mike@aloysius.equinox.gen.nz
From: kwp@wag.caltech.edu (Kevin W. Plaxco)
Newsgroups: alt.war
Subject: war list
Date: 26 Dec 1992 20:58:48 GMT
Organization: California Institute of Technology, Pasadena, CA
NNTP-Posting-Host: sgi1.wag.caltech.edu

It's that time again.  I count 24 wars raging this xmas season.

I define war:  A political conflict in which at least 1000 people
have died in one year and at least 100 people per year every year
since that year.

Western Hemisphere.

Guatamala.  Central America's last war hangs on.

Columbia.   Just when you thought it was all over...

Peru.       How much longer can Sendero hold out?

Bolivia.    Haven't heard much about this one lately, Eh?


Eastern Hemisphere:

Europe:

Former Yuogoslavia.  Nuff said.

Question. Anyone know if the basqu, catalonian or IRA sepratists movments
quailify?


Asia:

FSU.  1)Georgia, 2)Armenia, 3) Azerbijian. That about does it for the FSU.

Iraq.  1) The Kurds, 2) the Shites.

Lebanon.  Who isn't fighting who?

India. 1) Kashmire,  2) Sikkim,  3) Punjab

Sri Lanka.  The Tamils still want their homeland.

Burma.   Karen Rebels are still duking it out with the central government.

Cambodia.  Things are still a bit hot there.

Indonesia.  1) Timor, 2) Accra, 3) Irian Jiya

Philipines. Doesn't the PLA know communism is dead?


Africa.  

Morocco.  Still trying to knock off SWAPO.

Liberia.  Another Lebanon in africa story.

Angola.   May God damn Savimbi.

Mozambique.  Does RENAMO even make rationalizations as to why they fight?

Ruwanda.  Peace accords are moving ahead smartly.

The Sudan.  Islamic fundamentalists again.

Somalia.  'Nuff said.


Questions.

Do Ethiopia, Zaire, Chad, and Namibia really belong off the list?

Merry Christmas.
From: artist1@rdrc.rpi.edu (Artist # 1)
Subject: Japan in Manchuria: looking for booklist
Date: Sun, 3 Jan 1993 05:55:01 GMT

Could someone suggest some good books (preferably in print) about
Japan's occupation of Manchuria?

Thanks in advance,

David Blair
(artist1@rdrc.rpi.edu)

Newsgroups: alt.war