HDTenEightyP/NetNews huggingface dataset:
From: drand@spinner.osf.org (Douglas Rand)
Subject: Re: OptionLabel problem since update to Motif 1.2
Organization: Open Software Foundation
Date: 2 Sep 92 16:48:25

In article <1992Sep2.152022.14385@rhrk.uni-kl.de> rohrbach@rhrk.uni-kl.de (Axel Rohrbacher [MW]) writes:

   we updated our Motif-version from 1.0 to 1.2 and we are working (now)
   with X11R5 on Sparc-stations. Then, we recompiled our Motif-Applications
   which are working fine but with one strange appearance:

   In some dialogs, we have Popup-Buttons, which are now right shifted at 
   the length of the word "OptionLabel", which is printed at the original
   position of the Popup-Button.

   I didn 't find a way to remove this string. Do I have to set some
   resources ? 

   Any hints and suggestions are welcome. Thanks

You can either unmanage the label gadget (get the ID using 
XmOptionLabelGadget) or set the label gadget to a empty XmString.  

--
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: osbornk@prism.CS.ORST.EDU (Kasey S. Osborn)
Newsgroups: comp.windows.x.motif
Subject: Re: Changing keyboard focus in motif, Help!!
Date: 31 Aug 92 19:18:01 GMT
Article-I.D.: CS.1992Aug31.191801.20291
Organization: Oregon State University, Computer Science Dept.

In article <1992Aug28.181659.27001@asd.com> scott@asd.com (Scott Barman) writes:
>In article <l9ljlrINNbbo@male.EBay.Sun.COM> lohia@prathvi.EBay.Sun.COM
>(Raj Lohia) writes:
>>Is there any way in motif, can I change keyboard focus to my 
>>program's window without having user using pointer to change focus
>>and regardless of window manager focus policy.
>>
>>I tried using XSetInputFocus in my program but it didn't work.
>>
>>I will appreciate any help/info.
>
>Try the following:
>
>	XmProcessTraversal(w, XmTRAVERSE_CURRENT);
>	XtSetKeyboarFocus(topLevel, w);
>
>where	w is the Widget you want to recieve the focus
>	topLevel is the return from XtInitialize or XtAppInitialize
>
>Some might argue using XmProcessTraversal() is enough.  I have found
>that in the cases where the destination widget is a compound widget or a
>gadget, this will not completly work (you get highlight but no input
>focus).  It always works when I add the XtSetKeyboardFocus(), so I do
>it like the above everytime.

From O'Reilly V4 (Motif edition) p. 461:

  However, XtSetKeyboardFocus should not be used in Motif applications,
  since it interferes with the keyboard traversal code.

I have been trying to solve a similar problem - forcing the focus
to a modal dialog box when it pops up AND getting the dialog box border
color to indicate one of its widgets has the focus.  It would be very
annoying for the operators to have to move the mouse around just
to follow my dialog box placement.

XtSetKeyboardFocus *does* make some headway on this problem, but
given the above quote, I don't trust it.

--
Kasey S. Osborn
osbornk@cs.orst.edu
"There's a lot to be said for brevity."
From: mhr@hitkw05.pki-nbg.philips.de (Muharem Hrnjadovic)
Newsgroups: comp.windows.x.motif
Subject: calculating of widget colors
Summary: ???
Keywords: foreground background shadow select color
Date: 2 Sep 92 15:11:25 GMT



Hello Xperts!

I'm trying to write a function that calculates the foreground, 
select, topShadow, and bottomShadow colors of a widget for a 
given background color. 
The solution presented in the O'Reilly Motif book uses the 
XmGetColors() function. This approach works pretty fine but 
has a MAJOR drawback:

	* After having calculated the colors XmGetColors() 
	  allocates entries in the color map (color cells) 
	  and sets these appropriately

Calling this function too often results in consuming all available 
color map entries.

If the allocation of color map entries is not wanted one can 
retrieve a pointer to the function used by Motif for the color 
calculation (by calling XmGetColorCalculation()).
The color map is not changed by this function. The provision
of appropriate color cells is in the responsobility of the
programmer.

