HDTenEightyP/NetNews huggingface dataset:
From: koverber@magenta.ulowell.edu (Kurt Overberg)
Subject: Anyone suggest any good C++/Motif books?
Organization: University of Massachusetts at Lowell CS Dept.
Distribution: comp
Date: Thu, 16 Apr 1992 14:43:48 GMT


Hi, 
	Could anyone suggest any good C++ with Motif books?  Post here
or mail to koverber@cs.ulowell.edu.

					Thanks,  

					  Kurt
--
--
Kurt Overberg            |  The opinions expressed here are not           
Interactive Media Group  |    necessarily those of my employers.  
U of Mass, Lowell        | "The nice thing about standards is that       
koverber@cs.ulowell.edu  |  there are so many to choose from." - A. Tanenbaum

Xref: sparky comp.windows.x.motif:3115 comp.windows.x:9753
From: solomon@pa621a.inland.com (Paul J. Solomon)
Newsgroups: comp.windows.x.motif,comp.windows.x
Subject: How to get mouse x,y location???
Date: 8 Apr 92 18:54:39 GMT
Organization: Inland Steel Company, East Chicago, IN
Nntp-Posting-User: lu

Greetings!

Does anyone know how to query the X-server for the current x,y coordinates
of the mouse pointer?

Any help would be greatly appreciated.  :-)

-paul.
-- 
----------------------------------------------------------------------
| Paul J. Solomon            |  "Consequences, Schmonsequences...    |
| solomon@pa881a.inland.com  |       as long as I'm RICH!!!"         |
| Inland Steel Co.           |             -Daffy Duck               |
----------------------------------------------------------------------
Newsgroups: comp.windows.x.motif
From: stefans@bauv106.informatik.unibw-muenchen.de (Stefan Schwarz)
Subject: Re: tabs in the items of a scrolled list
Organization: Universitaet der Bundeswehr Muenchen (Germany)
Date: Fri, 10 Apr 1992 10:09:34 GMT

margi@indigo.asd.sgi.com (Margie Levine) writes:

>I have a scrolled list that is created by reading in a file and
>making each line an item in the list.  The lines in my file have
>tabs in them and when they appear in the scrolled list, the tabs
>dissappear.  This makes the fields in each line look packed one
>against the next.  Is there any way to get a list to recognize my
>tabs?

I think the onliest way will be using a Courier (equally-spaced) font
and replacing tabs with spaces.

Stefan
-- 
________________________________________________________________________________
Stefan Schwarz                            University of the armed forces, Munich
Laboratory for graphical data processing  W-8014 Neubiberg, FRG
--------------------------------------------------------------------------------
From: dan@eye.com (Dan Loewus)
Newsgroups: comp.windows.x.motif
Subject: Re: Sharing a window.
Date: 9 Apr 92 19:32:31 GMT
Distribution: inet
Organization: 3D/EYE, Inc.  Ithaca, NY

In article <9204061637.AA16066@visual.com> dbl@visual.COM (David B. Lewis) writes:
>	Note also that two processes can share a window but should not try to 
>use the same server connection. If one process is a child of the other, it 
>should close down the connection to the server and open its own connection.
>

Does this mean that a child process should actually do an XCloseDisplay()
after birth?  I assume this shutdown is automatic if the child does an exec() 
up another executable and the XCloseDisplay() is not needed.  I gather this
is in connection to the socket used between then server and the client. 

Dumb question:  Will XCloseDisplay() called by child close out parents
    resources in server?  i.e. How does server know its a child?
-- 
"A typical half brick half wood New York house in a typical New York
 suburb with ginkgo trees scattered conservatively about."

 DL
Newsgroups: comp.windows.x.motif
From: jzeng@norway.biop.umich.edu (Jim Zeng (313)763-5449)
Subject: Questions on Motif 1.1.4 and X11R5 on SS2 running 4.1.1
Date: Thu, 09 Apr 92 16:53:08 EDT
Organization: University of Michigan, Biophysics Division
Distribution: usa
Originator: jzeng@norway.biop.umich.edu

Hello there,

  I am to compile Motif 1.1.4 and X11R5 on a SparcStation II
