HDTenEightyP/NetNews huggingface dataset:
From: kdh@nimrud.ira.uka.de (Klaus Hartenstein)
Newsgroups: comp.windows.x.intrinsics
Subject: --- BadFont X-Error when opening HP -display ---
Date: 23 Jan 93 17:41:09
Organization: Universitaet Karlsruhe
Distribution: world
NNTP-Posting-Host: i31s23.ira.uka.de


Hi,

the small test-program at the bottom produces the following
X-Error, when the other display is on a HP:

  X Error of failed request:  BadFont (invalid Font parameter)
    Major opcode of failed request:  55 (X_CreateGC)
    Resource id in failed request:  0x2800001
    Serial number of failed request:  11
    Current serial number in output stream:  29

Does anybody know a reason for it??

here's the code:
..................................................................

...

  top1 =  XtAppInitialize(&app_con,
			  "test",
			  NULL,0,
			  &argc,
			  argv,
			  NULL,NULL,0);
  if((d2 = XtOpenDisplay(app_con,
			 argv[argc-1],
			 "test",
			 "Test",
			 NULL, 0,
			 &argc, argv))==NULL){
    fprintf(stderr, "Cannot open display \n");
    exit(1);
  }
  top2   = XtAppCreateShell("test",
			    "test",
			    applicationShellWidgetClass,
			    d2, NULL,0);
  (void)XtVaCreateManagedWidget("test1",commandWidgetClass,top1,NULL);
  (void)XtVaCreateManagedWidget("test2",commandWidgetClass,top2,NULL);
  XtRealizeWidget(top1);
  XtRealizeWidget(top2);
  XtAppMainLoop(app_con);
}


-------------------------------------------------------------------------
   Klaus Hartenstein                 |    kdh@ira.uka.de
  Uni Karlsruhe F.R.G.               |
-------------------------------------------------------------------------
--
                                                       ///
                                                       o o 
---------------------------------------------------oOO-(_)-OOo-------
       Klaus Hartenstein          |  
       Uni Karlsruhe F.R.G.       |  Email: kdh@ira.uka.de
---------------------------------------------------------------------



Newsgroups: comp.windows.x.intrinsics
From: britt@leland.Stanford.EDU (Britt Park)
Subject: [Q] Which widgets can be popup parents?
Keywords: Xt, Xaw, popup, widget
Organization: DSG, Stanford University, CA 94305, USA
Date: Sun, 24 Jan 93 20:49:49 GMT

    Does anyone know why this code fragment fails when the passed
widget, button, is a menu entry (smeBSBObjectClass) but works fine when 
button is a command (commandWidgetClass):



static void do_save(Widget button, XtPointer client_data, XtPointer call_data)

{
    Arg		args[5];
    Widget	popup, dialog;
    Position	x, y;
    Dimension	width, height;
    Cardinal	n;

    n = 0;
    XtSetArg(args[0], XtNwidth, &width); n++;
    XtSetArg(args[1], XtNheight, &height); n++;
    XtGetValues(button, args, n);
    XtTranslateCoords(button, (Position) (width / 2), (Position) (height / 2),
		      &x, &y);

    n = 0;
    XtSetArg(args[n], XtNx, x);				n++;
    XtSetArg(args[n], XtNy, y);				n++;

    popup = XtCreatePopupShell("prompt", transientShellWidgetClass, button,
			       args, n);

    dialog = XtCreateManagedWidget("dialog", dialogWidgetClass, popup,NULL, 0);

    XawDialogAddButton(dialog, "ok", do_saveit, (XtPointer) dialog);
    XawDialogAddButton(dialog, "cancel", do_cancel,(XtPointer)dialog);

    XtPopup(popup, XtGrabNone);
}


The routine is the callback set for either the menu item, in which case
it fails at XtCreatePopupShell(), or the command, in which case it works
fine and pops up the dialog.  This is taken almost verbatim from the Xaw
examples program popup.c.  Are only certain types of widgets capable of
being parents to popups?  Any help will be appreciated. 

                                            Britt Park

                                            britt@cb-iris.stanford.edu