I tried this; for about 60% of the (background) colors in the 
data base the (foreground, select, topShadow, and bottomShadow)
colors calculated compare to these obtained by the first method.
For the rest of the colors the shadow or selection colors 
calculated are different (e.g. less pleasing).

Theoretically the colors should be the same regardless of the method
(the same function is used for the calculation) or did I misunderstand
something ? 

Help !



  -- M. Hrnjad.



------------------------------------------------------------------------------
       Muharem Hrnjadovic * Elsnerstr. 2 * 8500 Nuernberg 80 * Germany
                         mhr@pki-nbg.philips.de       
                work +49 911 5263963, priv +49 911 263992
------------------------------------------------------------------------------
From: gwf@sapphire.bellcore.com (George W. Fleming)
Subject: Motif 1.2 Books
Organization: Bellcore, Livingston, NJ
Date:  1 Sep 92 12:50:00 GMT
Summary: Can someone recommend a good one...
Keywords: recommendation

Are there books out that deal with programming with Motif 1.2?  If so,
can someone recommend a good one?

Thanks.


-- 
-------------------------
George W. Fleming
gwf@sapphire.bellcore.com
-------------------------
From: lr@laurie.smec.Sony.COM
Newsgroups: comp.windows.x.motif
Subject: Text manipulation in a Drawing Area
Date: 25 Aug 92 17:05:57 GMT
Distribution: inet
Organization: The Internet

I am new to Motif programming, and am trying to test different
possible applications.  One application is annotation of images.
I would like to be able to place a line of text on an image.  I
would then like to be able to select that text and move it to a 
different location.  I would be satisfied in keeping the line(s)
together and not allowing the separation of text.  I'll save that
for another day.

 - I thought of creating a widget for the text and placing that over
the image, but I do not know how to make the background of the widget
transparent so that only the text shows.  Is this possible?

 - Could just the text be an overlay? 

 - I know that I could go through the process of saving areas of the image
	for replacing when the text is moved, but that seems book-keeping
	intensive.

Thanks in advance for all suggestions.

Apologies if this is the wrong place to ask this.

lr@smec.sony.com
sony medical
montvale,nj
(201)358-4988
From: g40g@faculty.coe.wvu.wvnet.edu
Newsgroups: comp.windows.x.motif
Subject: Documentation on X
Date: 27 Aug 92 02:13:13 GMT
Organization: WVU College of Engineering

Hi Netters :

Is there any documentation available on the anonymous ftp sites ?
If there is any please send a reply to fawzi@ds5500.coe.wvu.wvnet.edu

Thanx in advance
Fawzi
Dept of Electrical Engg.
West Virginia University
West Virginia
Newsgroups: comp.windows.x.motif,comp.sys.hp
From: marbru@auto-trol.com (Martin Brunecky)
Subject: Re: The PW library on HP700
Organization: Auto-trol Technology Corporation
Date: Thu, 27 Aug 1992 22:58:22 GMT

In article <1992Aug27.150351.24327@lmpsbbs.comm.mot.com> francois@mot.com (Andre Francois) writes:
>Does anyone know what the PW library is for.  I cannot "kmake" some 
>motif1.1 examples because they require this library (i.e. libPW.a) which

 libPW defines regex() and regcmp(), used by the File Select widget
 when compiled without -DNO_REGEX.

 

-- 
=*= Opinions presented here are solely of my own, not those of my employer =*=
Martin Brunecky           marbru@auto-trol.com                  (303) 252-2499                       
Newsgroups: comp.windows.x.motif
From: djd@digicomp.com (Dan Driscoll)
Subject: Motif 1.1.x with X11R5
Organization: DIGICOMP RESEARCH CORPORATION
Date: Tue, 1 Sep 92 20:02:12 GMT

Has anybody had any experience with using Motif 1.1.x with X11R5?