running SunOS 4.1.1. Before I start doing this, I would like to 
consult the net people about some doubts in my mind.

  1. Will Motif 1.1.4 and X11R5 work well together?
  2. In motif distribution directory, there is a subdirectory called
     X11R4 which contains some patches for X11R4, do I still have to
     apply these patches to X11R5 or do I have to obtain different
     patches for X11R5?
  3. Will XView work on top of Motif window manager?

  Your help will be greatly appreciated.

--Jim
From: nazgul@alfalfa.com (Kee Hinckley)
Newsgroups: comp.windows.x.motif
Subject: Re: Activate callback for Option Menu Pushbuttons
Date: 14 Apr 92 22:13:34 GMT
Distribution: inet
Organization: The Internet

> Hello everybody,
> 
>   We are having a small problem with activate callbacks for option menu
> pushbutton children.  If you perform what we call a "quick click" on the
> option menu, that is, if you button press and button release fast enough
> that the menu remains posted, the activate callback is called for the
> push button that happens to be under the mouse at the time of the release.
> Then when you select your choice from the menu that callback also gets called.

>   Our questions?  Is this just the way it is?  Does Motif 1.1.3 address this?
> Has anybody else taken care of this in their applications?

Known bug, I'm not sure when it's fixed, however the user can work around it
by clicking on the option-menu indicator instead of the text.  Not perfect,
but something.

Alfalfa Software, Inc.          |       Poste:  The EMail for Unix
nazgul@alfalfa.com              |       Send Anything... Anywhere
617/646-7703 (voice/fax)        |       info@alfalfa.com

I'm not sure which upsets me more: that people are so unwilling to accept
responsibility for their own actions, or that they are so eager to regulate
everyone else's.
From: craig@spool.mu.edu (Craig Schanning)
Newsgroups: comp.windows.x.motif
Subject: XtCallbackPopdown
Date: 9 Apr 92 01:33:36 GMT
Article-I.D.: spool.2631
Reply-To: craig@spool.mu.edu (Craig Schanning)
Organization: Marquette University - Department MSCS


	I am having trouble working with XtCallbackPopdown.  Can
someone please send me some example code that makes it work?  Just
a small program that allow you to popup a secondary shell and to close it
again.  I'd really appreciate it.

	Oh ya, I'm using X11r4.  Please reply to the address below, not
the sender.

		pwickman@cerebus.cc.edu



	
--
Paul J. Wickman - Systems/Network Administrator, Computer Science Dept.
Carroll College	 Waukesha, WI 53186
Internet: pwickman@carroll1.cc.edu	Phone: 414-524-7343


Newsgroups: comp.windows.x.motif
From: dxz@samurai.ics.hawaii.edu (Dee Zhang)
Subject: auto creating in list widget? : -)
Organization: SRA, Inc.
Date: Fri, 10 Apr 1992 00:14:43 GMT


I use the following code to unselected items in a list widget, but it
seems an empty item is appended to the list every time the code is
excuted.  Does anybody know what is wrong?

      XtVaSetValues(list,
		    XmNselectedItemCount, 0,
		    XmNselectedItems, NULL, NULL);

I tried using

      XmListDeselectAllItems(list);

same result.

Are there any other ways to unselect from a list?

Any information is welcome.


I am using Motif1.1 X11R4(Our system administrator is too bazy to
apply patch files to X11R5 :-)
From: poepping@uni-paderborn.de (Manfred Poepping)
Newsgroups: comp.windows.x.motif
Subject: XmNdefaultButton and XtOpenDisplay-XtCloseDisplay
Date: 9 Apr 92 08:00:59 GMT
Article-I.D.: uni-pade.1992Apr9.080059.24122
Organization: Uni-GH Paderborn

Hi netlanders,

   \
 1  >   Everybody knows the meaning of the attribute XmNdefaultButton !!!
   /	And everybody knows that you don't need to set the XmNshowAsDefault
	for the PushButton you've chosen.
	But who can tell me why this stuff only works when I'm using
	XmNunitType XmPIXEL. I prefer using Xm100TH_FONT_UNITS instead.

	Is it a Motif-Feature that will be fixed one day, or is it
	already fixed in Motif 1.1.(4+n) n = {0,1,2,3,...}

   \
 2  >	I have problems when calling XtOpenDisplay and XtCloseDisplay
   /	too often. Sometimes it works three time and sometimes up to
	nearly 12 times. But this can't make me happy. Any idea ???