Newsgroups: comp.windows.x.intrinsics
From: rmbult01@starbase.spd.louisville.edu (Robert M. Bultman)
Subject: window close
Summary: How to get close window message from server
Date: Tue, 26 Jan 1993 02:12:11 GMT
Organization: University of Louisville
Keywords: window close

How do I get some kind of feedback from the server, such as a callback, that
notifies me that the user closed the program window via the close selection
on the window border menu?  I would like to allow the client to gracefully
exit rather that getting a fatal error in my xterm.

Thanks in advance,
Rob
-- 
Robert M. Bultman                              |
Speed Scientific School                        |
University of Louisville                       |
Internet: rmbult01@starbase.spd.louisville.edu |
From: drand@spinner.osf.org (Douglas S. Rand)
Subject: Re: How does one app send event to other app?
Organization: Open Software Foundation
Date: 22 Jan 93 11:42:15

In article <1993Jan20.192839.243@seas.gwu.edu> marshall@seas.gwu.edu (Christopher Marshall) writes:

   I would like to have application A send a button press event to 
   applicaiton B.  B shouldn't be able to tell the difference between
   the user clicking on its button and A sending it the event.

   Is this possible?

You can send the event using XSendEvent.  You can get the window
id to send the event to in any way you want (consider placing
the id as a value on a property on the root window).  But the
recipient can always tell that the event is synthetic by checking
the bit which says it was sent via sendevent.  This probably 
won't matter for most widget sets.

--
Douglas S. Rand <drand@osf.org>		OSF/Motif Dev.
Snail:         11 Cambridge Center,  Cambridge,  MA  02142
Disclaimer:    I don't know if OSF agrees with me... let's vote on it.
Amateur Radio: KC1KJ
From: jaitken@csugrad.cs.vt.edu (Jeff Aitken)
Newsgroups: comp.windows.x.intrinsics
Subject: colormaps
Date: 27 Jan 93 07:56:31 GMT
Organization: Virginia Tech Computer Science Dept, Blacksburg, VA
X-Newsreader: Tin 1.1 PL4


     I apologize if I am posting this in the wrong group, but I've got
a few questions concerning a program I am working on.  I have only
recently started to program in X, and one of my first attempts at a
program is one that draws several different types of fractals.  I have
two basic problems at this point.  First, I understand that it is
better to draw into a core widget than a label widget (I'm using the
Athena widgets, BTW), although I'm not so sure I understand why.
Second, I need to install a private colormap with 256 colors.  

1.  How do I draw into a core widget as opposed to a label widget?
    My application works fine if I use the label, but I have been
    unsuccessful drawing into the core widget and getting it to
    display.

2.  Why is it better to use a core than a label?

3.  How do I install a private colormap?  How do I choose which 
    colors go into it?  And how do I draw in different colors once
    I have done this?

I have numbers 2, 4, and 5 of the O'Reilly series on X, but there is
no clear explanation of any of these topics.  I would appreciate any
help anyone can give.  If you do not have time to help me out, perhaps
you could point me in the direction of more documentation or an
existing application that has _Easy to read_ code.  I have tried
looking at a few programs, but as I am inexperienced with this stuff,
they are usually too complex for me to figure out what is what.
Again, thanks in advance for any help.

-- 
Jeff Aitken                     |     
jaitken@csugrad.cs.vt.edu       |     Everyone is allowed to be stupid.
DEC User's Group Vice President |     It's  just that some people abuse
Va. Tech Computer Science Dept. |     the priviledge.
From: snail@lsl.co.uk
Newsgroups: comp.windows.x.intrinsics
Subject: Re: --- BadFont X-Error when opening HP -display ---
Date: 25 Jan 93 17:20:12 GMT
Organization: Laser-Scan Ltd., Cambridge

