HDTenEightyP/NetNews huggingface dataset:
From: woersi@LODSUN1.LOD.UNI-KARLSRUHE.DE (Woersinger Diplomand von ASK)
Subject: Re: read option "-monochrome"
Organization: Internet-USENET Gateway at Stanford University
Date: Tue, 29 Sep 1992 13:30:43 GMT

hi,

Martin Schmidt started a programm with the monochome option (prog -monochrome)
and wondered why Style::value_is_on ("monochrome") is false.

There is NO styleattribute named "monochrome".
"monochrome" is an attributevalue of attribute "gui"
(see ../iv/src/lib/InterViews/session.c")

      static OptionDesc defoptions[] = {
      .
           { "-monochrome", "*gui", OptionValueImplicit, "monochrome" },
      .
      .
      };


So, "prog -monochrome" is the same as "prog -xrm gui:monochrome".
(-xrm option see IV-RefMan V3.1Beta, table 1.1)


This programm prints "mono is on", when
*   -monochrome or -xrm gui:monochrome option is used,
*   or file "prog" in ../app_defaults is containing   *gui: monochrome
*   or proplist contains {"*gui", "monochrome"} (remove all /* and */ )



__________________________________________________________________

#include <stdio.h>
#include <InterViews/session.h>
#include <InterViews/style.h>

/* static PropertyData proplist[] = {
       {"*gui","monochrome"},

       nil
   };


   static OptionDesc options[] = {
   };
*/

int main(int argc, char** argv)
{
    Session* session = new Session("prog", argc, argv /* optlist, proplist */ );
    


    Style *style = session->style();

    String val;
    if (style_->find_attribute("gui",val))
	if (val==String("monochrome"))
	    printf ("mono is on\n");
    
    ...
}

_________________________________________________________________





Rolf-Martin Woersinger                    Akademische Software Kooperation (ASK)
woersi@lodsun1.lod.uni-karlsruhe.de       Karlsruhe, Germany      +49-721-695639
Newsgroups: comp.windows.interviews
From: bennett@mozart.redwood.com (Michael Bennett)
Subject: event handler around a button  IV3.1
Organization: Redwood Design Automation
Date: Fri, 2 Oct 92 01:12:28 GMT

I want to create a MonoGlyph that can be used to supply help
information about its body.  Pressing the "help" key over the MonoGlyph
will cause some action helpful to the user.

At first I tried to do this by modifying the pick() function for my
help glyph.  This didn't work in my particular case because the body of
the help glyph is a push_button.  The Button, as an ActiveHandler,
grabs events while the cursor is within the Button.  It grabbed my
keystroke events and ignored them.  Shouldn't the Button somehow send
along keystrokes since it doesn't care about them?  And, possibly
related, why does Handle::event() now return a boolean?  What does it
mean?  Is this what the button event grabber should use to indicate
that it didn't handle the keystroke event so it can be dispatched to
someone who wants it?

Next, I tried making my help glyph an InputHandler.  This works great,
now I get keystrokes, with the convenient keystroke() function.  But, now
the Button isn't getting any events.  So, I played around with
append_input_handler() and next_focus() but didn't get anwhere.

Finally, I resorted to the fact that I knew my help glyph was
arround a Button, and made the help glyph and ActiveHandler, and
had it pass all but the keystroke events on to the Button.  This
works fine, but only in my very specific case.  What if my
help glyph surrounds a Box of two Buttons?


Anyone know what I should be doing to accomplish this?
From: dave@kanga.lcs.mit.edu (David Sternlicht)
Newsgroups: comp.windows.interviews
Subject: copying stuff
Date: 5 Oct 92 14:14:26 GMT
Organization: mit

>How do you copy stuff from Interviews text editor to the Xwindow clipboard?
>I want to copy from an app to an xterm using the standard 1 button
>xterm copy. How do I do this?

Cut and paste is a subfunction of selection.  The InterViews mechanism
for this functionality is still "in committee".  However for simple
text, cutting from a FieldEditor InputHandler with mb1 and pasting
into xclipboard with mb2  should work in 3.1.beta2
(I haven't built beta3 yet).

-- 
			
				dave sternlicht
				mit X consortium
				dave@expo.lcs.mit.edu
From: christi@pegasus.inf-technik.th-ilmenau.de (Dr.Christian Schroeder)
Newsgroups: comp.windows.interviews
Subject: Glyphs and Ibuild
Date: 5 Oct 92 16:08:52 GMT
Organization: TH Ilmenau/MSS, Germany

How can I include a glyph hirarchy in an user interface generated by 
ibuild ?

Thanks

C.S.
-- 

 -------------------------------------------------------------------------
|..............|                               |                          |
|######........| Dr.-Ing. Christian Schroeder  | Telefon : 03677  69 1166 | 
|..##..........| Technische Hochschule Ilmenau |           oder   69 1168 |     
|..##.##.##....| PSF 327, O-6300 Ilmenau       | Telefax : 03677  69 1517 |
|.....#####....|                               |                          |
|.....##.##.##.|----------------------------------------------------------|
|...........##.|                                                          |
|...........##.| E-Mail : Schroeder@Inf-Technik.TU-Ilmenau.DE             |
|..............|                                                          |
 -------------------------------------------------------------------------
Newsgroups: comp.windows.interviews
From: malcolmp@hydra.maths.unsw.EDU.AU (malcolmp)
Subject: Re: IV3.1 beta3 build problems
Organization: School of Mathematics, UNSW, Sydney, Australia
Date: Tue, 6 Oct 1992 00:04:29 GMT

In article <ROBERTS.92Oct1155751@studguppy.lanl.gov>
roberts@studguppy.lanl.gov (Doug Roberts) writes:

   g++     -Dcplusplus_2_1  -DNOSTDHDRS -DX_WCHAR -DX_LOCALE
	-I../../../.././src/include   -pipe -c ../catcmds.c
   ../catcmds.c: In method `void  ivViewCompCmd::Execute ()':
   ../catcmds.c:283: assignment between incompatible pointer types
   ../catcmds.c: In method `void  ivSaveCompCmd::Execute ()':
   ../catcmds.c:370: assignment between incompatible pointer types
   ../catcmds.c: In method `void  ivSaveCompAsCmd::Execute ()':
   ../catcmds.c:417: assignment between incompatible pointer types
   *** Error code 1

These errors are generated from the second line of the following code:

	const char* foo = blat();
	foo = (foo == nil) ? "blat" : foo;

Which for some reason g++ doesn't like.  If you change the offending line to

	if (foo == nil) foo = "blat";

it works like a charm.  I think this is another bug in g++ :-(

--
		Malcolm Purvis (malcolmp@hydra.maths.unsw.edu.au)
		School of Mathematics, UNSW, Sydney, Australia.
From: smp@cathedral.cerc.wvu.wvnet.edu (Shailesh M. Potnis)
Newsgroups: comp.windows.interviews
Subject: How to control the alignment of two glyphs independent to each other
Date: 29 Sep 92 14:46:54 GMT


	I am using IV 3.0.1 and having a problem in aligning two monoglyphs in
a window.  I have a menubar and another glyph containing a picture.  The two
glyphs are placed in a TBBox.  The glyph containing graphics sets its alignment
with origin at 0.4" from the X axis its requirement.  The trouble is the
origin of the menubar is also displaced towards the middle of the window.

	How can I control the alignment of the menubar and the graphic
independently of each other?

	All comments and suggestions are highly appreciated.

	Thanks in advance.

--
Shailesh Potnis, Associate	|Concurrent Engineering Research
Member of Technical Staff	|Center, West Virginia University
Newsgroups: comp.windows.interviews
From: janin@espresso.boeing.com (Adam Janin 5-3545)
Subject: Monochrome?
Organization: Internet-USENET Gateway at Stanford University
Date: Mon, 5 Oct 1992 21:46:55 GMT


Does anyone have a kit or an .Xdefaults file for monochrome displays so
bevels/etc show up?

	Thanks,

	Adam Janin
	janin@espresso.boeing.com
Newsgroups: comp.windows.interviews
From: pan@panda.Stanford.EDU (Doug Pan)
Subject: Re: FieldEditor help
Organization: Stanford University
Date: 28 Sep 92 21:47:31

In article <1992Sep28.225803.570@cssc-syd.tansu.com.au> richardf@cssc-syd.tansu.com.au (Richard Favero) writes:

    Could someone send me a small example of how to use a field editor
    and the associated action. I dont understand the usage.

FieldEditorCallback::accept is called when RET is entered.
FieldEditorCallback::cancel is called when ESC or '^G' is entered.

The following program outputs the string in the FieldEditor with
"accept/cancel" depending on what you typed.

#include <IV-look/dialogs.h>
#include <IV-look/field.h>
#include <IV-look/kit.h>
#include <InterViews/layout.h>
#include <InterViews/session.h>
#include <InterViews/window.h>
#include <OS/string.h>
#include <stdio.h>

class PrintIt {
public:
    virtual void accept(FieldEditor*);
    virtual void cancel(FieldEditor*);
};

declareFieldEditorCallback(PrintIt)
implementFieldEditorCallback(PrintIt)

void PrintIt::accept(FieldEditor* e) {
    if (e != nil) {
	printf("accept: %s\n", e->text()->string());
    }
}

void PrintIt::cancel(FieldEditor* e) {
    if (e != nil) {
	printf("cancel: %s\n", e->text()->string());
    }
}

int main (int argc, char** argv) {
    Session* session = new Session("Namer", argc, argv);
    WidgetKit& kit = *WidgetKit::instance();
    const LayoutKit& layout = *LayoutKit::instance(); 
    const DialogKit& dialog = *DialogKit::instance();
    PrintIt action;

    session->run_window(
        new ApplicationWindow(
            kit.inset_frame(
		layout.margin(
		    layout.vbox(
		        layout.hbox(
                            layout.vcenter(kit.label("Name:")),
		            layout.hspace(5.0),
                            layout.vcenter(
                                dialog.field_editor(
                                    "                ", kit.style(),
                                    new FieldEditorCallback(PrintIt)(
                                        &action,
                                        &PrintIt::accept,
                                        &PrintIt::cancel
                                    )
                                )
                            )
                        ),
			layout.vspace(10.0),
                        layout.hbox(
			    layout.hglue(50),
                            kit.push_button("Quit", kit.quit())
                        )
                    ),
                    20.0
                )
            )
        ) 
    );
}
Newsgroups: comp.windows.interviews
From: mrs@KITHRUP.COM
Subject: Re: IV3.1 beta3 build problems
Reply-To: Mike Stump <mrs@cygnus.com>
Organization: Internet-USENET Gateway at Stanford University
Date: Tue, 6 Oct 1992 22:13:45 GMT

Gee, seems like I answer this question every other day!

Use the gcc.xtar.Z compiler in

	pub/contrib/g++@interviews.stanford.edu

See the README-3.1-beta2 for details.  If you don't have ftp access, wait until
2.3 is out, as it should fix these problems.

In article <MALCOLMP.92Oct6100429@hydra.maths.unsw.EDU.AU> you write:
>In article <ROBERTS.92Oct1155751@studguppy.lanl.gov>
>roberts@studguppy.lanl.gov (Doug Roberts) writes:
>
>   g++     -Dcplusplus_2_1  -DNOSTDHDRS -DX_WCHAR -DX_LOCALE
>	-I../../../.././src/include   -pipe -c ../catcmds.c
>   ../catcmds.c: In method `void  ivViewCompCmd::Execute ()':
>   ../catcmds.c:283: assignment between incompatible pointer types
>   ../catcmds.c: In method `void  ivSaveCompCmd::Execute ()':
>   ../catcmds.c:370: assignment between incompatible pointer types
>   ../catcmds.c: In method `void  ivSaveCompAsCmd::Execute ()':
>   ../catcmds.c:417: assignment between incompatible pointer types
>   *** Error code 1
>
>These errors are generated from the second line of the following code:
>
>	const char* foo = blat();
>	foo = (foo == nil) ? "blat" : foo;
>
>Which for some reason g++ doesn't like.  If you change the offending line to
>
>	if (foo == nil) foo = "blat";
>
>it works like a charm.  I think this is another bug in g++ :-(
Newsgroups: comp.windows.interviews
From: schmidt@rpksun1.mach.uni-karlsruhe.de (Martin Schmidt)
Subject: "message" label
Organization: Univerity of Karlsruhe (FRG)
Date: Tue, 29 Sep 1992 21:23:35 GMT

Hi people,
is there any simple possibility in InterViews to create
s.th. like a "message"-label, where I can print messages
on the screen. The FieldEditor seems to be to complicated
for this simple task.

What I am looking for is s.th. like

     Label *l = kit.label("hello");
     ....
     l->display("new message");

Thanks for any hint
Martin
schmidt@rpksun1.mach.uni-karlsruhe.de
Newsgroups: comp.windows.interviews
From: bhogaval@BILTMORE.SSC.GOV (Bhogavalli Narasimha)
Subject: Mailing list
Organization: Internet-USENET Gateway at Stanford University
Date: Wed, 30 Sep 1992 15:39:30 GMT


I was under the impression that those in the mailing list recieve all the articles posted to the news group.

Am I correct or wrong?

Thanks for the clarification.

Narasimha (bhogaval@biltmore.ssc.gov)
Newsgroups: comp.windows.interviews
From: nancyp@TECHBOOK.COM (Nancy Parsons)
Subject: FAQ list
Organization: Internet-USENET Gateway at Stanford University
Date: Sun, 27 Sep 1992 06:38:36 GMT



Please send me information on where to ftp the interviews 
FAQ list - thank you. 


Newsgroups: comp.windows.interviews
From: ckeskin@cs.ulowell.edu (Can Keskin)
Subject: Re: Help! Image, raster, redraw (maybe a bug in Image?)
Organization: Interactive Media Group - University of Massachusetts at Lowell
Distribution: na
Date: Fri, 2 Oct 1992 22:48:02 GMT

I modified your program a little. I used a deck to flip betwen the images, 
which IMHO is really what you should do.
This works under 3.1beta2 (and should work under beta3) but I never got
anything to run correctly under beta1. So it still might not work under beta1.

--------------------------------CUT HERE---------------------------------------
#include <IV-look/kit.h>
#include <InterViews/layout.h>
#include <InterViews/session.h>
#include <InterViews/window.h>
#include <InterViews/tiff.h>
#include <InterViews/image.h>
#include <InterViews/patch.h>

class App {
public:
  App(int argc, char** argv);
  Glyph* make(WidgetKit&);
  void action();
private:
  Patch* patch_;
  Deck* deck_;
  Raster* one;
  Raster* two;
};

declareActionCallback(App)
implementActionCallback(App)

App::App(int, char** argv)
{
  one = TIFFRaster::load(argv[1]);
  two = TIFFRaster::load(argv[2]);
}

Glyph* App::make(WidgetKit&) 
{
  LayoutKit &layout = *LayoutKit::instance();

  deck_ = layout.deck();
  deck_->append(new Image(one));
  deck_->append(new Image(two));
  deck_->flip_to(0);

  patch_ = new Patch( deck_);
  return patch_;
}

void App::action ()
{
  deck_->flip_to((deck_->card()+1)%2);
  patch_->redraw();
}

int 
main(int argc, char** argv) 
{
  Session* session = new Session("Image", argc, argv);
  WidgetKit& kit = *WidgetKit::instance();
  const LayoutKit& layout = *LayoutKit::instance();

  App* a = new App(argc, argv);
  session->run_window(
    new ApplicationWindow(
      layout.vcenter(
        kit.outset_frame(
          layout.margin(
            layout.vbox(
                kit.push_button(
                  "pushme",
	          new ActionCallback(App) (a, &App::action)
                ),
              layout.vglue(),
	      a->make(kit)
            ),
            5.0
          )
         ),
         1.0
       )
    )
  );
}



Newsgroups: comp.windows.interviews,comp.lang.postscript,comp.sys.sgi
From: gklaass@nexus.yorku.ca (Gary Klaassen)
Subject: graph editors, idraw
Keywords: postscript, Interviews, idraw
Organization: York University
Date: Fri, 2 Oct 1992 19:13:11 GMT


Hello, we are trying to locate a graphics editor which will accept
as input a postscript file (produced by another non-editable graphics package).
We know we can edit the postscript instructions by hand, but that is
a very tedious task and we are looking for a more elegant solution.
We have been told that the idraw program which is part of the Interviews 
package can do this sort of thing. We have the man page for idraw, but
it isn't clear whether idraw can accept arbitrary postscript input
or whether it can only work on files that were created with idraw.

We transferred the idraw binary from sgi.com, but it dumps core
on our SGI 4D 310 running IRIX 3.3.3. Has anyone been able to get this binary
to work on their SGI? We don't have C++ so we can't
try to recompile Interviews. 

Does anyone know of any other programs for an SGI which can edit graphs using
postscript source as the input and output? Thanks, Gary Klaassen

Prof. G. P. Klaassen
Dept. of Earth and Atmospheric Science
York University, North York, Ontario, Canada  M3J 1P3
Email: gklaass@nexus.yorku.ca
From: daw@sc.zuken.com (Don Walters)
Newsgroups: comp.windows.interviews
Subject: Re: Client data in callbacks?
Date: 5 Oct 92 23:47:03 GMT
Organization: Internet-USENET Gateway at Stanford University

> Is it possible to pass client data thru a callback?  For example, I have (say)
> 20 buttons, each with almost identical behavior.  I'd like to write one callback
> and pass client data to the callback which identifies which button was pressed.
> I know I could subclass a button, but I'd prefer to use the existing kit's buttons.
> I could also wrap the button returned by the kit in a monoglyph with a field
> that identifies its contents, but that seems kinda like a kludge.
> Any suggestions?

I'm not sure I understood your application totally, but the easiest way I have
found to accomplish this is to subclass the Action class.  You then create a
unique instance of your Action subclass for each desired behavior.  You would
provide arguments to your constructor to set the parameter that should be sent
to the application.  And of course your subclass would override the "execute"
method so your application gets called with the parameter.

Don
daw@zuken.com
Newsgroups: comp.windows.interviews
From: thrasher@newbirth.eng.sun.com (Jim Thrasher)
Subject: Re:  List Problems
Organization: Internet-USENET Gateway at Stanford University
Date: Tue, 6 Oct 1992 16:38:12 GMT

 
> > I'm having some problems using the List class in InterViews 3.1 beta3.
> > In IV3.0 the following worked fine (simplified example):
> > ...
> 
> Try:
> 
> 
>  1  class Block
>  2  {
>  3      public:
>  4          int f();
>  5      private:
>  6          int n;
>  7  };
>  8
>  9  typedef Block* Blockp;		<<<<
> 10
> 11  declareList(BlockList,Blockp);	<<<<
> 12  implementList(BlockList,Blockp);	<<<<
> 
Hi:

I'm currently using this successfully (with Sun C++ 2.0.1 - Solaris 2.0.1)

declarePtrList(BlockList,Blockp);	// In the .h file
.....
implementPtrList(BlockList,Blockp);	// In the .cc file

I'm using different classes, though.

	-Jim Thrasher
> 
> The lexical parsing of the #defines of implementList and declareList seems
> to be somewhat incompatible with pointer types.  I really wish templates
> were available!!
> 
> 
> 	Hope this helps,
> 
> 	Adam Janin
> 
> ----------------------------------------------------------------------
> |       		      Adam Janin			     |
> |       	       Boeing Computer Services			     |
> |       	      Advanced Computing Systems		     |
> |       	       P.O. Box 24346, MS 7L-22			     |
> |       	       Seattle, WA  98124-0346			     |
> |       	      janin@espresso.boeing.com			     |
> |       		Work:  (206) 865-3545			     |
> |       		 Fax:  (206) 865-2966			     |
> |       		Home:  (206) 557-0615			     |
> |--------------------------------------------------------------------|
> |                                                                    |
> |  When a fly lands on the ceiling, does it do a half roll or a      |
> |  half twist?						             |
> |                                                                    |
> ----------------------------------------------------------------------
> 
> 
Newsgroups: comp.windows.interviews
From: paulm@monsoon.maths.monash.edu.au (Mr Paul Mullenmeister)
Subject: iv for DG
Organization: Monash University
Date: Fri, 2 Oct 1992 02:49:19 GMT

	We have just successfully build IV for DG Aviion (with some
advice from DG RTP USA:
Using IV 3.01
DGUX 5.4
X11R4
AT&T C++ 2.1.2
	We have successfully ported our SUNOS applications to DG
with no compile/link or runtime errors.  We will shortly build IV
3.1 for DG (pending post beta3 release).
	If anybody is interested in the mods to IV, let me know.

/*---------------------------------------------------------------------------*/
/* Paul Mullenmeister pxm@bom.gov.au                                         */
/* Consultant Community Climate Model  and Senior Systems Engineer           */
/* Bureau of Meteorology                   Lochard Environment Systems       */
/* Melbourne, VIC 3001 Australia           Caulfield, VIC 3162, Australia    */
/* FAX 61 3 669 4660                                                         */
/*---------------------------------------------------------------------------*/
Newsgroups: comp.windows.interviews,comp.lang.postscript,comp.sys.sgi
From: eoh@mace.cc.purdue.edu (Thom Hendrixson)
Subject: Panic: Kernel Fault
Organization: Purdue University
Date: Tue, 6 Oct 1992 15:30:55 GMT

This morning, when one of our users attempted to logout from the console, the
following message appeared:

PANIC: KERNEL FAULT
PC: 0x800E9E68 ep:80104958
EXC code:128, 'Software detected SEGV '
Bad addr: 0x0, cause: 0x30000108<CE1,CE0,SW1>
sr: 0xFE14<IM7,IM6,IM5,IM4,IM3,IM2,IM1,IE0,IEp>

dumping to dev 0x1621 at block 69292, numpages 4096

and the system crashed.  We have a 4D/35TG.  The machine seems to have 
rebooted without any problems, so is this a problem that we should be 
seriously concerned about?

Thom

-------------------------------------------------------------------------------
Thom Hendrixson, Ph.D.               |   !%&*        /                     
Whistler Center for Carbohydrate     |   __o        /  "Every uphill has a
 Research                            |  -\<,       /    downhill, but head-  
Purdue University                    |  0/ 0 _____/     winds go on forever."
e-mail: thom@kiwi.foodsci.purdue.edu | 
        eoh@mace.cc.purdue.edu       | 
phone: (317)-494-5248                |

Newsgroups: comp.windows.interviews,comp.lang.postscript,comp.sys.sgi
From: davis@dssdev.enet.dec.com (Peter Davis)
Subject: Re: graph editors, idraw
Organization: Digital Equipment Corporation
Date: Tue, 6 Oct 1992 15:17:33 GMT


In article <gklaass.718053191@yorku.ca>, gklaass@nexus.yorku.ca (Gary
Klaassen) writes...
> 
>Hello, we are trying to locate a graphics editor which will accept
>as input a postscript file (produced by another non-editable graphics package).
>

I doubt very much that you'll find something which edits arbitrary PostScript
files.  PostScript is an extremely rich language, and it's possible to create
the same effect in many different ways.  Given that, it would be extremely
difficult to write a program that can read any PostScript file and make
semantic sense out of it.  It would be possible, for example, to write a
program which extracts all the paths from a PostScript file, and saves the
grahics context at the time those paths are to be stroked or filled, but that
wouldn't necessarily give you something useful.  For graduated fills, for
example, you would end up with a huge number of slightly different paths with
slightly different color settings.

Adobe Illustrator format has become something of an industry standard, and
there are a number of packages which can import and/or export Illustrator
format.

Computer Support Corporation has a package called Decypher, which they claim
can read arbitrary PostScript files, and convert them to a format editable by
their Arts & Letters graphics package.  I don't know how complete or
successful it is, however.


                   /
                  /
        /  /  /  /		Peter Davis,	Digital Equipment Corp.
       /  /  /  /				davis@3d.enet.dec.com
      /__/__/__/
     /
  __/