Thanks in advance to those experts who still have the time to answer
to those questions.

Manfred

===========================================================================

Dipl.-Inf. Manfred Poepping
Universitaet Paderborn
Fachbereich 17 - Informatik
Postfach 1621
D-4790 Paderborn
Tel.: 05251-60-2076
poepping@uni-paderborn.de
From: argv@z-code.z-code.com (Dan Heller)
Newsgroups: comp.windows.x.motif
Subject: Re: Examples Motif
Date: 16 Apr 92 17:52:12 GMT
Reply-To: argv@z-code.z-code.com
Distribution: inet
Organization: The Internet

> On Apr 15,  5:29pm, iis!shahs@Sun.COM wrote:
> Is there any archive site export.lcs.mit.edu where i can find
> a file with all examples from Motif Programmer Vol 6 by O'Reilly Asso.?

export.lcs.mit.edu:contrib/OReilly/motif/examples.tar.Z

  --dan
From: nazgul@alfalfa.com (Kee Hinckley)
Newsgroups: comp.windows.x.motif
Subject: Re: Turning ON/OFF Objects in a window
Date: 9 Apr 92 18:39:55 GMT
Distribution: inet
Organization: The Internet

> I am currently writing a Motif program from which I wish to use one menu scheme for many windows.  I also have a fixed list of information I wish to show the end-user.  I do not, however want to enable all sections of the menu or the list for everyone.
> 
> The question is : How do I turn off elements inside a menu or list window?
> 
> I know I need to just 'Grey' them some how, but am not very experienced with programming in Motif.
> 
> Any suggestions will be greatly appreciated.

First you call XtSetSensitive(widget, False).  Then you add a .signature so I
can reply to you instead of the motif list or
	van-bc!wolfe.wimsey.bc.ca!rsoft!agate!spool.mu.edu!sol.ctr.columbia.edu!usc!cs.utexas.edu!utgpu!cunews!nrcnet0!bnrgate!bwdls58!BNR.CA!thomas@ucbvax.Berkeley.EDU
and then you turn on word wrap in your mail system :-).


Alfalfa Software, Inc.          |       Poste:  The EMail for Unix
nazgul@alfalfa.com              |       Send Anything... Anywhere
617/646-7703 (voice/fax)        |       info@alfalfa.com

I'm not sure which upsets me more: that people are so unwilling to accept
responsibility for their own actions, or that they are so eager to regulate
everyone else's.
Newsgroups: comp.windows.x.motif
From: amc@wlv.imsd.contel.com (Allen M. Cohen)
Subject: XtErrorDB
Organization: Contel Federal Systems
Distribution: usa
Date: Wed, 15 Apr 92 16:44:27 GMT

Can somebody post an example of how to use the Xt Error Database.
Specifically, XtAppErrorMsg ().
I'm using X11R4 and Motif 1.1.1 from Interactive.

Asente & Swick (page 851) say that there is a high-level interface
that takes an error name and class and retrieves the error message
text from an error resource database;  It's usually called
"/usr/lib/X11/XtErrorDB".
Well the closest thing I could find is "/usr/lib/X11/XErrorDB".

A&S give the following "example" on page 489:
	XtAppErrorMsg (app, "noUser", "getMailFile",
               "DemoBuffError",
               "Could not get user name",
               (String *) NULL, (Cardinal *) NULL);
Supposedly, I can change the error msg from the default of
"Could not get user name", to something else by having some
kind of resource database entry like "*noUser.getMailFile: xxx",
or "*DemoBuffError: xxx", but I couldn't get anything to work!

P.S.  I can't find docs/examples on this in any Motif book, except perhaps
a vague ref in Thomas Berlage's book (page 81), but he just hard codes
define strings, and does not use the Xt Error database.
<> Allen M. Cohen                  Internet:  amc@wlv.imsd.contel.com       <>
<> 1853 Stonesgate St.             UUCP:      elroy.Jpl.Nasa.Gov!agi0!allen <>
<> Westlake Village, Ca. 91361     Telephone: (805) 498-9611 ext. 195       <>
<><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><>
From: meeks@osf.org (W. Scott Meeks)
Newsgroups: comp.windows.x.motif
Subject: Re: Is there doc for MrMNcreateCallback in UIL?
Date: 14 Apr 92 17:49:11 GMT
Distribution: inet
Organization: The Internet