In article <KDH.93Jan23174109@nimrud.ira.uka.de>, kdh@nimrud.ira.uka.de (Klaus Hartenstein) writes:
> 
> Hi,
> 
> the small test-program at the bottom produces the following
> X-Error, when the other display is on a HP:
> 
>   X Error of failed request:  BadFont (invalid Font parameter)
>     Major opcode of failed request:  55 (X_CreateGC)
>     Resource id in failed request:  0x2800001
>     Serial number of failed request:  11
>     Current serial number in output stream:  29

Well, I'm not sure what's going on. Could it be that your fontList resource for
your program is specified using wildcards and the font found using this 
method on the HP server has a pixel height of zero? This means it is scalable.
We found that when this happens, running say, from a DECstation to a HP it
all bombs out. I can't remember if ours died as above or with a seg. fault.
I think this causes problems if the XLib in the application is a lower
revision that the server, and cannot handle fonts of height zero. Just a guess,
I don't have source code access - no room for on line, I wish!

Worth a thought though.
-- 
snail@lsl.co.uk      

"Washing one's hands of the conflict between the powerful and the powerless
 means to side with the powerful, not to be Neutral."
                                                     Quote by Freire.
                                                     Poster by OXFAM.
From: djk@hpfcmgw.FC.HP.COM (Dave Krenitsky)
Date: Thu, 21 Jan 1993 19:51:46 GMT
Subject: Re: XtAppInitialize on HP710
Organization: HP Fort Collins, CO
Newsgroups: comp.windows.x.intrinsics

Tracey,

I compilied and ran your program without any problems on the following:

720 with HPUX 9.01
710 with HPUX 9.01
850 with HPUX 8.00

It was always displayed on the 720.  I compilied it with: 
cc -g pbm.c -L/usr/lib/X11R4 -L /usr/lib/Motif1.1  -I/usr/include/X11R4
-I /usr/include/Motif1.1  -lXm -lXt -lX11

Also without -g on the 710 and 720.  What version of HPUX and libraries
are you using?

Regards,
Dave K.
Newsgroups: comp.windows.x.intrinsics
From: gxu@leland.Stanford.EDU (Guanghan Xu)
Subject: Writing VendorShell widgets?
Organization: Society for the Prevention of Cruelty to E. Coli
Date: Thu, 28 Jan 93 17:44:51 GMT

How is it possible to write a vendor shell widget without touching any
Xt source code?  I know that motif's vendor shell is written in this
way, but I'm not trying to do something so sophisticated.

Any help/tips/pointers are much appreciated.




Newsgroups: comp.windows.x.intrinsics
From: amc@WLV.IIPO.GTEGSC.COM (Allen M. Cohen)
Subject: DecTerm mouse button behaviour
Organization: GTE Government Systems
Distribution: na
Date: Tue, 26 Jan 93 17:58:17 GMT

Using dxterm on a DecStation 500/133, mouse btn 3 is defined as paste, even
though the X Windows standard seems to be MB2.
How can I define MB2 to be paste?
The man page for dxterm syas nothing about translations nor actions.
I've tried:
*DXterm.Translations: #override\
  ~Ctrl ~Meta <Btn2Down>: ignore ()\n\
  ~Ctrl ~Meta <Btn2Up>: insert-selection (PRIMARY, CUTBUFFER0)
I'm using X-window/Motif under Ultrix 4.2
-- 
<> Allen M. Cohen -- GTE Govt Sys 31717 LaTienda Dr Westlake Vlg, Ca. 91358 <>
<> 1853 Stonesgate St.            Internet:  amc@IIPO.GTEGSC.COM            <>
<> Westlake Village, Ca. 91361    Voice: (818) 706-6869 FAX: (818) 706-5050 <>
<><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><>
Newsgroups: comp.windows.x.intrinsics
Subject: Re: =======  The Free Widget Foundation(FWF) ======
From: tp@mccall.com (Terry Poot)
Date: Thu, 21 Jan 1993 18:28:20 CST
Reply-To: tp@mccall.com (Terry Poot)
Distribution: world
Organization: The McCall Pattern Co., Manhattan, KS, USA
Nntp-Posting-User: tp


