HDTenEightyP/NetNews huggingface dataset:
From: mattb@ssc-vax (Matt Baney)
Newsgroups: alt.toolkits.xview,comp.windows.open-look
Subject: Re: How to get a selected string from a panel_list ?
Date: 28 Sep 92 14:19:45 GMT
Reply-To: mattb@ssc-vax.boeing.com (Matt Baney)
Organization: Boeing Aerospace & Electronics

In article <1992Sep26.031144.8110@umr.edu> mgj@ee.umr.edu (Mahesh Govind Joshi) writes:
>I am trying to implement a simple help facility using a
>panel_list. The O'Reilly book says that you can get the selected
>string using xv_get(item, PANEL_LABEL_STRING).
>in main:
>pointer = (Panel_item) xv_create(HelpSubframePanel, PANEL_LIST,
>          PANEL_LIST_STRINGS,  "How to Chat ", "How to
>	"How to close connections", " More Information", NULL,
>  PANEL_NOTIFY_PROC, HelpSubframePanelNotifyProc,
>  PANEL_CHOOSE_ONE, TRUE,
>  PANEL_CLIENT_DATA,HelpSubframe,
>  NULL);
>  
>The printf just prints a blank line everytime a list item is
>selected.  
>
I don't have my code right here in front of me, but my understanding
is that the only way to get the selected-string from a PANEL_LIST is
to loop through all the PANEL_LIST_STRINGS and do the test 
PANEL_LIST_ITEM_SELECTED (??) on each item untill you find the one
thats selected??  This seems like a rather barbaric way to have to
do this but (in OW2.0 at least) this was the only way we could
figure it out??  **Note I don't think I have the keywords exactly
right but there should be something close?

Good Luck!!


-- 
|  Matt Baney         | Boeing Defense and Space Division    |
|  -----------------  |   Knowledge Systems Group            |
| "I can't tolerate   | UUCP:     ..!uw-beaver!ssc-vax!mattb |        
| intolerant people!" | Internet:   mattb@ssc-vax.boeing.com |
From: song@minster.york.ac.uk
Newsgroups: alt.toolkits.xview
Subject: simutaneous highlight
Date: 30 Sep 92 13:14:15 GMT
Organization: Department of Computer Science, University of York, England

Many thanks to those who have replied the double click problem.
Special to hoffmann@ssd.kodak.com

Now I got the other problem.  I want to highlight the selected text
in several windowns.  I found that XView only highlights one of them.
The highlighted text in the other window just flashed once and 
then disappeared immediately.  It seems that the highlighting event send 
to the rest of windows does not stay.

thanks in advance,

Ji,
Newsgroups: alt.toolkits.xview
From: anja@rcc.de (Anja-Maria Seelig)
Subject: problems with OpenWindows2 / OpenWindows3
Organization: Home
Date: Fri, 2 Oct 92 21:09:40 GMT


Hello,

I've been developing my final study work with OpenWindows3 in XView on a SPARCstation.
Unfortunately, the program is to be run with OpenWindows2, too. 

