HDTenEightyP/NetNews huggingface dataset:
From: pd@x.co.uk (Paul Davey)
Newsgroups: comp.windows.x.motif
Subject: Re: HELP: How to inhibit widgets and some wm menu items
Date: 28 Jul 92 14:04:53 GMT
Organization: IXI Ltd.

>>>>> On 27 Jul 92 05:21:40 GMT, bernay@aldetec.oz.au (Alain Bernay) said:
 ...
Alain> I have two separate concerns which may affect the design of my screens.
Alain> It is about the possibilities under Motif to:

Alain> 1- inhibit in real-time (I mean by coding: eg "if not-supervisor-user
Alain>   then inhibit-iconise") some of the menu items of the window manager
Alain>   (mwm or the NCD local window manager);

I presume you want to (selectivly) prevent the user from iconifying
your application's windows.

There isn't a general way of doing this (see the Inter-Client
Communication Conventions Manual) but you can remove the functionality
from mwm by using the XmNmwmDecorations and XmNmwmFunctions resources
in VendorShell. Best not to do this unless you really need to.

Alain> 2- inhibit (again in real-time) some widgets (mainly buttons).

You can use XtSetSensitive to chnage the sensitive resource in Core.
This should prevent user interaction (and will change the appearance
of buttons by stippling them out).

 ...

Alain> Thank you in advance.

You're welcome,
--
 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: kahil@go.NoSubdomain.NoDomain (Richard K. Branton)
Newsgroups: comp.windows.x.motif
Subject: WcCallback
Date: 22 Jul 92 16:11:13 GMT
Organization: Bellcore, Livingston, NJ


