HDTenEightyP/NetNews huggingface dataset:
From: mattb@ssc-vax (Matt Baney)
Newsgroups: alt.toolkits.xview,comp.windows.open-look
Subject: Re: Notify_client numbers
Date: 19 Aug 92 15:11:22 GMT
Reply-To: mattb@ssc-vax.boeing.com (Matt Baney)
Organization: Boeing Aerospace & Electronics

In article <1992Aug18.150001.25725@msuinfo.cl.msu.edu> adc@tardis.msu.edu writes:
>
>Is there a range of integers that I should use for Notifier client numbers,
>or can I use any old number?
>
Along this same line?  Are there any restrictions on what keys can
be used for XV_KEY_DATA values when attaching information to an 
object??

I had a problem using the same XV_KEY_DATA key to attach some data
to a frame and two child panels of the frame??

  xv_set(frame, XV_KEY_DATA, 4, some_number, ... NULL);
  xv_set(panel1, XV_KEY_DATA, 4, some_number, ..  NULL);
  xv_set(panel2, XV_KEY_DATA, 4, some_number, ... NULL);

  This would bomb whenever anything was done that caused a
  re-painting re-sizing of the frame??

  I solved the problem by using different keys:

  xv_set(frame, XV_KEY_DATA, 4, some_number, ... NULL);
  xv_set(panel1, XV_KEY_DATA, 13, some_number, ..  NULL);
  xv_set(panel2, XV_KEY_DATA, 13, some_number, ... NULL);

DOes anyone know if there are any restrictions or key numbers you
shouldn't be using??

Also what is the best way to get answers about this XVIEW stuff??  I
have not gotten much help at all from the peole at SUN, and the
answers I have gotten were usually either wrong, or the answer was
that I shouldn't be doing that anyway??





-- 
|  Matt Baney         |     Boeing Defense and Space Group   |
| "I can't tolerate   | UUCP:     ..!uw-beaver!ssc-vax!mattb |        
| intolerant people!" | Internet:   mattb@ssc-vax.boeing.com |
|---------------------|--------------------------------------|
From: black@seismo.CSS.GOV (Mike Black)
Newsgroups: alt.toolkits.xview
Subject: How do I refresh the screen?
Date: 13 Aug 92 11:34:23 GMT
Distribution: usa
Organization: Center for Seismic Studies, Arlington, VA

I just started using 'guide'...a pretty nice interface builder.  I'm
also new to XView.  The book is pretty thin on guide and I'm stuck
on a rather embarassingly simple point.  I'm able to draw a line
in the canvas but when I redraw the line it does not get updated
unless I select 'refresh' from the window menu.  I've tried calling
the repaint function myself and XFlush(), neither of which is updating
the canvas.  So what am I doing wrong??  I'd be glad to mail the source
to anyone who would be willing to help (fairly small at this point).
Thanx in advance...
Mike...
-- 
-------------------------------------------------------------------------------
: usenet: black@beno.CSS.GOV   :  land line: 407-676-2923  : I want a computer:
: real home: Melbourne, FL     :  home line: 407-242-8619  : that does it all!:
-------------------------------------------------------------------------------
From: filfeit@rael.Tymnet.COM (Fil Feit)
Newsgroups: alt.toolkits.xview
Subject: Scrolling list - columns
Date: 20 Aug 92 11:46:02 GMT
Reply-To: filfeit@rael.Tymnet.COM
Organization: Sun Microsystems

ISO - HELP!

I'm trying to create a scrolling list, multiple selections allowed.
The list consists of three columns, and the problem is lining up the
columns.  Is there an easy solution? 

I realize that I can probably get the width of each string, and pad it
with spaces to line up columns, or switch to a non-proportional font
for the scrolling list.  Using a text window was also suggested, but I
think that selecting would be much more difficult.

Thanks in advance.