>Date: 9 Apr 92 18:44:09 GMT
>From: van-bc!wolfe.wimsey.bc.ca!rsoft!agate!spool.mu.edu!think.com!rpi!crdgw1!rdsunx.crd.ge.com!fiddler!doel@ucbvax.Berkeley.EDU  (Michael Doel)
>
>In reading our OSF/Motif Programmer's Guide, I noticed that some of
>the examples mention a MrMNcreateCallback in the list of callbacks for
>a widget in a UIL file.  This got me curious because I'd never seen
>any other mention of a creation callback.  A more thorough search
>through the documentation yielded nothing, though a quick test showed
>that the specified function was indeed called at creation time.
>
>Some questions I have are - is this intended for programmers?  If so, is it
>documented anywhere (other than in the example).  Are there other
>MRM callbacks that I don't know about?  Do I get this callback for all
>widgets?  How about user-defined ones which inherit from core?
This is intended for application writers but it isn't documented well.
There are no other MRM callbacks, only MrmNcreateCallback.  The reason this
exists is that the creation of widgets with Mrm is not under direct control
like it is with straight C code.  The createCallback gives the application
writer a chance to take any actions with the widgets that might need to be
done at create time.  A common use for the createCallback is to store the
widget's ID in a global data structure.

>In short, if anyone knows of any documentation on MrMNcallbacks (as
>opposed to XmNcallbacks which I understand), I'd appreciate a pointer
>to it.

The documentation in 1.2 will be better.  The one line summary is: use the
MrmNcreateCallback just like any other callback; it will be called
immediately after the widget is created, before anything else happens.

W. Scott Meeks           
Open Software Foundation 
meeks@osf.org            
(617) 621-7229           
Practice random kindness and senseless acts of beauty.
From: doel@fiddler.crd.ge.com (Michael Doel)
Newsgroups: comp.windows.x.motif
Subject: Is there doc for MrMNcreateCallback in UIL?
Date: 9 Apr 92 18:44:09 GMT
Reply-To: doel@crd.ge.com
Organization: GE Corporate R&D Center, Schenectady, NY

In reading our OSF/Motif Programmer's Guide, I noticed that some of
the examples mention a MrMNcreateCallback in the list of callbacks for
a widget in a UIL file.  This got me curious because I'd never seen
any other mention of a creation callback.  A more thorough search
through the documentation yielded nothing, though a quick test showed
that the specified function was indeed called at creation time.

Some questions I have are - is this intended for programmers?  If so, is it
documented anywhere (other than in the example).  Are there other
MRM callbacks that I don't know about?  Do I get this callback for all
widgets?  How about user-defined ones which inherit from core?

In short, if anyone knows of any documentation on MrMNcallbacks (as
opposed to XmNcallbacks which I understand), I'd appreciate a pointer
to it.

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Mike Doel				<doel@crd.ge.com>
P.O. Box 8
Schenectady, NY 12301			(518) 387-6203

"For every complex problem, there is a solution that is simple, neat
 and wrong." - H.L. Mencken
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
From: sdennis@mailhost.aa.cad.slb.com (Steve Dennis)
Newsgroups: comp.windows.x.motif
Subject: Problems with accelerators
Keywords: accelerators
Date: 16 Apr 92 20:14:09 GMT
Organization: Schlumberger CAD/CAM; Ann Arbor, MI (USA)

We need some help w/ accelerators,

  Is there any known bugs with accelerators??

The reason I ask so vaguely is we are having
a very weird crash associated with them.

If we have a pulldown menu with an accelerator,
AND we have 93 (yes 93) option menus that are
in the same shell as our main window we crash
when the accelerator is pressed.  If we rerun
with the option menus as children of another
bulletin board dialog everything is OK, if
we remove 1, 2, 3 ... of the option menus everything
works fine...