When using Wcl's resource WcCallback the callback functions
specified are called after the widget is created but before
it is managed (and I believe before it's children are created?).
This posses a problem if one wanted to have operate on the
widget's children.

Does anybody know how, using Wcl, a widget can be operated on
sort of like wcCallback allows but after the widget and it's
children have been managed or realized?

Or if I am completely wrong can someone tell me?

Thanks.

---------------------->
kahil@gamekeeper.bellcore.com
---------------------->
Newsgroups: comp.windows.x.motif
From: timkwan@athena.mit.edu (Unknown)
Subject: ScrolledWindow's workarea child's parent is not the ScrolledWindow!
Organization: Massachusetts Institute of Technology
Date: Tue, 28 Jul 1992 10:47:03 GMT


I have the following:

  scrW = XtVaCreateManagedWidget(SSV_SCROLLED_WIN_NAME,
				 xmScrolledWindowWidgetClass, form,
				 /* attachments... */
				 XmNscrollingPolicy,  XmAUTOMATIC,
				 NULL);

  drawArea = XtVaCreateManagedWidget(SSV_DRAW_AREA_NAME,
			   xmLabelWidgetClass,  scrW,
		           /* attachments... */
			   NULL);

I stepped thru this section with xsaber.  For scrW, I got:

  (struct _WidgetRec *) 0x10b89c08 /* (allocated) */

Then in xsaber, I typed:  XtParent(drawArea);   and I got:

  (struct _WidgetRec *) 0x10cae008 /* (allocated) */

Why does the parent of the drawArea have a different address from
scrW's???

Please email me your response.

-Tim
Newsgroups: comp.windows.x.motif
From: gross@ux1.cso.uiuc.edu (Ben Gross)
Subject: Error:  ld.so: undefined symbol: _XCreateGlyphCursor
Keywords: motif, R4, R5
Reply-To: b-gross@uiuc.edu
Organization: University of Illinois at Urbana
Date: Thu, 23 Jul 1992 15:54:26 GMT

I have a need to run Motif, X, and OpenWindows on the same machine (Sun
ELC running SunOS 4.1.1).  

I have a binary license for Motif.  Another node has a source license.  They
built OSF Motif V1.1.4 (on/against X11R4) with no shared libraries.  I copied
the executables to my machine.  I get the following error:
	ld.so: undefined symbol: _XCreateGlyphCursor

It appears that I'm missing some path information or some environment variable.
Since I wasn't sure what was missing I included everything.  LD_LIBRARY_PATH is
/usr/lib:/usr5/lib:/usr/lib/Xm:/usr/lib/X:/usr/lib/Xt:/usr/lib/mrm:
/usr/openwin/lib:/usr/lib:/usr/CC/sun4
It still doesn't work (same error message).

I installed X11R5 (with backward compatibility to R4 and the motif switch on
in site.def).  I upgraded OpenWindows V2.0 (based on X11R3) to OpenWindows
V3.0 (based on X11R4).  That all worked fine.  

If anyone has X11R5 or (X11R4) working with motif 1.1.4 would you please send
me a copy of you enviroment?

Can anyone help me out?  What (obvious) thing am I missing here?  


-- 
! Mail to: b-gross@uiuc.edu    /!\    NeXT mail: bmg50042@sumter.cso.uiuc.edu !
! No matter where you go, there you are.   --Buckaroo Bonzai--                !
!-------------> Reality is only for those who lack imagination. <-------------!
!-----------> Disclaimer:  I am the Lorax, I speak for the trees. <-----------!
From: reha@cunixf.cc.columbia.edu (Reha Elci)
Newsgroups: comp.windows.x.motif
Subject: Serious Expose Event Problem!
Summary: widget resize
Date: 24 Jul 92 17:05:39 GMT
Reply-To: reha@cunixf.cc.columbia.edu (Reha Elci)
Organization: Columbia University

I have added an action <Expose> on a Drawing Area widget which is
resized automatically by a Form parent. When the parent Form
grows; an Expose callback is generated but when the parent
shrinks, although the Drawing Area widget shrinks as well (I
can tell from the borders) an expose event is *not* generated!

Whis is the reason for this non-symmetrical behavior? And how
can I get an Expose event on *any* widget configure, be it grow
or shrink? I thank in advance for any help!

Reha Elci
EMail: elci@bugs.gs.com
Newsgroups: comp.windows.x.motif
From: kaleb@thyme.jpl.nasa.gov (Kaleb Keithley)
Subject: Re: Shareable libXm on Sun: Worthwhile?
Keywords: shareable, libXm
Organization: Jet Propulsion Laboratory, Pasadena, CA
Date: Tue, 21 Jul 92 18:13:26 GMT

In article <1992Jul21.135510.3738@nlm.nih.gov> neve@nlm.nih.gov writes:
>I've read the Motif FAQ which tells you *how* to build libXm shareable
>on a Sun platform. What I want to know is:
>
>     Have the modules in libXm been written in such a way that it is
>    *worthwhile* building it shareable? 
>
>I'm talking here about all the things it tells you to do in the Sun manual when
>it comes to building shareable libs. For example, should there technically be
>a .sa file?
>
>I'd love to hear from the OSF folks on this. But also, if folks are doing
>the shareable thing on Suns with libXm and have seen the expected performance
>gains, I'd love to hear about that also.
>

The Motif widgets, like the Athena widgets in R4, don't require a .sa to
work.

Performance improvements?  The time savings of *not* loading a one-to-four
megabyte statically linked program (versus the 100-to-300 kilobyte programs
you get when you link with the shared libraries) are probably offset to some
degree by the runtime overhead of resolving the symbols in the shared lib
with those in the process.

There's little or no apparent difference in the time it takes to 
"fork-and-exec" statically or dynamically linked programs.  Once running,
there's no discernable performance difference.  Of course, your milage may 
vary, depending on how much RAM you have, which would influence whether
the box is paging and/or swapping.

-- 

Kaleb Keithley                          kaleb@thyme.jpl.nasa.gov

Not authorized, in any way, shape, or form, to speak for anyone.
From: cao+@MAPS.CS.CMU.EDU (Christopher Olson)
Newsgroups: comp.windows.x.motif
Subject: Default Button in BulletinBoard
Date: 27 Jul 92 14:17:37 GMT
Article-I.D.: cs.1992Jul27.141737.285231
Organization: School of Computer Science, Carnegie Mellon
Originator: cao@MAPS.CS.CMU.EDU

I am trying to set the default button in an XmBulletinBoard Widget, but
I am not having much success.

I have a Form Dialog from XmCreateFormDialog.  Inside this, I have
two forms and a separator.  The first form serves as a control area
for text boxes, sliders, string lists, etc.  The second form servers
as an action area for buttons such as "OK" and "Cancel".  I am
trying to set certain buttons in the action area as the default for
the dialog box.  Call the widget returned by XmCreateFromDialog wdgt.
I have tried (with XtSetValues):

1)  Setting the showAsDefault to False for the old default button and True
    for the new default butotn.  Then setting the defaultButton for wdgt
    to the new button.  This moves the outline, pressing return in the
    dialog still activates the old default button.