--f2
Hey, I'm getting better at this stuff.  Really.
Newsgroups: alt.toolkits.xview
From: gam@beta.lanl.gov (Gim Mark)
Subject: Re: Notify_client numbers
Organization: Los Alamos National Laboratory
Date: Fri, 21 Aug 1992 12:53:30 GMT

In article <1992Aug20.152222.4105@msuinfo.cl.msu.edu> adc@tardis.msu.edu writes:
>> 
>> DOes anyone know if there are any restrictions or key numbers you
>> shouldn't be using??
>
>The integers that you use should be unique.  The best way to get a
>unique integer is to use the xv_unique_key() routine.

But note the warning in the XView Reference Manual:  "the uniqueness
of any particular key is _not_ guaranteed [by xv_unique_key()] since
the value returned is generated simply by incrementing a pre-defined
'unique' value."

Graham Mark
Los Alamos National Laboratory
(505)667-8147
From: randy@pippin.ee.usu.edu (Randy Ray West)
Newsgroups: alt.toolkits.xview
Subject: XView version of XWarpPointer available??
Date: 19 Aug 92 22:27:12 GMT
Distribution: alt.toolkits.xview
Organization: Utah State University Dept EE Logan, Utah

Hi.

I've seen applications that warp the pointer to a popup after it is
brought up.  I would like to include that feature in a app. I writing.
Is there an attribute in XView that will do this for me.  Xlib has
XWarpPointer but I don't think that will do it for me, as I have no
idea where the popup window is going to show (I'm using olwm).

B.T.W., while I'm on the subject, is there a way to set where a popup
window is going to appear on the root window?  

I'd appreciate any help. Please email me.
--
-----------------------------------------------------------------------------
Randy R West         (randy@pippin.ee.usu.edu)
Space Dynamics Laboratory\Utah State University
Logan, Utah

DISCLAIMER:
My opinions and/or statements do not necessarily represent my employer's.
_____________________________________________________________________________
Newsgroups: alt.toolkits.xview
From: dave@p.igp.ethz.ch (Dave Wilkins)
Subject: centred button labels
Keywords: button, label, centre
Reply-To: dave@p.igp.ethz.ch
Organization: Inst. of Geodesy and Photogrammetry, ETH Zuerich
Date: Fri, 14 Aug 1992 15:26:44 GMT

Does anyone know a neat way to get the text inside a button to be
centred?  In SunView I had a series of buttons all the same width,
with the text always centred (using panel_button_image()).  But
in XView if a button width is specified with PANEL_LABEL_WIDTH,
the text just gets left justified.  Therefore, I am having problems
to get my interface to look good.

If anyone knows a solution, I'd be please to hear it.  Or is it
simply not possible (without using panel_button_image() again,
which I don't really want to do)?

Thanks,
Dave.
From: rickg@eng.sun.com (Richard M. "The Tankster" Goldstein)
Newsgroups: alt.toolkits.xview
Subject: Re: Creating xview attribute lists dynamically?
Date: 18 Aug 92 08:53:32
Organization: SunSoft, Inc.
Distribution: world
Reply-To: rickg@eng.sun.com
NNTP-Posting-Host: irondude
In-reply-to: ashoks@duckjibe.Eng.Sun.COM's message of 17 Aug 1992 22:36:56 GMT


   From: ashoks@duckjibe.Eng.Sun.COM (Ashok Singhal)
   Newsgroups: alt.toolkits.xview
   Date: 17 Aug 1992 22:36:56 GMT
   Organization: Sun Microsystems, Mt. View, Ca.

   How does one build attribute lists dynamically (i.e. at run time)
   so that they can be used to call xv_set(), xv_get(), xv_create() instead
   of a static argument list at compile time?

   Yes, I have RTFM (XView Programming Manual) but I have not found the answer
   there.  From the manual it appears that attr_create_list() function is
   called with a an argument list that is fixed at compile time; what I 
   want is a list that is determined at run time (actually I want to 
   call xv_set(), xv_create() etc from an interpreter with the argument 
   attribute list taken from a variable in the interpreter).  The manual
   mentions attr_make() but there isn't enough documentation about that
   procedure for me to figure out if I can use it.

   If someone knows how to do this, I'd appreciate some help.  I can also
   write my own procedure to create an attribute list if I knew the format
   of the list, so if anyone know that I'd appreciate that information as well.

one option is to create an array of Attr_attribute declaired 
statically of ATTR_STANDARD_SIZE (note that attribute lists cannot
excede this number anyway, so it's no real loss to decair it
statically) and fill it in when you know what to put into it,
NULL terminate the list and then supply it with the ATTR_LIST
attribute.


<<tank
--

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

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

	SLACK is the free car wash that comes with a fill-up
	of "Bob."
			-Book of SubGenius

*********************************************************************
From: marc@autodesk.com (Marc Ramsey)
Newsgroups: alt.toolkits.xview
Subject: Re: centred button labels
Date: 14 Aug 92 20:05:42 GMT
Reply-To: marc@autodesk.com
Organization: Autodesk, Inc.

>Does anyone know a neat way to get the text inside a button to be
>centred?

I wouldn't exactly call it 'neat', but the easy way is to prefix
the label with the requisite number of spaces.  You won't always
be able to center precisely, but it's close enough that no one is
likely to notice...

Newsgroups: alt.toolkits.xview
From: tony@marsh.cs.curtin.edu.au (Tony Lock)
Subject: Availability on DECStations, SGI's
Organization: Curtin University of Technology
Date: Wed, 12 Aug 1992 15:18:05 GMT

I am looking for any information regarding the current status of
the XVIEW (version 3) toolkit on either DEC Stations or SGI Indigo
machines. Does anyone have either a port or knowledge of such? At
present version 2 of the toolkit does appear to be available.

Thanks,

Tony Lock
Curtin University
Western Australia

Newsgroups: alt.toolkits.xview
From: adc@tardis.msu.edu (Alan D. Cabrera)
Subject: Re: Notify_client numbers
Reply-To: adc@tardis.msu.edu
Organization: Michigan State University
Date: Fri, 21 Aug 92 14:03:42 GMT

In article 29612@newshost.lanl.gov, gam@beta.lanl.gov (Gim Mark) writes:
> In article <1992Aug20.152222.4105@msuinfo.cl.msu.edu> adc@tardis.msu.edu writes:
> >> 
> >> DOes anyone know if there are any restrictions or key numbers you
> >> shouldn't be using??
> >
> >The integers that you use should be unique.  The best way to get a
> >unique integer is to use the xv_unique_key() routine.
> 
> But note the warning in the XView Reference Manual:  "the uniqueness
> of any particular key is _not_ guaranteed [by xv_unique_key()] since
> the value returned is generated simply by incrementing a pre-defined
> 'unique' value."
> 

I believe that for his situation, generating keys for XV_KEY_DATA keys
to attach data to public XView objects, they are unique; if he sticks
to using xv_unique_key() to generate keys.

BTW, I've been hunting down references to xv_unique_key() and don't
remember where they were.  The index is no help for my XView 2.0
manual.  Where can I find your quote?

Thanks.


---
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

Xref: sparky alt.toolkits.xview:771 comp.windows.open-look:3479 comp.windows.x:15303
From: obourdon@France.Sun.COM (Olivier Bourdon - Sun ICNC)
Newsgroups: sun.open-windows,alt.toolkits.xview,comp.windows.open-look,comp.windows.x
Subject: How to block input for a particular XView application
Date: 17 Aug 1992 11:29:36 GMT
Organization: SunConnect
Distribution: world
NNTP-Posting-Host: sunalps.france.sun.com

I have an application with a main window and some another windows (not popups but
it does not matter as the main window is the XV_OWNER of the secondary ones).
I have a button in one of the secondary window which is supposed to do a SAVE of some
internal data structure in a file and this operation may take a long time.

I managed to recover the full hierarchy of windows and set each of the frames
I found to a busy state but if I click on any item in my interface while all
frames are in busy=true state then all my events are still buffered and I don't
wnat this.

Second, I tried to modify the WIN_X_EVENT_MASK of the frames I set to busy
but it does not prevent events to occur within let's say panels contained by those frames.
I don't want to store a table of win/frame/panels with their X_EVENT_MASKS and restore
this list after the SAVE is completed.

Is there some XView /XLib functionality that I missed ?

Thanks for any answer/pointer
Olivier

-- 
+---------------------------------+-----------------------------------+
|Olivier BOURDON                  | Address : SUN MICROSYSTEMS        |
|E-Mail : obourdon@France.Sun.COM |           International Center for|
|Tel : +33 76 41 42 19            |           Network Computing       |
|Fax : +33 76 41 42 41            |           32 av du Vieux Chene    |
|                                 |           38 240 Meylan Zirst     |
|member of OSI development team   |                  FRANCE           |
+---------------------------------+-----------------------------------+
From: cha@aero.org (Stephen S. Cha)
Newsgroups: alt.toolkits.xview
Subject: mouse movement
Date: 12 Aug 92 22:22:54 GMT
Distribution: usa
Organization: The Aerospace Corporation, El Segundo, CA

(Sorry if this is a FAQ. I was unable to find an answer 
from the latest FAQ posted by lee@sq.sq.com on Aug 7.)
_
I am new to xview programming and am having difficulty
having menu pop up when right mouse button (nothing else)
is pressed. I used the following code:

switch (event_action(event)) {
  case ACTION_SELECT:
    do_something();
    break;
  case ACTION_ADJUST:
    do_something_else();
    break;
  case ACTION_MENU:
    menu_show(menu, window, event, NULL);
    break;
}

I can get the menu displayed when I press SHIFT && Right button.
I also tried macro event_right_is_down(event) or event_is_button(event). 
But, pressing right button alone doesn't seem to get the
attention I think it should get!

Can someone also help me how I can draw grid on a canvas?

thanks in advance,

steve cha

The Aerospace Corporation

ps. I have a copy of xview programming manual (by Dan Heller).
    Are there other (perhaps better) references? 
Xref: sparky alt.toolkits.xview:781 comp.windows.open-look:3513
From: gnreddy@cbnewsf.cb.att.com (G.Narotham Reddy)
Newsgroups: alt.toolkits.xview,comp.windows.open-look
Subject: Any mailing list for SunPHIGS/PEX
Date: 19 Aug 92 12:53:48 GMT
Followup-To: poster
Organization: AT&T


Would like to know if there is any mailing list for SunPHIGS/PEX.


Regards,

Narotham
Xref: sparky alt.toolkits.xview:776 comp.windows.open-look:3496
From: rickg@eng.sun.com (Richard M. "The Tankster" Goldstein)
Newsgroups: alt.toolkits.xview,comp.windows.open-look
Subject: Re: Notify_client numbers
Date: 18 Aug 92 08:48:20
Organization: SunSoft, Inc.
Reply-To: rickg@eng.sun.com
NNTP-Posting-Host: irondude
In-reply-to: adc@tardis.msu.edu's message of 18 Aug 92 15:00:01 GMT


   From: adc@tardis.msu.edu (Alan D. Cabrera)
   Newsgroups: alt.toolkits.xview,comp.windows.open-look
   Date: 18 Aug 92 15:00:01 GMT
   Organization: Michigan State University


   Is there a range of integers that I should use for Notifier client numbers,
   or can I use any old number?



Notify_client is basically an unsigned long, so "any old"
non-negative number will do technically.  if you are using
the Notifier with an XView program, your client handle should
be unique from other XView handles.


<<tank

--

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

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

	SLACK is the free car wash that comes with a fill-up
	of "Bob."
			-Book of SubGenius

*********************************************************************
Xref: sparky alt.toolkits.xview:775 comp.windows.open-look:3495
From: adc@tardis.msu.edu (Alan D. Cabrera)
Newsgroups: alt.toolkits.xview,comp.windows.open-look
Subject: Notify_client numbers
Date: 18 Aug 92 15:00:01 GMT
Reply-To: adc@tardis.msu.edu
Organization: Michigan State University


Is there a range of integers that I should use for Notifier client numbers,
or can I use any old number?


---
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
Newsgroups: alt.toolkits.xview
From: bcutter@pdnis.paradyne.com (Brooks Cutter)
Subject: Re: centred button labels
Keywords: button, label, centre
Organization: AT&T Paradyne
Date: Sat, 15 Aug 92 03:09:25 GMT

In article <1992Aug14.152644.614@bernina.ethz.ch> dave@p.igp.ethz.ch writes:
>Does anyone know a neat way to get the text inside a button to be
>centred?

For Panel Buttons, there is PANEL_LABEL_X and PANEL_LABEL_Y, which
according to the reference manual...
Specifies the x/y coordinate of the label portion of panel items
that have values associated with them (eg text items). Intended
to be used when PANEL_VALUE_X/Y is specified.

I haven't tried it myself..

Also flipping through I notived XV_LEFT/RIGHT(/TOP/BOTTOM)_MARGIN
... You might be able to use this instead if the above doesn't
fit your needs...


-- 
Brooks Cutter    (I: bcutter@pdnis.paradyne.com)
                 (U: ...uunet!pdn!pdnis!bcutter)
Unix System Administrator, Information Services
        AT&T Paradyne, Largo Florida
From: tony@marsh.cs.curtin.edu.au (Tony Lock)
Subject: Help Viewer
Organization: Curtin University of Technology
Date: Wed, 19 Aug 1992 11:18:01 GMT


Having spent quite some time looking through all the documentation,
and finally managed to get the spot help window working satisfactorily
under OW2, Sun changed the rules slightly with OW3. It appears that
it is now possible to link the Help Viewer to the spot help window
with the <<more>> button, but it eludes me as to how I can do this.
Is this functionality restricted to just the Sun DeskSet tools, or
is it an integral (undocumented) part of XVIEW3?

Tony Lock,
Curtin University
Western Australia
From: rickg@eng.sun.com (Richard M. "The Tankster" Goldstein)
Newsgroups: alt.toolkits.xview
Subject: Re: Help Viewer
Date: 19 Aug 92 16:03:29 GMT
Reply-To: rickg@eng.sun.com
Organization: SunSoft, Inc.
NNTP-Posting-Host: irondude
In-reply-to: tony@marsh.cs.curtin.edu.au's message of 19 Aug 92 11:18:01 GMT


   From: tony@marsh.cs.curtin.edu.au (Tony Lock)
   Newsgroups: alt.toolkits.xview
   Date: 19 Aug 92 11:18:01 GMT
   Organization: Curtin University of Technology


   Having spent quite some time looking through all the documentation,
   and finally managed to get the spot help window working satisfactorily
   under OW2, Sun changed the rules slightly with OW3. It appears that
   it is now possible to link the Help Viewer to the spot help window
   with the <<more>> button, but it eludes me as to how I can do this.
   Is this functionality restricted to just the Sun DeskSet tools, or
   is it an integral (undocumented) part of XVIEW3?


it *was* an undocumeted part of XView3, but i had it put into
the reprints that went out last March -- so, it's only documented
if you have the newest rev of the book.


<<tank

--

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

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

	SLACK is the free car wash that comes with a fill-up
	of "Bob."
			-Book of SubGenius

*********************************************************************
Xref: sparky alt.toolkits.xview:764 comp.windows.x:15176
From: svfenge@afterlife.ncsc.mil (Steven Fenger)
Newsgroups: alt.toolkits.xview,comp.windows.x
Subject: Re: XView for VMS?
Date: 13 Aug 92 00:43:45 GMT
Organization: The Great Beyond

In article <1992Aug10.211729.17569@newshost.lanl.gov> gam@beta.lanl.gov (Gim Mark) writes:
>Does a version of XView exist for DEC's VMS?

A company called TGV makes a product called "XView for VMS".  They
made XView 2.0 libraries.  I haven't seen them advertising 3.0 libraries
yet.

Steve
-- 
Steven Fenger  fenger@[power1.ee|cps].msu.edu  svfenge@afterlife.ncsc.mil
pink noise, white noise and a violet whining sound...
Newsgroups: alt.toolkits.xview
From: drl@vuse.vanderbilt.edu (David R. Linn)
Subject: "Clear Log" and M-E
Organization: Vanderbilt University School of Engineering, Nashville, TN, USA
Distribution: na
Date: Mon, 17 Aug 1992 12:39:58 GMT

In versions of SunView and XView prior to v3, the Meta-E command brought
up a "dialogue box" that allowed you to clear your text pane with the
Return key.  The XView3 txt_file.c version seems to have reversed the
cases for this action so that "cancel" (don't clear) is now the default
*and* something else has changed so that (in OW3) you can no longer use
Return to select the default - you must use the mouse.

I find this annoying.  Is there some way of getting the XView2 behavior?
Failing that, is there some way of selecting a non-default choice and saying
"do the selected action" while in this "dialogue box" using only the keyboard
*without* losing the notices altogether or going to the completely mouseless
setup in OW3?

	 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."
Newsgroups: alt.war
From: emery@Dr_No.mitre.org (David Emery)
Subject: Re: Info on books
Organization: The Mitre Corp., Bedford, MA.
Date: Mon, 17 Aug 1992 13:59:31 GMT

Don't buy this edition.  Spend more money and buy the Princeton U.
Press edition.  It's a better translation, and the introductory essays
themselves are worth the additional cost.  (On War, Paret and Howard,
tr and editors, Princeton U. Press 1976, available in paperback for
about $13.00)
				dave
From: spencer@panix.com (David Spencer)
Subject: Re: Clausewitz
Date: Mon, 17 Aug 1992 12:55:37 GMT
Organization: PANIX Public Access Unix, NYC

kermits@pasifae.cc.uch.gr (Aggelos Keromyths) writes:

>I am trying to Clausewitz book but can't find any.
>What's the publisher/editor?

The best edition of _On War_ in English is the Michael Howard/Peter
Paret translation. I believe it's published by Princeton. (I don't
have a copy here -- I can check tonight.)

Your university's library almost certainly has a Greek translation, if
there is one. If it has a military history department (or a good
history or foreign affairs department), it probably has Clausewitz in
the original German.

>Any other suggestions for books on the same topic?

In English, _Makers of Modern Strategy_ (First edition edited by
Earle; second edition edited by Paret) is an excellent introduction to
modern strategic thinkers.

Other than that, the best works on strategy are historical analyses,
such as Delbruch's histories, the official British histories of the
two world wars (particularly the _Grand Strategy_ volumes) or the US
official history of the Second World War.

Raymond Aron in French (Has _Paix et Guerre_ been translated yet?)
and Henry Kissenger, Bernard Brodie, Michael Howard, Peter Paret and
Paul Kennedy in English are among the best contemporary writers on
strategy. You have to be critical in reading them (especially
Kissenger, Brodie and Kennedy); some of their writing is intended to
influence current public policy.

Ken Trotman, Hatchard's and The History Book Shop (all in London) sell
military history books by mail, as do Military Bookman in New York
and Peter Jackson in Toronto. I'll post addresses if anyone wants them.


dhs    spencer@panix.com
"Upon reading Goethe, I am always struck by the paralyzing
 suspicion that he is trying to be funny" - Waugh
Newsgroups: alt.war