HDTenEightyP/NetNews huggingface dataset:
From: adolce@bbn.com (Anne Dolce)
Newsgroups: comp.windows.x.motif
Subject: Re: Menu Item Alignment
Date: 24 Jul 92 21:26:34 GMT
Organization: Bolt, Beranek & Newman, Inc.
NNTP-Posting-Host: spcsun24.bbn.com

In article <l6tgtrINN3aq@news.bbn.com>, adolce@bbn.com (Anne Dolce) writes:
|> Hi,
|>    I'm having problems getting menu item names to align
|>    properly.  If I have an XmPulldownMenu with different
|>    types of buttons, the text labels do not line up.
|> 
|>    For example,
|> 
|>                  +------------------+
|>                  |     Button 1     |   Push button
|>                  |     Button 2  -> |   Cascade button
|>                  | [] Button 3      |   Toggle button
|>                  +------------------+
|> 
|>     
     In case anyone is interested, I fixed this problem.
     The labels line up fine if the toggle button is a
     widget (not a gadget).  The other buttons can be
     widgets or gadgets.

|> Thanks, Anne
|> ------------
|> *        *                   *********************************
|> *        *                   *  Anne Dolce (adolce@bbn.com)  *
|> *        *                   *  BBN Software Products        *
|> ******   ******   ******     *  150 Cambridge Park Dr 20/9C  *
|> *    *   *    *   *    *     *  Cambridge, MA  02140  USA    *
|> *    *   *    *   *    *     *  Phone:  617-873-2122         *
|> ******   ******   *    *     *********************************
Newsgroups: comp.windows.x.motif
From: bjwatt@undergrad.math.waterloo.edu (Brian Watt)
Subject: Motif Manuals
Keywords: 1.2,Manuals
Organization: University of Waterloo
Distribution: na
Date: Thu, 30 Jul 1992 14:38:26 GMT

I've been trying to find manuals or reference books for Motif version 
1.2, but so far I've had no luck.  Do books on 1.2 exist ? Where can I get
them ? 

Please reply via e-mail.

Thanks

Brian Watt

bjwatt@descartes.waterloo.edu
From: argv@zander.z-code.com (Dan Heller)
Newsgroups: comp.windows.x.motif
Subject: Re: is there a motif version of xmh ?
Date: 20 Jul 92 23:15:41 GMT
Reply-To: argv@z-code.z-code.com
Distribution: inet
Organization: The Internet

> On Jul 20,  1:10pm, Hans Jung wrote:
> (We've looked at Z-mail and may use it, but some folks here would
> like to keep using the Rand MH facilities).

I've heard that someone has actually hooked up all the MH commands
to Z-Mail using Z-Script.  Aside from dialog-box functionality for
many Z-Mail dialogs, you can actually get pretty reasonable MH-like
effects out of Z-Mail.  Admittedly, I don't know how to do this yet
since I'm not an MH fan and don't know the options well enough.  If
I run across this person, I'll try to get the scripts that do it.

  --dan
From: thielman@infko.uni-koblenz.de
Newsgroups: comp.windows.x.motif
Subject: What is mxgdb ??
Date: 30 Jul 92 11:32:27 GMT
Organization: University of Koblenz, Germany

Hy folks,

I have read  s.th some days ago about mxgdb in a post.
What is mxgdb, perhaps a motif interface for gdb ??
Where can I get it (our host has only access to German Internet
sites)?


Thank's

marcus

********************************************************
    If replying via e-mail use this address:
     
     thielman@e-technik.koblenz.fh-rpl.dbp.de
********************************************************
     
Newsgroups: comp.windows.x.motif
From: gene@ponder.csci.unt.edu (Gene De Lisa)
Subject: Internationalization help heeded
Organization: University of North Texas, Denton
Date: Thu, 23 Jul 1992 18:58:29 GMT


The easiest way I've found to localize text is to use the x/open
portablility guide routines that Sun has in libxpg.a. The problem I 
have is that this lib redefines calloc, malloc and friends which makes
the very first call to XtAnything drop core. Since I cannot use
libxpg.a because of this does anyone have any ideas how I can
localize strings?