What widget set are the free widgets based on, or are they all built from the Xt
widgets on up? Will they work with Motif?
--
Terry Poot <tp@mccall.com>                   The McCall Pattern Company
(uucp: ...!rutgers!depot!mccall!tp)          615 McCall Road
(800)255-2762, in KS (913)776-4041           Manhattan, KS 66502, USA
Newsgroups: comp.windows.x.intrinsics
From: dpotlur@hubcap.clemson.edu (Potluri Dora)
Subject: Help with motif text widget
Keywords: motif 1.1.3, Intrincis
Organization: Clemson University
Date: Fri, 29 Jan 1993 03:18:44 GMT


Hello netters!
	
	I am a developing a small application with motif user interface.
The interface consists a set of push button widgets and a text widget
on a paned window.
	The text widget should not only be able to display simple 
text but may contain iconified objects( these objects should have the
call back capability) throughout the document.

	I am particularly unable to embed these objects( may be icons)
into the displayed widget. 
	Is there any way I can accomplish this in the text widget? 
Any help is greatly appreciated. 
	
Potluri Dora
Clemson University
Clemson, sc 29631
-----------------------------------------------------------------------
e-mail address
dpotlur@sparerib.clemson.edu 
dpotlur@hubcap.clemson.edu
-- 
Potluri Dora
Information Systems Lab  
Clemson University
Clemson, sc 29631
From: taylor@foraker.tivoli.com (Eric Taylor)
Newsgroups: comp.windows.x.intrinsics
Subject: Object
Date: 22 Jan 93 05:47:35 GMT

Well, It finally happened that some other major library
I am using, CORBA, wants to use the type "Object".

Luckily I do not actually use "Object" in any of my code,
however I must include header files that use "Object".
I can play with #defines to just **BARELY** get my code
to compile.

But anyway, I think Xt needs to provide some mechanism
for allowing "Object" to be renamed.  i.e.

#ifndef XtObject
#define XtObject Object
#endif

and use XtObject everywhere instead of Object.

It would have been total disaster if I had to use Objects
in my code at all (either CORBA or Xt).
Newsgroups: comp.windows.x.intrinsics,comp.windows.x.pex
From: gaitat@gaitat.kgn.ibm.com (Saki)
Subject: Re: PEX-in-a-widget (TM)
Date: Wed, 27 Jan 93 00:50:27 GMT
Reply-To: gaitat@gaitat.kgn.ibm.com (Saki)
Organization: IBM Kingston NY
Keywords: technical, object-based