2) Setting the defaultButton for wdgt as well as the aciton area form.

3) Setting the defaultButton for XtParent(wdgt).

4) Setting the defaultButton for XtParent(wdgt), wdgt, and the action_area
   form.

None of these have worked, and I feel like I am aimlessly searching for a
working method (do you see a patern to the above?).  How do I change the
default button in a dialog?  I have chosen not to post code as even a
reduced form is rather long, but that can come next if necessary.

Chris Olson.
-- 
Chris Olson			Digital Mapping Laboratory
cao@maps.cs.cmu.edu		School of Computer Science
Work: (412) 268-3884		Carnegie Mellon University
				Pittsburg, PA  15213-3890
Newsgroups: comp.windows.x.motif,comp.windows.x
From: scott@asd.com (Scott Barman)
Subject: Field editing under Motif?
Organization: American Software Development Corp., W. Babylon, NY
Date: Wed, 29 Jul 1992 19:43:21 GMT

Are there field editing widgets for Motif?  OR is there something
available anywhere (ftp?) that can be plugged into the XmNmodifyVerify
or XmNvalueChanged callbacks of the XmText or XmTextField widgets that
can do input editing?  (We are currently using Motif 1.1.4 under X11R4)

Is there some way to tell a XmText or XmTextField widget that the input
text is to be right justified?  Once I make it right justified, is there
anyway to do "calculator-style" input (type a character and it adds it
to the end shifting over the string to the left)?

I guess this question goes with the first one but is there anyway to
make "read only" values in a text or text field widget?  For example, to
enter a social security number, I can set up a mask like nnn-nn-nnnn
where the 'n's are left blank for input, but the '-' stay and the input
passes over them.

THANKS!!
-- 
scott barman			| <This space intentionally left blank>
scott@asd.com			|
 (I can barely speak for myself, you expect me to speak for my employer??)
Newsgroups: comp.windows.x.motif
From: andyc@is.morgan.com (Andrew Coad)
Subject: Wanted - digital clock
Organization: Morgan Stanley - IS
Date: Thu, 30 Jul 1992 19:10:54 GMT

Does anyone know of a simple digital clock that runs under Motif?
Preference is public domain with source code so that i can add some special
stuff for operation with HP-VUE.

I need this for internal use within Morgan Stanley only. No resale.

Andrew Coad
Morgan Stanley
New York
(212) 703-2379
Newsgroups: comp.windows.x.motif
From: drand@spinner.osf.org (Douglas Rand)
Subject: Re: Unknown keysym name with Motif application under OpenWin
Organization: Open Software Foundation
Distribution: usa
Date: 29 Jul 92 12:00:42

In article <l7b9hoINN7n7@news.bbn.com> brosen@BBN.COM (Bruce L. Rosen) writes:

   We have an X application that was linked using Motif version 1.1 libraries.
   When we attempt to run it under OpenLook on a SparcIPC using SunOS 4.1.1,
   we get hundreds of error messages of the type

   X Toolkit Warning: translation table syntax error: unknown keysym name:
	osfActivate
   X Toolkit warning: ... found while parsing '<Key>osfActivate: 
	ManagerGadgetSelect() '


   We have a valid XKeysymDB file in /usr/lib/X11.

   Can anyone explain what causes this error and what the cure might be?