Newsgroups: comp.windows.x.motif
From: ccarpent@dpcs_gt1.ess.harris.com (Craig Carpenter)
Subject: Re: placing a dialog exactly where I want it
To: sandys@ruby.aruba.UUCP (Sandy Schindler)
Organization: Advanced Technology Department, Harris Corporation
Date: Wed, 22 Jul 1992 16:32:33 GMT


--
Have you tried setting the XmNx and XmNy resources on the dialog shell.
It should work..........


============================================================================= 
                                                 
Craig Carpenter                                   HARRIS CORPORATION
E-Mail: ccarpent@dw3f.ess.harris.com 	  IIIIIIIII    SSSSSSSS   DDDDDDD
Phone : (407)984-6444                         I        S          D      D
Fax   : (407)984-6327                         I        SSSSSSS    D      D
                                              I               S   D      D
                                          IIIIIIIII    SSSSSSS    DDDDDDD

"But, why ??" -- asked by every child in America under 4 years  of age
============================================================================
From: glewis@fws204.intel.com (Glenn M. Lewis ~)
Newsgroups: comp.windows.x.motif
Subject: Possible FAQ:  Motif include files?
Date: 29 Jul 92 00:24:41 GMT
Reply-To: glewis@pcocd2.intel.com
Distribution: comp
Organization: ICD, Intel Corporation, Folsom, CA


	I have at my disposal a Sun386i and a Sparc 2, both of which
have MWM installed on them, and both, of course, have purchased Motif
licences to run that software on them, with documents on file (somewhere
in our operations group).

	However, the Motif include files ".../Xm/..." are not anywhere
in site.  Must these be purchased separately, or are they on an ftp
site, or what?

	I discovered this when trying to compile mxgdb.  Thanks for any
pointers you can provide.  E-mail would be best, probably.

							-- Glenn Lewis
--
Glenn Lewis | glewis@pcocd2.intel.com | These are my opinions...not Intel's
From: cmedley@eng.umd.edu (Charles H. Medley)
Newsgroups: comp.windows.x.motif
Subject: Motif Forms & Dialogs
Date: 30 Jul 92 15:52:11 GMT
Reply-To: cmedley@eng.umd.edu (Charles H. Medley)
Organization: College of Engineering, Maryversity of Uniland, College Park


I'm trying to implement menu system where when the user reaches a final
decision, a dialog should pop up containing child widgets that are going to
be added to it right before it is popped up (managed).  A complicating factor
is that, ideally, this should be the same dialog widget, but which can contain any subset of many child widgets.

Is such a thing possible under Motif?  We are running Motif 1.1 with X11R4.
From: john@jho.com (John Ho)
Newsgroups: comp.windows.x.motif
Subject: Motif 1.2
Summary: Motif 1.2
Keywords: motif 12
Date: 21 Jul 92 03:13:59 GMT
Organization: Software Programming, Inc., Dallas, Texas USA

Can someone tell me the difference between Motif 1.1 and Motif 1.2?
Also, where can I get Motif 1.2 for ISC/ix?

Thank you.
-- 
John Ho from Dallas, Texas USA. (john@jho.com)           - No news is bad news.
Newsgroups: comp.windows.x.motif
From: digger@csi.com (Douglas Selph)
Subject: How to get the background color for the root window?
Summary: Can set the background pixel but cannot get it!
Organization: Comdisco Systems Inc., Foster City, CA
Distribution: usa
Date: Thu, 30 Jul 1992 22:16:50 GMT

  Funny, but the function XSetWindowBackground allows
you to set the background pixel for the passed window,
but I see no way of querying for the same information.
The function XGetWindowAttrributes() returns a structure
(XWindowAttributes) where there is no obvious element 
in it containing the background pixel.  Does anybody o
out there know how to get the background pixel color?

  Please reply to "digger@csi.com".

  Thanks in advance.

  --Digger
  (Douglas Selph)

Newsgroups: comp.windows.x.motif,comp.windows.x
From: ware@organ.cis.ohio-state.edu (Peter Ware)
Subject: Re: How do you make a whole composite motif window appear "grey" or "Insensitive"?
Originator: ware@organ.cis.ohio-state.edu
Organization: Ohio State Computer Science
Date: Mon, 27 Jul 1992 20:22:21 GMT