-- 
Dan J. Driscoll				djd@digicomp.com
Computer Systems Manager		Ithaca, N.Y.	
Digicomp Research Corporation		14850					
Newsgroups: comp.windows.x.motif
From: tghe337@cdc835.cdc.polimi.it ()
Subject: Motif widgets and 24 bit color graphics
Date: Wed, 26 Aug 1992 09:47:09 GMT
Organization: C.d.C., Politecnico di Milano
Keywords: motif widgets 24 bit

Does Motif 1.1 support 24 bit colors ??

I'm trying to use a CRX-24 Graphics adapter ( on a HP 720 )
and I need a screen area with 24-bits color depth...
any help ??

Thanks a lot..

Newsgroups: comp.windows.x,comp.windows.x.apps,comp.infosystems.gopher
From: d-lewart@uiuc.edu (Daniel S. Lewart)
Subject: Re: X public domain software index available through gopher
Originator: dslg0849@uxa.cso.uiuc.edu
Reply-To: d-lewart@uiuc.edu (Daniel S. Lewart)
Organization: University of Illinois at Urbana
Date: Mon, 31 Aug 1992 05:38:20 GMT
Keywords: X, gopher

bobmcg@castle.ed.ac.uk (Bob McGonigle) writes:

> The first results of a pilot project are now available from the gopher
> host <gopher.ac.ed.uk>.  It attempts to provide browsing facilities for
> public domain X software.

This should be <gopher.ed.ac.uk> (129.215.200.8).

> It contains an, almost current, index on comp.sources.x. It is planned
> to also index export.lcs.mit.edu in the near future.