The usual reason *is* a missing entry in XKeysymDB that reads something
like "osfActivate	: xxxxxxxx".  Double check it.


--
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: hwrvo@kato.lahabra.chevron.com (W.R. Volz)
Newsgroups: comp.windows.x.motif
Subject: Re: Is widget B the child of widget A?
Date: 21 Jul 92 16:06:15 GMT
Organization: Chevron Oil Field Research Company

In article <1992Jul21.122535.19734@uhura.neoucom.edu>, fmc@uhura.neoucom.edu (Fu-Min Chen) writes:
|> 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

What about
 if(XtParent(B) == A) ??
-- 

======================
Bill Volz
Chevron Oil Field Research Co.
Exploration Research/Geophysics Division.
P.O. Box 446, La Habra, CA 90633-0446
Phone: (310) 694-9340
Xref: sparky comp.windows.x.motif:5112 comp.windows.x:14158
From: darby@andersen.co.uk (Dave Darby)
Newsgroups: comp.windows.x.motif,comp.windows.x
Subject: Help needed with XtGrab Pointer
Summary: Help needed with XtGrabPointer under X11R4 Motif, Motif 1.1
Keywords: XtGrabPointer
Date: 21 Jul 92 17:48:45 GMT
Organization: Andersen Consulting (UK Practice)

I am building an application in which a motif arrow button causes a list to
be mapped (the list contains available entries for a text field).  I wish to
make the list behave like a motif pulldown menu, ie when it is mapped it should
grab all events from all applications.

I have tried to use XtGrabPointer, called from the activate call back of the 
arrow button to implement this global grab.  I have found that I can
only get the grab to work for the arrow button (presumably because it is in
focus) and not the list.  If I pass the widget of the list to XtGrabPointer
it returns GrabNotViewAble.  

I have also tried to call the grab from the map call back of the list, the 
result is the same.

I have a work around which is to call XtGrabPointer for the arrow button with 
owner_events true, followed by a call to XtAddGrab for the list.  The first 
call grabs events for the application, the second for the widget.  Although 
this works it cannot be the best solution - can it ?

I would be grateful if any one could throw any light on to this problem, or 
point out a better approach as I am completely stumped.

Thanks in advance       

Dave Darby
Newsgroups: comp.windows.x.motif
From: joel@argon.NoSubdomain.NoDomain (Joel Loo Peing Ling)
Subject: Wrapping a widget round a Window
Reply-To: chunhong@iss.nus.sg
Organization: ISS Research
Date: Thu, 23 Jul 1992 09:12:31 GMT

I am working on an application that requires multiple clients to draw in the
same window. The problem is that MrmFetchWidget does not allow a X window ID
to be passed as an argument and instead always creates a new window. How do
I get around this?

I had tried setting the window slot of the core struct
(ie. widget->core.window=myXwindowID), this only causes
the drawing (output to the window) to appear correctly 
but the widget does not get any event notification.

Any help will be very much appreciated.

-joel
Newsgroups: comp.windows.x.motif
From: andrew@ddsw1.mcs.com (Andrew Gilbert)
Subject: UIL TOOLS / GENERATORS
Organization: ddsw1.MCS.COM Contributor, Chicago, IL
X-Newsreader: Tin 1.1 PL3
Date: Wed, 29 Jul 1992 19:28:53 GMT
X-Disclaimer:  Material posted in this article is the sole responsibility of
                the poster and does not represent MCSNet or the system owners.