Try:
	XtSetSensitive (widget, False)
Disables user input events and provide some visual feedback that the
components are inactive.  This effects all children that are
descendents of widget.

--pete
--
Pete Ware / Ohio State University /
           ware@cis.ohio-state.edu
           (614) 538-0965
Too bad the Nike slogan isn't "Just Do It Right" instead of "Just Do It"
Newsgroups: comp.windows.x.motif
From: anil@mcrware.UUCP (Anil Purohit)
Subject: XmMainWindow Question 
Keywords: scroll, MainWIndow etc
Organization: Microware Systems Corp., Des Moines, Iowa
Date: Thu, 30 Jul 1992 20:28:33 GMT


Hi Motif-gurus,

	Here's my problem
	
	"I have a mainWindow and a child of the mainWIndow (XmForm).
	 The scrollingPolicy is Xmautomatic. Now when I resize the
	 toplevel shell (using resize handles of the frame) I have the 
	  foll. problems. If the width of the Main Window is increased
 	 more than its child (XmForm), the form doesn't resize to 
	 respond. Can I even do that? I want to scroll vertically and
	 resize horizontally. Is that possible"
	 Any help would be greatly appreciated.

Thanks.

Anil
-- 
--------------------------------------------------------------------
DISCLAIMER:
Opinions expressed are mine and only mine.

Anil C. Purohit  			E-mail:	anil@microware.com
--------------------------------------------------------------------
Newsgroups: comp.windows.x.motif
From: sieukong@iti.gov.sg (Chan Sieu Kong (SE))
Subject: File Selection Box returning NULL string on IBM RS6000
Keywords: FSB, RS6000
Organization: Information Technology Institute, National Computer Board, S'pore
Date: Tue, 28 Jul 1992 08:10:14 GMT

Help!!!

I am porting some Motif code from the Sun Sparc 2 to the IBM RS6000. The 
code works fine on the Sun but on the RS6000, the path name I get from 
the Motif File Selection Box is NULL. Anybody encountered the same problem
before? The code causing the problem is given below:

In the XmNokCallback of the FSB,

static void Load(w, client_data, call_data)
Widget w;
caddr_t client_data;
caddr_t call_data;
{
	Arg	arg[1];
	XmString text;
	char	*fname;

	XtSetArg(arg[0],XmNdirSpec,&text);
	XtGetValues(w,arg,1);

	XmStringGetLtoR(text,XmSTRING_DEFAULT_CHARSET,&fname);

	..... rest of code follows
}

The variable fname is NULL after the XmStringGetLtoR.

Config:
X11R4
Motif1.1.3
IBM RS6000

Any help will be appreciated. Thanks.

-- 
---
Sieu-Kong Chan   Office: (65)772-0400       
INTERNET: sieukong@iti.gov.sg                 
Information Technology Institute
From: fmc@uhura.neoucom.edu (Fu-Min Chen)
Newsgroups: comp.windows.x.motif
Subject: Is widget B the child of widget A?
Date: 21 Jul 92 12:25:35 GMT
Article-I.D.: uhura.1992Jul21.122535.19734
Organization: Northeastern Ohio Universities College of Medicine

Can someone tell me what is the easy way to find out if widget B is the child
of widget A?

Thank You!

Fu-Min Chen
fmc@uhura.neoucom.edu
Newsgroups: comp.windows.x.motif
From: ede@harpo.osf.org (Ted Ede)
Subject: Re: How to load GIF images into buttons.
Keywords: Color, buttons, XPM, GIF
Organization: Open Software Foundation
Date: Thu, 23 Jul 1992 18:40:09 GMT