We have a pretty good memory allocator with
check summing, etc. and I ran that and
we are not corrupting any memory that we alloced up.

We die with an illegal instruction &
the stack starts out like this:

(dbx) where
>  0 ntohl.ntohl(0x100f4730, 0x7fff9d90, 0x7fff9960, 0x1026a8b4, 0x100de440) [0x100df918]
   1 DispatchEvent(0x100f4700, 0x1, 0x100df908, 0x0, 0x6e7fa4) ["Event.c":605, 0x6e75ec]
   2 DecideToDispatch(0x1, 0x0, 0x100de440, 0x10001e48, 0x6e8354) ["Event.c":948, 0x6e7e90]
   3 XtDispatchEvent(0x7fff9d90, 0x746e6d5f, 0x74656e2f, 0x6c61662f, 0x2d6e6f63) ["Event.c":974, 0x6e7f a0]
   4 XtAppMainLoop(0x1, 0x100d30e8, 0x100181dc, 0x10018728, 0x41b038) ["Event.c":1105, 0x6e8350]


In earlier crashes, the routine KeyboardInputHandler() (RowColumn.c)
was on the stack a bunch of times (seemingly recursively).

We do not get the activateCallback associated with the
pulldown entry that has the accelerator and  none of our
routines except the ones that call XtAppMainLoop() are ever
on the stack at the time of the crash.

The FAQ has nothing about accelerators, O'Reilly has all
of 1 page on them (does that mean their supposed to be
easy??).

After having spent much time just getting it
down the this rather vague description I am
rather frustrated and that is why the original
question is so vague.  Without breaking a few non-disclosure
agreements ;-) all I can hope for is that somebody can
give me the low down on accelerators in general...


   DEC MOTIF 1.1.1
   ULTRIX 4.2a
   DEC X11R4
   DecStation 5000's

Thanks

 
-- 
===========================================================================
Chip Stark                             Internet: cstark@mailhost.aa.cad.slb.com
Schlumberger CAD/CAM                             cstark@aaaca1.sinet.slb.com
Ann Arbor, Michigan                    UUCP:     uunet!sharkey!applga!cstark
From: vasan@uhunix.uhcc.Hawaii.Edu (T. R. Srinivasan)
Newsgroups: comp.windows.x.motif
Subject: Re: MOTIF FAQ
Date: 8 Apr 92 00:18:42 GMT
Organization: University of Hawaii

Please, send a copy to me too.

thnx,
srini
vasan@uhunix.uhcc.hawaii.edu
+-------------------------------------------------------------------+
| T.R.Srinivasan   | 808-942-0377 |  With, Without                  |
| 1936, Wilder Av.,|        (Res) |  who'll deny                    |
| #101, Honolulu,  | 808-956-3497 |  it is what the fighting is     |
| HI - 96822       |        (off) |                  all about  (PF)|
+-------------------------------------------------------------------+
From: envbvs@epb9.lbl.gov (Brian V. Smith)
Newsgroups: comp.windows.x
Subject: Re: XFig can't use Postcsript font for PIC?
Keywords: xfig, pic, fig2dev, transfig, problem
Date: 8 Apr 92 23:34:17 GMT
Article-I.D.: dog.22588
Organization: lbl
NNTP-Posting-Host: 128.3.12.98

|> 	I'm using XFig since quite a long ago.
|> 
|> 	Now I upgraded it to XFig-2.1.3, and suddently 
|> 	lost the ability to create pictires using fonts
|> 	from Postscript palette. Well, XFig itself does
|> 	not mind, of course, but now "fig2dev" complains
|> 	saying
|> 		PS fonts not supported, substituting ......
|> 
|> 	when I try to convert "foo.fig" to "foo.pic",
|> 	like
|> 		fig2dev -L pic foo.fig > foo.pic

I have forwarded your article to the author of transfig (fig2dev), Micah Beck.

-- 
Brian V. Smith    (bvsmith@lbl.gov)
Lawrence Berkeley Laboratory
I don't speak for LBL; they don't pay me enough for that.
From: slm@cs.arizona.edu (Sandy Miller)
Newsgroups: comp.windows.x
Subject: automatic horizontal scrolling doesn't work
Date: 7 Apr 92 23:41:09 GMT
Organization: U of Arizona, CS Dept, Tucson