We are interested in products for prototyping / generating UIL code, 
drawing widgets, etc. Is this an FAQ? Are there any good products out
there? Are there any PD/or source available? The product would need to
run in a SUN environment, get along with SCCS and be supportable for
a real world business office. Thanks. Please mail responses to me, and
if they are interesting I will summarize and post. Thanks. 
Andrew Gilbert
312 630-4288
andrew@ddsw1.mcs.com.
From: dsmith@mailhost.aa.cad.slb.com (J. Daniel Smith)
Newsgroups: comp.windows.x.motif
Subject: Re: How to load GIF images into buttons.
Keywords: Color, buttons, XPM, GIF
Date: 24 Jul 92 03:11:03 GMT
Organization: Schlumberger CAD/CAM; Ann Arbor, MI (USA)

In <1992Jul22.234245.19665@newsgate.sps.mot.com> cowan@chdasic.sps.mot.com writes:
>do it for X Bitmaps, I needed to do it for a format that would 
>support color.

>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 
>[..]
>7)  Set the button widgets' XmNlabelPixmap resource using XtVaSetValues().

Why go throught all of this effort?  Once you have an XPM file, create
the pixmap directly using either XpmCreatePixmapFromData() or
XpmReadFileToPixmap().  From my experience, all the smarts needed are
built into the XPM library.

   Dan
-- 
============================================================================
J. Daniel Smith                     Internet: dsmith@mailhost.aa.cad.slb.com
Schlumberger CAD/CAM                          dsmith@aaaca1.sinet.slb.com
Ann Arbor, Michigan (USA)               UUCP: uunet!sharkey!applga!dsmith
From: pd@x.co.uk (Paul Davey)
Newsgroups: comp.windows.x.motif
Subject: Re: Changing border colors
Date: 30 Jul 92 18:29:46 GMT
	<1992Jul29.121938.2194@lsl.co.uk>
Organization: IXI Ltd.

>>>>> On 29 Jul 92 11:19:37 GMT, snail@lsl.co.uk said:

> ....
> 
> 2) I want to add an Item "hardcopy" to the system-menu for
> each window, but the work should be done in my application.
> How do I find out that the user selected this entry??
> 
snail> Add a protocol to the window manager shell for each window.

 ... details deleted ...

Of course I assume you are also going to extend the program so that
you can still generate hardcopy when I run it with a window manager
other than mwm (twm, gwm, ncdwm, olwm or even no window manager at
all).

Stuff like this is better put on a menubar as it is part of the
application, not as part of the window manager.

You'll also need XmIsMotifWMRunning.



--
 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
Newsgroups: comp.windows.x.motif
From: rdouglas@cs.wpi.edu (Rob Douglas)
Subject: easy question
Reply-To: rdouglas@cs.wpi.edu (Rob Douglas)
Organization: Worcester Polytechnic Institute
Date: Fri, 24 Jul 1992 16:19:26 GMT


I have a scale widget as a child of a dialog.  When the OK  button on the dialog
is pressed, I call a routine to find out te value of the scale widget (actually a 
group of widgets, but lets just start with the one).  While playing with the
scale widget before pushing OK, I change the value, and have XmNshowValue
set to true, so I can see it change values.  However, when I do the following:

  XtSetArg(args[0],XmNvalue,&result);
  XtGetValues(scale_widget,args,1);
  printf("%d\n",result);

the value which is printed is the original default value.  Then when I open
the dialog again, the value is still at what I left it, not the default.

What is going on?  Do I have to have an XmvalueChagedCallback registered for
each of the scale widgets even if I only care about the values after the OK 
button is pressed?

Help?

email rdouglas@cs.wpi.edu, or post a response, I check both very regularly.

Thanks in advance, and all that whatnot...

ROB