In article <1992Jul22.234245.19665@newsgate.sps.mot.com> cowan@chdasic.sps.mot.com () writes:
>
>  From that I was
>able to come up with the following solution.
>
>1)  Use Jef Poskanzer's pbmplus utilies to convert GIF file to XPM, you'll
>    need 'ppmtoxpm' which I got off the net one day.  Hopefully this handy 
>    program will be part of PBM soon.  If you can't find it, it came from 
>    'mark@zok.uucp'.  (Or check the nearest archive site.)
>    Note:  I first used 'xv' to reduce the number of colors used in
>    the GIF image, and to scale the image down to a reasonable
>    button size.
>2)  Compile the xpm file right into the code.  (It supports the 
>    #include directive just like x bitmap.)
>3)  The xpm format tells you what colors are needed, go out and
>    allocate them.
>4)  Create an Ximage structure for your display/visual using
>    'XCreateImage'.
>5)  Load up the image structure data from the xpm data using the colors
>    that were allocated.
>6)  Load the image using XmInstallImage().
>7)  Set the button widgets' XmNlabelPixmap resource using XtVaSetValues().
>
>Piece O' cake, right?  Well, if you don't follow that description,
>take a look at the example program I'm including.  Checkout the 
>'LoadXPMasImage' function in colorbutton.c, it basically does steps 3
>through 7.

how about using the pixmap libarary from group bull in france?  Is has
a bunch of handy library routines for loading a Pixmaps and XImages from
XPM data structures/files.  It works like a champ.


ted


   Ted Ede -- ted@world.std.com -- on contract at the Open Software Foundation
      -- All views expressed are mine unless explicitly stated otherwise --
	           -- This line intentionally left blank  --
From: sobol@cathedral.cerc.wvu.wvnet.edu (Michael Sobolewski)
Newsgroups: comp.windows.x.motif
Subject: Default Color of Motif Window Frames
Keywords: FAQ question
Date: 21 Jul 92 21:30:00 GMT

Does anyone out there know what the default color
of Motif window frames is? I want to use seprators
in the same color as window frames, but I cant find
in my manuals the value of this color. I am using
"dark turquoise" but it is too light.

MIke
From: dbl@osf.org
Newsgroups: comp.windows.x.motif
Subject: Re: Using xwd to dump menus
Date: 30 Jul 92 13:01:10 GMT
Distribution: inet
Organization: The Internet


|> Bad idea..  I tried it.  The process stops alright, but with it everything

You can get the window id via xwininfo and then specify it in addition with
the poorly-document -id flag.

Or pick up the unofficial patches to xwd on export.lcs.mit.edu in
contrib/R5fixes/xwd/enhancement.1 which add a delay feature and additional
input methods.

-- 
David B. Lewis  	Temporarily at and certainly not speaking for OSF.
by day: dbl@osf.org			by night: david%craft@uunet.uu.net
Newsgroups: comp.windows.x.motif,comp.windows.x,comp.human-factors
From: josh@spss.com (Joshua Barr)
Subject: Multiple Primary Windows
Date: Thu, 23 Jul 1992 18:56:13 GMT
Organization: SPSS Inc.

Does anyone know of an application that uses multiple primary windows?
I am taking an interface that is MDI on Microsoft Windows, and making
each document its own primary window on OSF/Motif. My application has 3
classes of document: data, text, and chart. The user can open as many
text and chart documents as desired, plus one data document.

I have several alternatives for groupings of window families, and am
also considering a user-settable option to allow the interface to
raise windows or to change the input focus to a new window to help the
user find the result of an action (something I already do in my MDI).
Are there any non-MDI applications out there that do these sorts of
things?


--
Joshua Barr, Interface Designer
SPSS, Inc. 
444 N. Michigan Avenue
Chicago, IL 60610
(312) 329-3471

josh@spss.com
From: baldwa@ondine.adobe.com (Sanjay Baldwa)
Newsgroups: comp.windows.x.motif
Subject: Why is push button causing XmProcessTraversal()?
Date: 21 Jul 92 23:04:53 GMT
Reply-To: baldwa@adobe.com
Distribution: usa
Organization: Adobe Systems, Mountain View, CA, USA

I have a custom dialog with bunch of text widgets and a command area with
three push buttons (ok, apply and cancel). The text widgets are a part of
TAB group (I used XmAddTabGroup) so that I could use TAB to traverse.