Certainly you can put PEX in a widget.  I have tried it using
PEXlib.  Depending on what you are trying to do, you might have
problems with colormaps and visuals but it is not that bad.

   __    ()  ,
  /  )   /`-'|       _/_     _/_
 /--/   /   / __.  o /  __.  /  __.  _  _
/  ( o /__-<_(_/|_<_<__(_/|_<__/  |_</_/_)_
                                 (|
Athanasios G. Gaitatzes
                                   gaitat@kgnvmy.vnet.ibm.com
These statements and/or opinions are not necessarily those of
                                                          IBM

\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\
From: picasso@cs.tu-berlin.de (Frank Ottink)
Newsgroups: comp.windows.x.pex
Subject: X-Server crashes; light_tool; T.Gaskins example;  PVERT_COORD_NORMAL
Date: 28 Jan 1993 10:13:22 GMT
Organization: Technical University of Berlin, Germany
Distribution: world
NNTP-Posting-Host: montage1.cs.tu-berlin.de
Keywords: pquad_mesh3_data( PFACET_NONE, PVERT_COORD_NORMAL, NO_COLOR,

Hi !

I have Problems with the light_tool example from the Tom Gaskins Book 
"Phigs Programming Manual" (First Edition). The X-Server crashes when
I am trying to render the cylinder or the sphere. What's wrong.

The cube works fine. It uses:

    popen_struct( CUBE_QUAD );
        pquad_mesh3_data( PFACET_NONE, PVERT_COORD, NO_COLOR,
            &array_dims, (Pfacet_data_arr3 *)NULL, &vertices );
    pclose_struct();

The cylinder and the sphere :

    popen_struct( SPHERE );
        vertices.ptnorms = vertex_data;
        array_dims.size_x = NUM_LONG_POINTS;
        array_dims.size_y = NUM_LAT_POINTS;
        pquad_mesh3_data( PFACET_NONE, PVERT_COORD_NORMAL, NO_COLOR,
            &array_dims, (Pfacet_data_arr3 *)NULL, &vertices );
    pclose_struct();


Or am I using examples that are not "uptodate"? Is there a better way
to get rendered modells?

Please help
From: spider@euclid.kgn.ibm.com (Gregory Scallan)
Newsgroups: comp.windows.x.pex
Subject: Re: transporting VAX VMS PHIGS to AIX system
Date: 24 Jan 93 19:40:58 GMT
Reply-To: spider@vnet.ibm.com
Organization: IBM AWSD Graphics Systems


 
> Woe is you....  I presume that you built your application with the FORTRAN
> API to PHIGS.  If so, you can eliminate the hope of using any PEX related
> libraries (PEXlib, PHIGS API to PEX) and you can probably eliminate the
> use of IBM's graPHIGS API (though you may be able to use the PHIGS API
> to graPHIGS - I don't know for sure.)
> 

graPHIGS has an ISO Fortran binding which your application is wriiten in.

> I do know, however, that you can use our product, FIGARO+, because we
> conform to the ANSI/ISO PHIGS standard for both FORTRAN and C.  You will
> definately have to do some editing because there are differences in
> implementation between DEC PHIGS and FIGARO+, though they're usually not
> differences in function names/parameters, but rather differences in 
> interpretation of the standard.  Our customers have been sucessful in 
> transitioning from DEC PHIGS to FIGARO+.
> 
> The major benefit of doing so is that when you're ready to work on an
> SGI or SUN or CRAY or PC or whatever (in addition to DEC VAX, Ultrix, and
> IBM RS/6000, CMS, and MVS), you just recompile and relink!
> 

Definitely a plus if you are looking for across platform portability.
I have little experience with FIGARO+, but I assume it is written on top of
GL or graPHIGS, so performance can be an issue, depending on the application.


Greg


____________________________________________________________
Gregory J. Scallan                       |  IBMnet:     GSCALLAN@KGNVMY
Graphics Systems Technical Center, AWSD  |  Internet:   spider@vnet.ibm.com
(914)385-5054  (T/L 695)                 |  Sneakernet: 203-2-2-2, Kingston
Newsgroups: comp.windows.x.pex
From: schultz@schultz.kgn.ibm.com (Karl Schultz)
Subject: Re: CGM file output from pex application.
Date: Tue, 26 Jan 93 16:45:41 GMT
Reply-To: schultz@vnet.ibm.com
Organization: IBM AWS Graphics Systems
Keywords: pex CGM

Don't forget the PEXEncodeOCs and PEXDecodeOCs functions in PEXlib.
They might be a little bit cleaner and easier than poking around in the
transport buffer or using pexscope.  Application changes would be required
however to use the PEXOCData structure.

-- 
Karl Schultz                             schultz@vnet.ibm.com
These statements or opinions are not necessarily those of IBM
Newsgroups: comp.windows.x
From: oj@miki.pictel.com (Oliver Jones)
Subject: Re: Blank out part of a screen
Organization: PictureTel Corporation
Date: Fri, 22 Jan 1993 02:29:26 GMT


In article <C17LBq.CvF@news.cso.uiuc.edu> e-sink@uiuc.edu writes:
>My app wants to be able to black out the entire screen with the exception
>of part of one window....Any ideas ?

Create and map four black-background borderless override_redirect
windows, the union of which cover everything on screen except what you
want.
From: lehors@koala.inria.fr (Arnaud Le Hors)
Newsgroups: comp.windows.x
Subject: ** Xpm3.2d is available **
Keywords: XPM
Date: 27 Jan 93 14:19:23 GMT
Organization: Koala Project, Bull Research France

As usual on ftp export.lcs.mit.edu contrib dir and avahi.inria.fr pub/xpm dir.


/* Copyright 1990-92 GROUPE BULL -- See license conditions in file COPYRIGHT */
/**************************************************************************\
* 									   *
*  			HISTORY of user-visible changes			   *
* 									   *
\**************************************************************************/

3.2d		(93/01/27)

    ENHANCEMENTS:
    	- compile on Solaris 2.0
		- patch from Clint Jeffery <cjeffery@cs.arizona.edu>

    BUGS CORRECTED:
	- shape masks are now set correctly for LSBFirst (Decs).
	- pixmaps are now set correctly for 2 bit displays (Nexts).
		- patch from Josef Leherbauer <joe@takeFive.co.at>
	- isspace was called on getc which fails when EOF is returned.
		- Marelli Paolo <marelli@colos3.usr.dsi.unimi.it>


-- 
 Arnaud LE HORS - lehors@sophia.inria.fr - BULL Research France, Koala Project
Newsgroups: comp.windows.x
From: lperroto@ens-lyon.fr (Laurent Perroton)
Subject: Running X on a Sparc 2 color 24 bits screen ?
Keywords: X 24 bits screen
Reply-To: lperroto@ens-lyon.fr
Organization: Ecole Normale Superieure de Lyon
Date: Tue, 26 Jan 1993 13:13:15 GMT

	Hi Xperts,

I tried to run 3 different X window managers : twm, tvtwm, gwm
on my Sparc 2 color 24 bits screen.
It says : "Fatal error: no screen found" (I have a screen on my workstation ...)
It works ok with a monochrome workstation.
It works ok with a color 8 bits workstation.

--> Does that mean it is impossible to run X on a 24 bit screen ?
--> Do I have to put some specials option ? (Which ones)
--> Is there a special X {server,window manager,other...} for 24 bits ? 
    (Where can I get it ? )

Sorry if the problem is in FAQ, but I didn't find the FAQ.
Thanks for your help.

------------------------------------------------------------
      ,---,  ,----.        Laurent PERROTON
     /   /  /     /           LIP - IMAG
    /   /  /  /  /  Unite de recherche associe 1398 CNRS
   /   /__/   __/     Ecole Normale Superieure de Lyon
  /      /   /            46, Allee d'Italie
 /      /   /             69364 LYON Cedex 07
'------'---'                    FRANCE
 email: lperroto@lip.ens-lyon.fr    phone: (+33) 72.72.84.35 
------------------------------------------------------------                                            


Newsgroups: comp.windows.x
From: eng40050@nusunix1.nus.sg (HENG LI SAN)
Subject: q
Organization: National University of Singapore
X-Newsreader: TIN [version 1.1 PL6]
Date: Thu, 28 Jan 1993 08:15:44 GMT


Xref: sparky comp.windows.x:21483 comp.protocols.tcp-ip.ibmpc:7640
From: markb@spock.dis.cccd.edu (Mark Bixby)
Newsgroups: comp.windows.x,comp.protocols.tcp-ip.ibmpc
Subject: Update: Hummingbird and PC/TCP 2.11
Date: 22 Jan 1993 10:21:55 -0800
Organization: Coast Community College District, Costa Mesa, CA
Reply-To: markb@cccd.edu
NNTP-Posting-Host: spock.dis.cccd.edu

Suggestions received via e-mail haven't worked.  There are plenty of
available PCTCP packets.

To debug further, I started EXCEEDP in telnet mode.  Instead of invoking
mwm on the Unix host, I tried to telnet back to my PC's port 6000, the
X Windows port, and I get "Connection refused".  EXCEEDP is probably not
even seeing any X-packets.  I suspect PCTCP is blocking them for some reason.
Sound familiar to anybody?

I've put a call into Hummingbird technical support, but they haven't returned
it yet.
-- 
Mark Bixby                         Internet: markb@cccd.edu
Coast Community College District   1370 Adams Avenue
District Information Services      Costa Mesa, CA, USA  92626
Technical Support                  (714) 432-5064
"You can tune a file system, but you can't tune a fish." - tunefs(1M)