-- 
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~ Rob Douglas          | (508) 831-5006    | Computer Science Department     ~
~ rdouglas@cs.wpi.edu  | AI Research Group | Worcester Polytechnic Institute ~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      	 	  __
	         /_/ _   /     /\  _       _,  / _   _
        	/ \ (_) /_)   /_/ (_) /_/ (_) / (_\ _\
	                                 (_)
From: snail@lsl.co.uk
Newsgroups: comp.windows.x.motif
Subject: Re: Changing border colors
Date: 29 Jul 92 11:19:37 GMT
Organization: Laser-Scan Ltd., Cambridge

> ....
> 
> 2) I want to add an Item "hardcopy" to the system-menu for
> each window, but the work should be done in my application.
> How do I find out that the user selected this entry??
> 
Add a protocol to the window manager shell for each window. Do this using

XmAddProtocols(); This adds the item "whatever" to the menu
and
XmAddProtocolCallback(); This gets called when you select "whatever" from the
                         menu.

For an example, check out page 601..603 in Motif Programming Manual by
O'Reilly & Associates. ISBN 0-937175-70-6. As I always say, this is an
excellent book.

Stephen Kellett
snail@lsl.co.uk
From: snail@lsl.co.uk
Newsgroups: comp.windows.x.motif
Subject: Re: XtAddCallbacks() problem
Date: 30 Jul 92 10:32:39 GMT
Organization: Laser-Scan Ltd., Cambridge

In article <memo.546864@cix.compulink.co.uk>, james@cix.compulink.co.uk (James S Hooton) writes:
> I'm using Motif 1.1, creating a popup menu with XmCreatePopup(), and adding
> callbacks to the returned widget with XtAddCallback(). I'm getting a warning
> message "Can't add callbacks in XtAddCallbacks".

You're trying to add callbacks to the Popup or to buttons you've added to the
popup. If the former, I doubt if it will work. If the latter, are you adding
the correct callback resourec for the button (ie: XmNactivateCallback etc)
since things like XmNvalueChangedCallback aren't supported for buttons, but
then I think if you try to add the callback, I think X doesn't complain, but
then again I've never done that So I'm guessing.

I think we need more info, drop me a line, or call me (you are in the UK) and
I'll try to help you out with more info. 
 
===== Yes, it's meant to be a snail, I speak only for myself and my snail =====
===== not for Laser Scan.                                                 =====
                                                              *      *
Stephen Kellett                                _______         \    /
Software Engineer                            --   ___ --        \  /  
Laser Scan Ltd                              (    _   __ )      ======
Science Park                               (    (  |   ) )    =      =
Milton Road                                (     (_)    ))   =  *  *  =
Cambridge CB4 4FS                           (           )  ==   .  .  =
England                                      --       --===      ..  =
snail@lsl.co.uk                              ==_______             ==
(+44) 223 420414 ex 275              ========                  ====   
                          ===========                      ====      [ ]BEER
                       ====================================          | |CIDER
-------------------------------------------------------------------------------
From: akeren@laguna.ICS.UCI.EDU (Alan Keren)
Subject: using gif files in motif
Newsgroups: comp.windows.x.motif
Date: 22 Jul 92 17:41:31 GMT


I am trying to load a gif picture and then draw a grid on it using
XDrawline().  The aim is to let a user select a location on a picture.
Drawing a grid pattern in a drawing widget was fairly easy to do.
Also there are the example programs pict.c and xgifload.c from OSF that
will load and display gif files.  My problem has been in trying to draw
the grid lines on top of the picture.  Also once the grid lines are drawn
I need to be able to detect button clicks.

Is there a "standard" method for doing this?

The computer setup I am working with includes:
   SCO unix on DEC 433
   Motif 1.0
   cc compiler

Any kind of help with this is greatly appreciated.

                        -Alan Keren
From: snail@lsl.co.uk
Newsgroups: comp.windows.x.motif
Subject: Re: What is "Purify" ? (Ostriches)
Date: 27 Jul 92 13:06:39 GMT
Organization: Laser-Scan Ltd., Cambridge

In article <1992Jul24.200420.12371@donner.SanDiego.NCR.COM>, davel@booboo.SanDiego.NCR.COM (David Lord) writes:
> 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.

Yup, where there is sand, you'll find ostriches.....