The problem is when I click on apply (or ok/cancel for that matter),
keyboard focus is moving from one text widget to the next and so on. I
found out that Arm() for push button is doing a XmProcessTraversal() - Why?
Is that causing the behavior? How do I stop this annoying behavior? I am
using X11R4, Motif 1.1.4 and mwm.

Thanks,

Sanjay
--
baldwa@adobe.com  or  ..!decwrl!adobe!baldwa
From: pd@x.co.uk (Paul Davey)
Newsgroups: comp.windows.x.motif
Subject: Re: Can Primitive widgets be parents?
Date: 28 Jul 92 13:01:56 GMT
Organization: IXI Ltd.

>>>>> On 26 Jul 92 02:57:19 GMT, whe@usc.edu (Wei He) said:
Wei> NNTP-Posting-Host: phakt.usc.edu

Wei> Hi:
Wei>    Can Primitive widgets be parents?
Wei>    In O'Reilly Volume Six - Motif Programming Manual p.165, prompt_dlg.c, There
Wei>    is a satement:

Wei>    dialog = XmCreatePromptDialog(pb, "prompt", args, 2);

Wei>    pb is a PushButton, OK, PushButton is a Primitive widget, How can it be the 
Wei>    parent of Dialog?

Yes this is allowed, basically because Motif is hiding things in an
attempt to make them easier.

Dialogs and Menus (Popup and Pulldown) may be attached to any widget
(but not gadgets).

This is because these calls (XmCreate*Dialog, XmCreatePulldownMenu aand
XmCreatePopupMenu) create shell widgets as children of the
``psuedo-parent'' (my term for what is in this case the PushButton).

The subsiduary widgets (the real dialog and menus) are made children of
the new shell widget.

The shell widget is needed so that the subsiduary window can be a
child of the root window and so extend outside the main window of the
application. Shell widgets don't have to have parents.

The psuedo-parent is needed to allow: 
 1) resources to be looked up relative to some existing widget.
 2) the shell destroy callbacks to be called when the application exits.

You needed usually access the shell widgets but if you need to you can
find their id with XtParent.

	menu_shell = XtParent(dialog);


Wei>    And in the same page, they create two buttons, but with same widget name
Wei>    "button":

Wei>    Widget button;

Wei>    button = XtVaCreateManagedWidget("PushMe-1", xmPushButtonWidgetClass, 
Wei>             			 parent, NULL);
Wei>    button = XtVaCreateManagedWidget("PushMe-2", xmPushButtonWidgetClass,
Wei>    		   		 parent, NULL);

Wei>    Is this allowed in Motif 1.1?

Actually the *names* of these widgets are distinct (``PushMe-1'' and
``PushMe-2''). The widget address is stored in the variable ``button''.

All the example means is the first value of button is not saved in a variable
and can not be accessed again directly.

compare:

	len = strlen("Hello ");
	len = strlen("world");


Widget names need not be unique either (although they usually are). It is
sometimes usefull to give widgets the same name so that they pickup the same
resource database information for instance even when they do not share the
same class.

Widget should be given names starting with a lowercase letter, Uppercase is
reserved for classes.

   Widget button;

   button = XtVaCreateManagedWidget("pushMe", xmToggleButtonWidgetClass, 
            			 parent, NULL);
   button = XtVaCreateManagedWidget("pushMe", xmPushButtonWidgetClass,
   		   		 parent, NULL);



--
 Regards,			  pd@x.co.uk           IXI Ltd.
	Paul Davey		  pd@ixi.uucp          62-74 Burleigh St.
				  ...!uunet!ixi!pd     Cambridge,  U.K.
 "These _are_ interesting times"  +44 223 462 131      CB1  1OJ
From: davel@booboo.SanDiego.NCR.COM (David Lord)
Newsgroups: comp.windows.x.motif
Subject: Re: What is "Purify" ?
Date: 24 Jul 92 20:04:20 GMT
Reply-To: davel@booboo.SanDiego.NCR.COM (David Lord)
Organization: NCR Corporation, Rancho Bernardo

In article <BruxKB.1Ms@solbourne.com> misek@solbourne.com (Steve Misek) writes:

>If you release software that you have not run through purify, you're just
>begging for trouble.