Running my program with OW2 results in many XView warnings and  finally in
segmentation faults. :-(

Here are some problems with OW2, I do not have with OW3:

I cannot open a popup-window for a second time if it was destroyed by pushing 
the pushpin.
A '\n' in a notice-message-string is not evaluated resulting.

I get many warnings like:
 
Xiew warning: Object 0x2580f0, invalid object (embedding seal incorrect), xv_get
Xiew warning: Object 0x2580f0, invalid object (embedding seal incorrect), xv_set
...

Help is very urgent! 

Many thanks in advance! 
-- 
+------------------------------------------------------------------------+
|  Anja-Maria Seelig             INTERNET : a@rcc.de                     |
|  Heinrichstr. 42                                                       |
|  4800 Dortmund 1                                                       |
Xref: sparky alt.toolkits.xview:942 comp.sys.sun.apps:2163 comp.sys.sun.wanted:1588 pnw.sys.sun:11
From: jct@pogo.wv.tek.com (John C. Thomas)
Newsgroups: alt.toolkits.xview,comp.sys.sun.apps,comp.sys.sun.wanted,pnw.sys.sun,tek.general
Subject: XView help needed to create specific visual class with private colormap
Keywords: colormap, xview, toolkit, visual
Date: 6 Oct 92 18:11:14 GMT
Followup-To: poster
Organization: Tektronix Inc., Beaverton, Or.

I am developing an xview application which requires a canvas to be
created which has a specific visual class (8-bit indexed color, or
24-bit true color) and a private colormap.  Long ago, I exceeded
the capabilities of the "DevGuide 3.0" GUI-builder, which provided
the framework for this application.  I am running "Open Window 3.0"
on SUN/OS 4.1.2 (i.e. Solaris 1.0).

Specifically, my problems are:
  1) When I create my private colormap, I do not inherit the preallocate
     colors from the default colormap (yes, I think that I am using the 
     CMS_CONTROL_CMS parameter correctly).
  2) None of the children popups inherit the colormap from the mainWindow
     FRAME.  Children of each frame seem to have allocated colors from
     the default colormap, even when I try to associate the private colormap
     with the mainWindow FRAME prior to creating the children objects.
  3) I still don't know how to obtain the desired visual class from the
     xv_create(NULL, FRAME, .... call.

None of the examples in the O'Reily book or on the MIT Xview distribution,
nor any of the SUN documentation which I have in my posession appears to
cover this situation.  So I would like to know if some xview wizard out
there who has a code fragment which successfully accomplishes  what I am
trying to do.

Please respond by email to:
 jct@pogo.wv.tek.com

Thank-you-(graciously)-in-advance.

 John C Thomas
 Graphic Printing and Imaging Division
 Tektronix, Inc.
 (503)685-3050
Newsgroups: alt.toolkits.xview,comp.windows.open-look
From: mgj@franklin.ee.umr.edu (Mahesh Govind Joshi)
Subject: A vt100 terminal using xview (Open Win vers. 2.0 )
Date: Mon, 28 Sep 1992 05:06:27 GMT
Reply-To: mgj@ee.umr.edu (Mahesh Govind Joshi)
Organization: University of Missouri - Rolla
Originator: mgj@ee.umr.edu

Hi,
I guess this is a FAQ  but I dont have a copy and this is my
first experience using Xview.

does tty  emulate a vt100 terminal ?
If not, how does one emulate a vt100 terminal using xview.?

Can one set the rows = 24, Cols =80 ofa tty using xv_width,
xV_height ?

 I am using XView on OPen WIndows version 2.0.

Thanks in advance!

Mahesh Joshi.
________________________________________________________________________
Mahesh Joshi 			|   Bura duniya ko hai kehta
Help Desk Consultant		|   Aisa bhola to na ban 
Snail Mail:- 1300 N. Oak Street	|   Jo hai karta,woh hai bharta	
#17, Rolla MO 65401.		|   Hai yahan ka hai chalan
Voice:(314)341-8197.		|   Takdeer nahi chalnegi yahan
Email : mgj@ee.umr.edu		|	---- Majrooh Sultanpuri---- 
------------------------------------------------------------------------
Newsgroups: alt.toolkits.xview
From: mikwe@isy.liu.se (Mikael Wedin)
Subject: 3D-visualization in XView
Reply-To: mikwe@isy.liu.se
Organization: Linkoping University
Date: Thu, 1 Oct 1992 14:53:44 GMT

Hi !

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

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

Mail me.



---
O+-oo-+-oo-+-oo-+-oo-+-oo-+-oo-+-oo-+-oo-+-oo-+-oo-+-oo-+-oo-+-oo-+-oo-+-oo-+O
O    Mikael Wedin                                    Email: mikwe@isy.liu.se O
O    Image Processing in Graphics Art                Phone: +46-13-281301    O
O    Department of EE                                Fax:   +46-13-282599    O
O    Link|ping University                                                    O
O    S-581 83 LINK\PING      "I'm dancing barefoot, heading for a spin       O
O    Sweden                   some strange music drags me in..." -N. Young   O
O+-oo-+-oo-+-oo-+-oo-+-oo-+-oo-+-oo-+-oo-+-oo-+-oo-+-oo-+-oo-+-oo-+-oo-+-oo-+O
From: rss@panix.com (Robert Silver)
Newsgroups: alt.toolkits.xview
Subject: XVIEW SAMPLE C-SOURCE CODE
Summary: WHERE IS XVIEW C-SOURCE SAMPLE CODE
Keywords: xview X Windows source
Date: 4 Oct 92 18:00:07 GMT
Organization: PANIX Public Access Unix, NYC

Can anyone tell me where I can FTP a nice selection of sample C-Sources I can obtain in a effort to learn Xview well?
I would appreciate any assistance anyone could give. Also I am aware of the Sun
user group CD-ROM. I have no CD-ROM reading capability. but would really like to get my hands on a lot of xview sample source I would also be 
interested in correspondence with any one on this subject
Newsgroups: alt.toolkits.xview
From: egiannou@ntb.ch (Evangelos Giannoulas)
Subject: Trouble with PANEL_LIST_CLIENT_DATA
Reply-To: egiannou@ntb.ch
Organization: Neu-Technikum Buchs, Switzerland
Date: Thu, 1 Oct 1992 21:41:38 GMT


Hello,

Can anybody tell me what I am doing wrong ?
I have a List item and set every row in it to a certain value. The code:

int wid;

xv_set (list,	PANEL_LIST_INSERT, rowcount,
	PANEL_LIST_STRING, rowcount, row_array,
	PANEL_LIST_CLIENT_DATA, rowcount,  wid,
	NULL);

If I try to retrieve the client data, I just don't get the values previously set.

xv_get (list, PANEL_LIST_CLIENT_DATA, row_selected, wid);

The row is within the valid range and I checked everything else.
What can it be ?


Vangelis
egiannou@ntb.ch


Newsgroups: alt.toolkits.xview,comp.windows.open-look
From: martin@patricia.verfahrenstechnik.uni-stuttgart.de (Martin Hepperle)
Subject: Re: How to get a selected string from a panel_list ?
Organization: Institute A for Mechanics, University of Stuttgart, Germany
Date: Tue, 29 Sep 1992 17:44:24 GMT


the following works for me:
(note that I am tracking the selected item by myself, during the
PANEL_NOTIFY_PROC)


	FileList = panel_create_item( FilePanel, PANEL_LIST,
									PANEL_LIST_WIDTH, 300,
									PANEL_LIST_DISPLAY_ROWS, 10,
									PANEL_NOTIFY_PROC, FileListNotifyProc,
									NULL );


... and later...

void FileListNotifyProc( item, string, client_data, op, event )
Panel_item item;
char * string;              /* <<<<---- you want to save this string */
caddr_t client_data;
Panel_list_op op;
Event * event;
{
	Panel_item TextItem;
	Panel_item FileList;
	Panel_item PathList;
	
	if( SELECT == op )
	  {
		if( strlen(string) )
		  {
			TextItem = (Panel_item)xv_get( item, XV_KEY_DATA, FILE_ITEM );
			xv_set( TextItem, PANEL_VALUE, string, NULL );
		  }
	  }
}
/************************************************************************/


Martin.
Newsgroups: alt.toolkits.xview,comp.windows.open-look
From: alex@animal.Bell.CA (Alex Laney)
Subject: Re: How to get a selected string from a panel_list ?
Organization: Bell Canada, Ottawa, Ontario
X-Newsreader: TIN [version 1.1 PL6]
Date: Tue, 29 Sep 1992 18:48:30 GMT

Mahesh Govind Joshi (mgj@franklin.ee.umr.edu) wrote:
: Hi,
: 
: I am trying to implement a simple help facility using a
: panel_list. The O'Reilly book says that you can get the selected
: string using xv_get(item, PANEL_LABEL_STRING).

Not so.
: I tried this and it simply fails.
Surprise!

: 
: Here is a piece of code :
: 

<Previous code ok>

This stuff is bad:

: HelpSubframePanelNotifyProc(item,op,event)
: Panel_item item;
: Panel_list_op op;
: Event *event;
: {
: Frame subframe = (Frame)xv_get(item, PANEL_CLIENT_DATA);
: 
: 
: printf(" %s", xv_get(item, PANEL_LABEL_STRING);
: 
: }

Your function HelpSubframeNotifyProc has the wrong args:

int HelpSubframePanelNotifyProc( item, string, client_data, op, event)
     Panel_item	item;
     char		*string;
     Xv_opaque	client_data;
     Panel_list_op	op;
     Event		*event;

The selected string is in 'string'.

You don't have PANEL_LABEL_STRING set, so it returns "". The
PANEL_LABEL_STRING is the header/title. Check the op is a
PANEL_LIST_OP_SELECT, never use the string on a OP_DESELECT.

You can get individual strings with PANEL_LIST_STRING and an
index.

I have a copy of the O'Reilly for XV2, but I use DevGuide, which creates
the stubs for me. I'm surprised if the manual is so poor. Is this the
O'Reilly for XV3, where the attributes and the text are separate books?

You could use the client data for each item in the list too. This is
like the PANEL_LIST_STRING/PANEL_LIST_STRINGS combo.
From: rss@panix.com (Robert Silver)
Newsgroups: alt.toolkits.xview
Subject: XVIEW coloring question
Summary: Can anyone tell me how I can set the background color of a panel
Keywords: xview panel
Date: 4 Oct 92 21:29:52 GMT
Organization: PANIX Public Access Unix, NYC

Can anyone tell me how to set the background color of a panel object. I have
been unable to set the color of the background of a panel object, try as I may
This is probably a simple matter but I have set the foreground with no problems
. I even tried to set the background color on the panel object from an X-lib
function call but to no avail. I would appreciate any assistance!!!
Xref: sparky alt.toolkits.xview:924 comp.windows.open-look:3998
From: mattb@ssc-vax (Matt Baney)
Newsgroups: alt.toolkits.xview,comp.windows.open-look
Subject: xv_menu_show ?
Date: 1 Oct 92 14:39:27 GMT
Reply-To: mattb@ssc-vax.boeing.com (Matt Baney)
Organization: Boeing Aerospace & Electronics

I am trying to implement something in XVIEW similar to a
pullright menu, but for what I need to do a regular pullright menu
won't work.  
What I have done is written a PANEL_BUTTON notify proc that displays
a menu, and then for the different items on that menu they also have
a notify proc that displays another menu?  The problem is that the 
last menu comes up fine but you can NOT select any of the items on 
the menu??

Example:

Button_notify_proc(panel_item, event)
  {
  ....
  menu_show(SOME_MENU, panel, event, NULL);
  }


Some_menu_notify_proc(menu, menu_item)
  {
  ...
  menu_show(LAST_menu, panel, xv_get(menu, MENU_LAST_EVENT), NULL);
  or
  menu_show(LAST_menu, panel, (Event *)xv_get(menu, MENU_FIRST_EVENT), NULL);
  }

Like I said LAST_menu comes up fine BUT you are not able to select
anything of it with any of the keys??

Any ideas??


-- 
|  Matt Baney         | Boeing Defense and Space Division    |
|  -----------------  |   Knowledge Systems Group            |
| "I can't tolerate   | UUCP:     ..!uw-beaver!ssc-vax!mattb |        
| intolerant people!" | Internet:   mattb@ssc-vax.boeing.com |
Xref: sparky alt.toolkits.xview:932 comp.windows.open-look:4014
Newsgroups: alt.toolkits.xview,comp.windows.open-look
Date: Sat, 3 Oct 92 15:25:32 EDT
From: dupuy@cs.columbia.edu (Alexander Dupuy)
Subject: X11R5 problems with OpenWindows 3.0
Reply-To: dupuy@cs.columbia.edu

I tried running with the X11R5 libraries at the front of my LD_LIBRARY_PATH,
and had a few problems with OpenWindows 3.0.  Most notably, the Compose LED on
the keyboard would go on, and stay on, and the Compose key didn't work.  This
might not be a show stopper for some people, but I use accented characters not
infrequently, so I went back to leaving $OPENWINHOME/lib at the start of
LD_LIBRARY_PATH (which $OPENWINHOME/bin/openwin normally forces anyhow).

Does anyone know if there is a workaround for this problem?

@alex
--
inet: dupuy@cs.columbia.edu
Member of the League for Programming Freedom -- write to league@prep.ai.mit.edu
Newsgroups: alt.toolkits.xview
From: downey@inmet.camb.inmet.com (Terry Downey)
Subject: XView image generation
Organization: Intermetrics Inc, Cambridge MA
Distribution: usa
Date: Mon, 5 Oct 1992 13:34:16 GMT


I'm converting a SunView application to XView and, after considerable effort,
things are working for the most part.  One area that is giving me problems is
the generation of images to be used as panel items, etc.  The SunView code makes
extensive use of raster operations (pr_rop, etc.) to manipulate pixrects that
are eventually used to create images associated with panel items.  XView uses
server images instead of pixrects, and I haven't been able to figure out how to
duplicate the effect of the raster operations.  The closest I've come is to
create the server images, extract their pixmaps, massage the pixmaps using
XCopyArea, and use the resulting pixmap to create a new server image.  This 
doesn't *quite* do what I want and seems pretty inefficient as well.  Can anyone
recommend a better way to do this?  Thanks.

-Terry
From: Eric-Grajales@orl.mmc.com (Eric Grajales)
Newsgroups: alt.toolkits.xview
Subject: Double-Buffering in an XView Canvas
Keywords: Double Buffering, XView
Date: 29 Sep 92 14:29:13 GMT
Organization: Martin Marietta


   I was wondering if anyone has implemented  Double Buffeing in 
an XView canvas?  I am writing a simple animation of plotted points, 
and the screen blanks are distracting. 

Thanks in advance.

/**************************************************************/
Eric J. Grajales                     U.S. Snail:   
Senior Engineer                     Martin Marietta ESC               
E-Mail: Eric-Grajales@orl.mmc.com   P.O. Box 628007      
Tel: 407-356-7219 (Desk) or         Mail Point 1160     
     407-356-8439 (Lab)             Orlando, Florida  32862-8007
Fax: 407-356-7246           
/**************************************************************/
From: cornwell@minster.york.ac.uk
Newsgroups: alt.toolkits.xview
Subject: Canvas to postscript printer
Date: 1 Oct 92 10:48:40 GMT
Organization: Department of Computer Science, University of York, England
X-Newsreader: TIN [version 1.1 PL6]


Does anyone know if there is a tool out there that will dump the contents
of a canvas (in my case 2000x2000), scale it and print it out on a
postscript printer.  All the other tools floating around only seem to
deal with what is visible in the current view window i.e. xwps.


...any help would be most appreciated!

cheers,

Pete Cornwell

(cornwell@minster.york.ac.uk)
Newsgroups: alt.toolkits.xview
From: teague@stc.lockheed.com (Alan Teague)
Subject: PANEL_MULTILINE_TEXT Question
Organization: Lockheed Software Technology Center
Date: Fri, 2 Oct 92 20:26:59 GMT

I am having a problem with PANEL_MULTILINE_TEXT items (what else is new).

Xv_opaque obj = xv_create( owner, PANEL_MULTILINE_TEXT,
                           XV_X, 8, XV_Y, 368,
                           PANEL_VALUE_DISPLAY_LENGTH, 42,
                           PANEL_VALUE_STORED_LENGTH, 2048,
                           PANEL_DISPLAY_ROWS, 5,
                           PANEL_LABEL_STRING, "Description:",
                           PANEL_LAYOUT, PANEL_VERTICAL,
                           PANEL_READ_ONLY, FALSE, 
                           PANEL_LINE_BREAK_ACTION, PANEL_WRAP_AT_WORD,
                           NULL );

The problem is when I have a large amount of text to display:

	xv_set( obj, PANEL_VALUE, large_string, NULL );

The MULTILINE_TEXT item is left scrolled to the very end of the text.

HOW DO I SCROLL IT BACK TO THE BEGINNING?

Thanks for any help.

Alan
teague@stc.lockheed.com
From: song@minster.york.ac.uk
Newsgroups: alt.toolkits.xview
Subject: Double canvas repaint called
Date: 1 Oct 92 10:04:34 GMT
Organization: Department of Computer Science, University of York, England

I noticed that the canvas repaint event has been sent twice, in other words
it has been called twice.  It is OK if the canvas repaint routine is just
used for drawing something on screen.  But I run into serious trouble when
the new data object is created within the routine.  The data object has been
created twice for me.
	I am wodering if anyone had the same problem as me.  Any suggestion
to cure it,

Thanks,

Ji,
Xref: sparky alt.toolkits.xview:926 comp.windows.open-look:4005
From: unregistered@newcastle.ac.uk (M.J.Jubb)
Newsgroups: alt.toolkits.xview,comp.windows.open-look
Subject: Re: How to get a selected string from a panel_list ?
Date: 2 Oct 92 14:28:47 GMT
Organization: School of Engineering, University of Durham, UK

In article <5593@ssc-bee.ssc-vax.boeing.com>, mattb@ssc-vax (Matt Baney) writes:
|> In article <RICKG.92Sep30084726@irondude.eng.sun.com> rickg@eng.sun.com writes:
|> >
|> >we've seen a lot of answers to this, and still nobody's
|> >come up with the PANEL_LIST_FIRST_SELECTED and PANEL_
|> >LIST_NEXT_SELECTED attributes....
|> >
|> ><<tank
|> >
|> 
|> What are they??  Do they exist?  Are they documented??  What do they
|> do??  Or are these just some more of the undocumented
|> "features/enhancements/bugs" in XVIEW?

VERSION 3 MEGA-CONFUSION (or so it seems to me)

Documentation on the above can be found in the third edition of the O'Reilly
"Definitive Guides to the X-windows System", volume 7 (Xview). As of this
edition it is being sold as a set, the "programming manual" and the smaller
"reference manual", ISBN for the set is 0-937175-89-7. I presume that what you
have been reading is an earlier edition which didn't include the features
new at version 3 of the toolkit, such as the ones you mention. On the back of
the books it says that they apply to "XView Version 3". 

However, beware! What version of the toolkit is your machine running? We had
3.0 installed on our Sun before it was shipped to us. For a long time I
worked on colourmap segments and canvases, and there was no difficulty. However -
start trying to manipulate command-frame pushpins, or use PANEL_LISTs, and
you find that all of a sudden these books don't describe your toolkit any more,
and your include files won't contain references to certain attributes the book
talks about. 

Aha! You may say, and FTP yourself V3.1. Now all of the attributes the book talks
about are available to you. But you get a replacement problem, namely that some
functions new in this version make the whole program fall over terminally when
you call them. I think for the moment I shall have to go back to 3.0 and put
up with not being able to use some of the features in the book. 

Is anybody out there using edition 3 (or later, if there is one) of the books?
Have you got libraries that support all the features, including 
PANEL_LIST_INSERT_STRINGS and things, without falling over? If so, please tell
us all where to get it. 

Matthew J. Jubb,
Ph.D research, image-processing
Newsgroups: alt.toolkits.xview,comp.windows.open-look
From: dfl@virgo.math.tau.ac.il (David Frenkiel)
Subject: private attributes
Organization: School of Math & CS - Tel Aviv University , Tel Aviv , ISRAEL.
Date: Thu, 17 Sep 1992 13:44:30 GMT

Hi

after seeing reference to the xview WIN_BORDER attribute in this group, I was
wondering if there is a publicly available list of the usage of
attributes labeled "private" in the xview include files (and consequently not
documented).  Right now, I'm interested in MENU_LINE_AFTER_ITEM, or
any other attribute that can create a separation between items in a
menu.

			thanx

				dfl

--
+-------------------------------------------------------+
|   The white zone is 4 loading and unloading only.     |
| If you want to load or unload, go to the white zone.  |
+-------------------------------------------------------+
Newsgroups: alt.toolkits.xview,comp.windows.open-look