I hope my `00-index.txt' file is helpful.

Daniel Lewart
d-lewart@uiuc.edu
Newsgroups: comp.windows.x
From: N.Davis@lut.ac.uk (Neil Davis) 
Subject: Any problems with fix-17?
Reply-To: N.Davis@lut.ac.uk (Neil Davis)
Organization: Loughborough University, UK.
Date: Tue, 1 Sep 92 12:01:43 GMT

Hi,

I have just installed fix-17 for the X11R5 server, and as far as I can tell,
I have followed the instructions to the letter.......

Unfortunately, now when I start the server, all my client start and then the server crashes! As the clients start up, I noticed that the mouse  is 'stuck'
to the screen.

So, here's what dbx has to say about the core image:

dbx /usr/bin/X11/Xsun.FCS core
Reading symbolic information...
Read 3958 symbols
program terminated by signal SEGV (no mapping at the fault address)
(dbx) where
MouseAccelerate() at 0x4e88
sunMouseEnqueueEvent() at 0x5020
sunEnqueueEvents() at 0x3798
SigIOHandler() at 0x2294
_sigtramp() at 0xf7732c4c
DetailSupersedesSecond() at 0x1d4e8
GrabMatchesSecond() at 0x1d5e4
AddPassiveGrabToList() at 0x1d76c
ProcGrabKey() at 0x19fa4
Dispatch() at 0x301a4
main() at 0x1e32c
(dbx) 

My configuration is as follows:

	SS1 + SunOS4.1.2 + X11R5 (pl 16) [working!]
	                 + X11R5 (pl 17) [ NOT working ]


Does anybody have any suggestions (polite please!)
Regards
Neil (D)
Newsgroups: comp.windows.x
From: gary@vitellocmc.ca (Gary Braida)
Subject:  Converting Sun 3/60 to X terminal 
Reply-To: gary@scorpio.ic.cmc.ca
Organization: Canadian Microelectronics Corporation
Distribution: na
Date: Tue, 25 Aug 1992 17:10:27 GMT

We have a few Sun 3/60 workstations kicking around and we would like to 
experiment with converting one of these workstations to an X server.  We
are using all Sun SPARC based machines in our Unix environment so the X server
would have to fit it somewhere.  Has anyone done this before?  


-- 

Gary Braida             |     Canadian       |       ******  *******  ******
email:  braida@cmc.ca   |  Microelectronics  |      *       *  *  *  *
phone:  (613) 545-2914  |    Corporation     |     ******  *     *  ******
Newsgroups: comp.windows.x
From: christia@latenite.ssc.gov (Mike Christiansen)
Subject: multiple screens (display), single pointing device....
Organization: SSC Laboratory, Dallas, TX
Distribution: usa
Date: Sat, 29 Aug 1992 20:45:16 GMT

Is it possible under R5 to support multiple displays using a single
mouse / pointer. That is, like the mac I want to install two (or
three) frame buffers and manipulate windows on all three through a
single pointer such that the cursor is run into the side of one, it
apperars on the next longical display. Is this possible under
open-look?

thanks
--
----------------------

Mike Christiansen
Superconducting Super Collider Laboratory
Controls Group
2550 Beckleymeade Ave.
MS.4002
Dallas, TX. 75237

214-708-3415
christia@latenite.ssc.gov
Newsgroups: comp.windows.x
From: jigang@dale.ssc.gov (Jigang Yang)
Subject: Colormap questions
Keywords: Colormap
Organization: SSC Lab
Date: Wed, 2 Sep 1992 14:25:22 GMT


    Is there a text file in X11 giving standard colormap RGB values ?

-- 
Jigang Yang, jigang@dale.ssc.gov, jyang@sscvx1.bitnet
2550 Beckleymeade Ave. MS 4011  Tel: 214-708-3498
Dallas, TX 75237                Fax: 214-708-4898 
 
Newsgroups: comp.windows.x
From: hrt@utne.aosg.gsf.dec.com (Henry R. Tumblin AOSG)
Subject: Re: XDM configuration question
Reply-To: hrt@aosg.gsf.dec.com
Organization: AOSG
Date: Wed, 26 Aug 1992 13:12:12 GMT

> Can anybody tell me whether the xdm-config file gets passed through cpp or not.
> In particular, I would like to make parts of it conditional on the hostname of the
> current system. Our configuration files are NFS exported to some workstations, and
> I would like to conserve that part of the configuration while having the possibility
> to adjust some xdm configuration settings per host.

Why not just wrap a script around xdm and specify a different config file to
xdm dependant upon the hostname?

/Henry
--
Henry R. Tumblin                        Alpha Open Systems Group



Newsgroups: comp.windows.x
From: izeek@techunix.technion.ac.il (Ilan Aisic)
Subject: Re: Getting color names(char*).
Reply-To: izeek@techunix.technion.ac.il (Ilan Aisic)
Organization: Technion, Israel Inst. of Technology
Date: Thu, 3 Sep 1992 11:38:15 GMT

In article <3533@unisql.UUCP> nandraj@unisql.UUCP (Nandraj Arni) writes:
> ...
>   Say, if you make an application with motif GUI. You want to get
>the name of colors of some resources programmitically. How would
>you do that at any level, Xlib, Xt or Motif?
> ...

Well, I'm not sure how you do it from Motif. I've done something similar
in an Xlib program.
In X, the color names and specifications are listed in the color database
file.  A textual version of it may be usually found in
/usr/lib/X11/rgb.txt or $OPENWINHOME/lib/rgb.txt.

Two things you have to bare in mind:
1. You can display many more colors which don't have names than colors with
   names.
2. Often, more than one color name in the color database refer to the same
   RGB (Red Green Blue) values.

As far as I can remember, Xlib doen't provide a way to query a color rgb 
spec or a color cell and get back a "known" color name.  Maybe because
of the clear ambiguity that comes from (1) and (2) above.
Xlib does provide a way to get the RGB values for a given color name
with the function "XLookupColor".

If you still want to get the colorname, I suggest you process the rgb.txt
file yourself and keep it in some kind of a data structure in your 
application.  Then, when you want to get the name of a given colorcell,
you may search this table to find the best match (a topic in itself
regarding colors). Maybe you'll get a "hit" but then again, 
may get more than one hit and you'll have to decide which one to use.

    ____
     /  /   __
    /  /   /_/ /| /
 __/_ /__ / / / |/   o o o

                           Ilan Aisic
           Israel                                 USA
Voice:   972-4-344474                         1-914-644-7710
Fax:     972-4-342492                         1-914-644-7763
E-mail:  izeek@techunix.technion.ac.il        ilan@allink.com
-- 

    ____
     /  /   __ 
    /  /   /_/ /| /
Newsgroups: comp.windows.x
From: sinan@Mtesol.boeing.COM (Sinan Karasu)
Subject: Re: GUIs Considered Harmful
Organization: The Internet
Date: Tue, 25 Aug 1992 16:30:48 GMT


> From xpert-mailer@expo.lcs.mit.edu Mon Aug 24 19:26:40 1992
> Date: 24 Aug 92 15:18:46 GMT
> From: peter@ferranti.com (Peter da Silva)
> Peter da Silva                                               `-_-'
> $ EDIT/TECO LOVE                                              'U` 
> %TECO-W-OLDJOKE Not war?                        Have you hugged your wolf today?
  ^^^^^^^^^^^^^^^^^^^^^^^^
  It does not work!!!