Yeah swell, but not all the world is Suns. Even more ammusing in that
ole Bill Joy will hardly even admit that Motif exists.
From: ssy1@seghp1.esb.pge.com (Spencer S. Yeh)
Newsgroups: comp.windows.x.motif
Subject: Edit Table/ Data Forms Widgets
Keywords: table, edit, forms, custom
Date: 21 Jul 92 19:28:45 GMT
Organization: Pacific Gas and Electric
Originator: ssy1@seghp1.esb.pge.com

I am using Motif to convert an existing 4GL forms based Ingres application
to a Motif front-end.  I am using Motif v1.1.3, X11R4, HP/UX 8.00, and
UIM/X v2.0 on HP 400 and 700 series workstations.

I am looking into off-the-shelf widgets that could shorten development time.
I particularly need something that would ease working with tabular data
entry forms and anything that offers features for database work
such as data verification or integration with SQL.
In addition I need something commercial-strength and fairly stable.

Currently I am looking into some of the widgets in the ICS Widget Databook.
It seems that the following widgets might be useful:
  Edit Table
  Spreadsheet (Xtra)
  Form (Xtra)

The last two are part of the Xtra XWidgets set from Graphical Software
Technology.  I'm not sure whether the 'Edit Table' is written by the ICS
folks or just distributed by them.

I would appreciate it if developer's with experience with any of these
or any similar widgets could make some comments about the following:

Features
Robustness
Ease of use (can a single callback be specified for a row or column and
    be distinguished by row and column index being passed in the call
    data).
Ability to integrate with UIM/X
Flexibility with regard to resource settings (fonts, data formats, etc.)
Limitations that have been problematic.
Support
Documentation
Cost
Anything else you can think of.


Please respond by e-mail and I will summarize and repost to the net.

Thanks for any input you have.

  Cheers,
  Spencer 

===========================================================================
  Spencer Yeh                   PG&E
  ssy1@esb.pge.com              Electric Supply and Computer Services, T25A
  415-973-1126, 973-7593 or     444 Market St., Rm. T-2516
    leave msg. at 973-4234      P.O. Box 770000
                                San Francisco, CA  94177
===========================================================================
From: sinan@Mtesol.boeing.com (Sinan Karasu)
Newsgroups: comp.windows.x.motif
Subject: Re: What is "Purify" ? (Ostriches)
Date: 28 Jul 92 19:50:03 GMT
Distribution: inet
Organization: The Internet

> From: nazgul@alfalfa.com (Kee Hinckley)
> Date: Tue, 28 Jul 92 02:11:05 -0400
> 
> > package from X11R5 they said.... Per Computer world , July 20 page 1 and 20 , as of end of
> > 1991 there were 500,000 motif and 550,000 OpenWindows installations ( not counting non Suns or
> 
> Be careful what you are counting.  OpenWindows is the default X server that
> comes on a Sun.  It includes a bunch of OL applications.  That does not mean
> that OpenLook is the preferred interface of the owner of the Sun, or that
> they use the OL window manager.
> 
> Besides which, this is all peanuts when it comes to installed copies of GUIs.
> 
> nazgul@alfalfa.com

 A thought just occured to me. Considering that you can not legally have Motif on
a machine , unless you have a license , and since 500,000 Motif were shipped
as of end of 1991 then the following comes to mind

 Shipped Sun Sparcs =550,000     Shipped all else = ??? (HP,DEC,IBM,SGI,SCO, etc...)
  
  Installed base                    Installed Base

 Motif       OW or SunVIEW            Motif   Everything else    Total Motif
 ------      -------------            ------  ---------------    -----------
 500,000      50,000                   0       ??                 500,000
 400,000     150,000                 100,000   ??                   " 
 300,000     250,000                 200,000   ??                   " 
 250,000     300,000                 250,000   ??                   "
 200,000     350,000                 300,000   ??                   "
 100,000     450,000                 400,000   ??                   "
    0        550,000                 500,000   ??                   "

 Or something in between. What is wrong with my reasoning ???
 ( Am I wrong ???). 

 Sinan

 Disclaimer: These are all my opinions and calculations ( and possibly errors ...)

 Sinan