I have some one line text windows with horizontal scrollbars "when needed".
According to the docs, the location of the insert point will always be forced
to be on the screen.  This works with vertical scrolling in a larger text
window, but doesn't seem to work with horizontal scrolling.

Is this a known bug?  Is there a way around it?

Thanks for any help,
-sandy
Newsgroups: comp.windows.x
From: mth@solbourne.com (Michael Hamilton)
Subject: Help with R5 xdm and chooser;
Organization: Solbourne Computer, Inc.
Date: Mon, 13 Apr 1992 16:28:26 GMT


   *  Given the following from xdm(1) - X Version 11, Release R5:

      "When xdm receives an Indirect query via XDMCP, it can run  a
       chooser  process  to  perform an XDMCP BroadcastQuery (or an
       XDMCP Query to specified hosts) on behalf of the display and
       offer  a  menu  of  possible  hosts that offer XDMCP display
       management."

       I would like to enable this functionality.  I setup the hosts
       to provide connection access to the X terminal.  When the chooser
       process comes up on the X terminal, it correctly shows the host names
       that I authorized it to choose from.  However, following each host 
       name is the error message:

          "Display not authorized to connect"

       I can start an (xterm) up on the xterminal at this point from any
       of the hosts, so I believe I have access.  The only other security
       measure is the authorization magic cookie that xdm or the chooser
       writes on the host that is offering a connection.  If this is the
       problem how do I maintain the authorization files for the X terminal
       and the hosts offering connections.  I know very little about the
       MIT-MAGIC-COOKIE-1 or the XDM-AUTHORIZATION-1 mechanisms.

       Following is my xdm-config file:

          DisplayManager.servers:		/usr/lib/X11/xdm/Xservers
          DisplayManager.errorLogFile:   	/usr/lib/X11/xdm/xdm-errors
          DisplayManager.pidFile:		/usr/lib/X11/xdm/xdm-pid
          DisplayManager*resources:	        /usr/lib/X11/xdm/Xresources
          DisplayManager*session:		/usr/lib/X11/xdm/Xsession
          DisplayManager.0.authorize:     	true
          DisplayManager*authorize:     	false

          DisplayManager.chooser:               /usr/lib/X11/xdm/chooser
          DisplayManager.accessFile:            /usr/lib/X11/xdm/Xaccess


       Following is my Xaccess file:

          towerview

          towerview   CHOOSER   jean larry dictor marvin


       If there is anyone who can help or you need more information, please
       let me know. 

       Thanks in advance.

       -myto

   -------------------------------------------------------------------------- 
      Michael Trent Hamilton   (myto)

      Solbourne Computer, Inc.              phone :  (303) 678-4654  <vmail>
        1900 Pike Road                      fax   :  (303) 772-3646  
        Longmont, Colorado                           (303) 678-4716
        80501                  

         email :  (inet) :  mth@solbourne.com || mhamilton@solbourne.com
               :  (uucp) :  ..!{uunet, boulder}!stan!mth
   -------------------------------------------------------------------------- 

Xref: sparky comp.windows.x:9803 comp.sys.sun.misc:1835
From: williams@herky.cs.uiowa.edu (Kent Williams)
Newsgroups: comp.windows.x,comp.sys.sun.misc
Subject: Problem building X11R4 on a SPARCstation 2
Date: 9 Apr 92 20:21:28 GMT
Reply-To: williams@herky.cs.uiowa.edu (Kent Williams)
Followup-To: comp.windows.x
Organization: U of Iowa, Iowa City, IA

I have a SS2 running SUNOS 4.1.1B, and I've been building X11R4 on it.
Everything goes fine except I'm missing /usr/include/sundev/cg6reg.h,
which the server stuff tries to include.

According to the Man page, this corresponds to the GX device, which
is what I have installed.   Where did the header go?
--
Kent Williams         | "Do you see your cerebellum as a lightbulb or a cog? I
williams@cs.uiowa.edu | saw mine as gristle so I fed it to the dog. But it 
Quote: Bevis Frond    | taste so bad, that she left it in the bowl ..."
Xref: sparky comp.windows.x:9684 comp.windows.x.motif:3080