> Ferranti Intl. Ctls. Corp.      Sugar Land, TX  77487-5012       +1 713 274 5180
> 
Newsgroups: comp.windows.x
From: versloot@rwzl01.zld.rws.nl (Jack versloot)
Newsgroups: comp.windows.x,comp.unix.questions
Subject: Help wanted on hpterm problem
Keywords: X, hpterm
Date: 3 Sep 92 14:58:22 GMT
Followup-To: poster
Organization: Dutch Min. of transport Zeeland, Middelburg


Help wanted on the following problem.

First some information:
Language: FORTRAN
Machine : HP9000
Terminal: hp

I have a program doing the following:
   - set up protected fields on the terminal
   - let the user enter some data in these fields
   - reading lines from the terminal (with the entered information) with:
        READ (*, '(A)') line

To read lines ESCd is sent to the terminal. The character*512 variable
line is searched for ESC[ (begin protected field) and ESC] (end
protected field). All information between these two codes will be the
information entered by the user.

This works FINE for a real hp-terminal. On a X-window with hpterm it
doesn't work however! The last field on each line is misformed: the
code for 'end protected field' is missing.

My question: 
   Why?
and more important:
   What can I do about it?

Is hpterm not completely compatible with a hp-terminal or should I (maybe)
give hpterm some options or what?

If you have the answer please send it by E-mail to the
following address:

             ingen@rwzl01.zld.rws.nl
From: tdunbar@vttcf.cc.vt.edu (Thomas Dunbar)
Newsgroups: comp.windows.x
Subject: Re: PCs/Macs as Xterminals - any advice?
Date: 3 Sep 92 13:00:34 GMT
Organization: Virginia Tech, Blacksburg, VA


a
 > high-resolution 14-inch monitor      $1,100
you've got to be kidding! my $420 viewsonic 5e displays 1024x768
at a 72.6hz refresh rate..what more could one want from a 14" 
monitor!
 thomas
From: rickg@eng.sun.com (Richard M. "The Tankster" Goldstein)
Newsgroups: comp.windows.x
Subject: Re: Xview3
Date: 28 Aug 92 09:19:49
Organization: SunSoft, Inc.
Reply-To: rickg@eng.sun.com
NNTP-Posting-Host: irondude
In-reply-to: shelby@convex.com's message of Wed, 26 Aug 1992 23:28:56 GMT


   Newsgroups: comp.windows.x
   From: shelby@convex.com (Mark Shelby)
   Organization: CONVEX Computer Corporation, Richardson, Tx., USA
   Date: Wed, 26 Aug 1992 23:28:56 GMT

   I have some code that is core dumping (inward ring address
   error).

   The code actual bombs in "attr_find", but that routine works
   correctly when called from other routines. I was wondering
   if anyone has used "cursor_copy" call with no ill affects. I am 
   using Xview3 libraries from mit.

   Here is look at the stack trace.  Thanks for any leads.


bug.  here's a fixed version of the function, if you
need it:

 
	Xv_Cursor
	cursor_copy(cursor_public)
	    Xv_Cursor cursor_public;
	{
	    return xv_create(xv_get(cursor_public,XV_OWNER),CURSOR,
	                     XV_COPY_OF,cursor_public,NULL);
	}


<<tank
--

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

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

	"I don't practice what I preach because I'm not the kind
	of person I'm preaching to"

				-"Bob" in Newsweek

*********************************************************************
From: reed@snake.tc.cornell.edu (Michael G. Reed)
Subject: Re: xrn 6.17 domain problem
Followup-To: comp.windows.x
Reply-To: reed@Theory.TC.Cornell.EDU
Organization: Cornell National Supercomputing Facility
Distribution: comp
Date: Wed, 26 Aug 1992 20:07:05 GMT

It also helps if your sysadmin would put decent defaults in when they build xrn.
Take a look at the header file and adjust it accordingly before the build, that
way the users don't need to specify any extra variables...

-Michael

In article <1992Aug26.165217.28259@ennews.eas.asu.edu>, scowen@wfpc3.la.asu.edu (Paul A. Scowen) writes:
|> Hi,
|> 
|> yes this is an easy one to solve - you need an environment variable called
|> DOMAIN set to a string like ".dec.com" or somesuch.  It needs to be able to be
|> directly concatenated to your hostname as understood by the mailer.  Also,
|> I've found it's a good idea to have the variable ORGANIZATION defined too.
|> 
|> -- 
|> -------------------------------------------------------------------------------
|> Paul A. Scowen				INTERNET: scowen@wfpc3.la.asu.edu
|> Department of Physics & Astronomy		  uk1@spacsun.rice.edu
|> Arizona State University		Tel:      (602) 965-0938
|> Tempe, AZ 85287-1504			FAX:      (602) 965-7954
|> -------------------------------------------------------------------------------

-----------------------------------------------------------------------------
Michael G. Reed                                  (reed@Theory.TC.Cornell.edu)
Cornell National Supercomputing Facility                       (607)/254-8806
-----------------------------------------------------------------------------
        Why be normal, it's boring; and boring people should be shot.

Note:  These are not the views of my employer (and probably not mine either).
Xref: sparky comp.windows.x:15705 comp.windows.x.motif:5857
From: kenny@castle.ed.ac.uk (K J MacDonald)
Newsgroups: comp.windows.x,comp.windows.x.motif
Subject: mxgdb - Motif dbx
Summary: Problems with the <subject>
Date: 27 Aug 92 13:25:45 GMT
Followup-To: comp.windows.x.motif
Organization: Edinburgh University

Dear All,
	I downloaded mxgdb Version 1.01 from lancs.ac.uk, but there seem
to be a few bugs in it.

	eg. It won't display ANY source code at all.

	I was wondering if there were any more recent versions out there
? It looks like a nice front end to dbx.

	E-mail me or post, 
		Kenny.

-----------------------------------------------------------
Kenneth MacDonald		E-mail kenny@castle.ed.ac.uk
Dept. of Geology & Geophysics
University of Edinburgh		Scotland
-----------------------------------------------------------
Xref: sparky comp.windows.x:15723 comp.windows.x.apps:852
From: oj@miki.pictel.com (Oliver Jones)
Newsgroups: comp.windows.x,comp.windows.x.apps
Subject: Multiple-display software?
Date: 27 Aug 92 13:33:58 GMT
Followup-To: poster
Organization: PictureTel Corporation

Hi, all.

I'm collecting information on various approaches to multiple-display
software for X, for a survey article I'm putting together.

If you have or know about any multiple-display software packages (for
example wscrawl, shdr, shX, xmx, and so forth) please send me some
information on them.  I'm interested in freely available software,
commercial products, and in-house application programs.

Thanks. 


Ollie Jones                  PictureTel Engineering
email:  oj@pictel.com        222 Rosewood Drive
tel:   +1(508)977-8396       Danvers, MA 01923-1393
video: (+1)700-561-9938&9939 fax: +1(508)532-6893
Newsgroups: comp.windows.x