HDTenEightyP/NetNews huggingface dataset:
From: dansmith@autodesk.com (Daniel Smith)
Newsgroups: comp.windows.x.motif
Subject: how to get insensitive-looking textfields?
Date: 12 Oct 92 02:35:28 GMT
Distribution: inet
Organization: The Internet


	I want to get my textfields to *look* insensitive, the
way labels and other widgets do via XtSetSensitive(w, False).

	I have last May's posting from:

> fernwood!uunet.uu.net!pilchuck!maunakea!peterson  (Joe Peterson)

	about changing the color of the text, and that works fine, but
it's not the same effect as the label next to the textfields....  any ideas?

				Daniel

p.s. anyone else notice how the one time Bush rubbed his nose during
the debate, he happened to be talking about Cocaine? :-)
From: inb@creare.com (Ian Brown)
Newsgroups: comp.windows.x.motif
Subject: Translation problems
Date: 13 Oct 92 20:16:56 GMT
Reply-To: inb@creare.com (Ian Brown)
Organization: Creare Inc., Hanover, NH

I am trying to modify the translations for a widget to allow me to use the
right mouse button (on a three-button mouse) as a help button.  Mostly it
works, but when the program starts up, the translation doesn't seem to take
effect until I use the left button on another widget.

What I have is a bulletin board with a number of pushbutton gadgets and
text widgets.  The text widgets work fine, but they handle the translation
and help callbacks directly.  The pushbutton gadgets are the ones with the
problem.

I couldn't get the gadgets to do a help callback at all, so I do the
translation and callback on the bulletin board and then figure out which
push button (if any) the mouse was on when the button was pressed.  As I
said, this works fine, once I've pressed one of those buttons.  Until I do
so, however, the translation doesn't seem to have any effect.

The translation I am using is:

static char *translation = "#augment\n<Btn3Up>:	Help()\n";

After creating the bulletin board, I do the following:

opaque = XtParseTranslationTable(translation);
XtAugmentTranslations(bb,opaque);
XtAddCallback(bb,XmNhelpCallback,help_handler,(caddr_t) NULL);

The pushbuttons and text are created after that and then the whole thing
is realized.  I have my own main loop code, because I need to be able to
handle some extra stuff, but for the most part it just does a XtNextEvent
and XtDispatchEvent.

I'd appreciate any suggestions people can give me.  Please eMail your
responses as I don't read this group very regularly.
Newsgroups: comp.windows.x.motif
From: kellogg@osage.csc.ti.com (Chris Kellogg)
Subject: shells
Organization: Texas Instruments
Date: Mon, 12 Oct 1992 19:43:32 GMT

  I have a question with which I'd greatly appreciate some help
(especially some sample code!).  In my Motif application, the press of
a button in one window should create a new window displaying some more
information.  I can accomplish this by creating and realizing a new
dialog shell, but I'd rather have a new top-level shell, recognized by
my window manager (vtwm), allowing moving, resizing, iconifying, etc.
XtCreateApplicationShell() seems like the solution, but when I create
a new shell with this command, I can't seem to control its resources
with a resource file.

Specifically, I have the code 

  toplevel = XtInitialize(argv[0], "Main", NULL, 0, 
                          (Cardinal *)&argc, argv);
  shell2 = XtCreateApplicationShell("Extrashell", wmShellWidgetClass,
                                    NULL, 0);
  ...
  XtRealizeWidget(toplevel);
  XtRealizeWidget(shell2);

and in my resource file, I have

  Main.height: 100
  Main.widgth: 100
  Extrashell.height: 100
  Extrashell.width:  100

and when I run the program (test), I get

  Error: Shell widget test has zero width and/or height

I've tried putting a * in front of Extrashell.height, and .width, but
that doesn't help - only if I completely remove Extrashell from the
binding does it work.

  Am I barking up the wrong tree - is there a better way to do this -
or am I close?  Any and all help appreciated - written or posted.
Newsgroups: comp.windows.x.motif
From: Duane Clark <duane@blacks.jpl.nasa.gov>
Subject: Re: Motif/Editor
X-Xxmessage-Id: <A6FCAEB7BF014D3D@enkidu.jpl.nasa.gov>
X-Xxdate: Sat, 10 Oct 92 23:00:55 GMT
Organization: Jet Propulsion Labs
X-Useragent: Nuntius v1.1.1d11
Date: Sat, 10 Oct 1992 22:57:50 GMT

In article <1992Oct10.055638.797@vpbuild> Alan Anderson,
alana@vpbuild.uucp writes:
>	I am looking for a "public" domain motif editor. I was starting to 
>	write an editor with search/replace, line numbers, column numbers,
>	c-style brace searching..., but if one exists this could be an
>	exercise in pain for nothing. If any knows of an editor with
>	these style functions please send me some mail of where I can
>	find it. Maybe even multi-file capability?

I posted one a couple of weeks ago with search/replace and line numbers
(among other stuff). For multi-file capability, you execute multiple
instances of the application. If you would like to use it as a starting
point, I'll be happy to email it to you, but my first attempt to reach
you resulted in the mail being bounced for unknown host.
***************************************************
INTHE BEGINNG DYD GODCRE8 HEAVEN PLUS EARTH. THE HLYSPRT CRUZD ONE
TOTALEE VOID MONDO DARKNIS. THENN GODSAYD, "LET THERR BELITE." THERE WUZ
LITE. THELITE IS CALLED DAY, THEDARK IZZ NIGHTT. GODZRAD. HESED, "XCLNT,
FERSUR." DAYONE.
Excerted from Genesis, as translated by Daniel Nussbaum using actual
California license plates, no plate being used more than once.

duane@blacks.jpl.nasa.gov
Newsgroups: comp.windows.x.motif
From: toml@marvin.Solbourne.COM (Tom LaStrange)
Subject: Re: What the heck are "widgets?"
Reply-To: toml@ParcPlace.COM
Organization: ParcPlace Boulder
Date: Fri, 16 Oct 1992 15:18:37 GMT

In article <1992Oct16.081118.14070@rs6000.bham.ac.uk>, pickerig@dns0.bham.ac.uk (Mr. G. Pickering) writes:
|> What you have been using is the Motif Window Manager. This interprets
|> the graphics calls made by an X-Window program (not necessarily a Motif
|> program).

Sorry, the window manager just manages windows.  It puts the decorations
around the windows, allows you to raise, lower, and iconify them.  The only
X stuff it "interprets" are things like window creation/destruction/map/unmap
requests, and input and colormap focus.  The window manager really has
no idea what's going on inside a client's top-level window.

--
Tom LaStrange        toml@ParcPlace.COM
From: al@osf.org (Alastair Gourlay)
Newsgroups: comp.windows.x.motif
Subject: Re:keysym problems transporting X/motif application
Date: 10 Oct 92 16:23:20 GMT
Distribution: inet
Organization: The Internet


>   I am trying to transfer an executable program (X11R5patch16, motif1.1.4)
> to another site.  It works fine on our local network, but at the remote
> site I get errors...

> Both locations have this file in /usr/lib/X11.  On the local network,
> however, on which X and motif were compiled, /usr/lib/X11 is a symbolic
> link to /usr/local/x11r5/lib.  Does this error result because X or motif
> remembers this local name?

XStringToKeysym should still work even if /usr/lib/X11/ is a link, so
it sounds like there's something wrong on the target machine.

Try doing 'strings libX11.a | grep XKeysymDB' on the target machine...
maybe it's not looking in the right place. (The Sun OpenWindows Xlib
used to have this problem.)

For a quick solution, there is a (non-standard) mechanism in Xlib which
allows you to specify an alternative path for XKeysymDB:

From X/XStrKeysym.c
        /* use and name of this env var is not part of the standard */
        /* implementation-dependent feature */
        dbname = getenv("XKEYSYMDB");

XKEYSYMDB contains the full path and file name of the XKeysymDB file.


	Alastair.
From: alana@vpbuild.uucp (Alan Anderson)
Newsgroups: comp.windows.x.motif
Subject: Motif/Editor
Date: 10 Oct 92 05:53:35 GMT
Distribution: usa
Organization: Varco-Pruden Buildings
Originator: alana@vpbuild


	I am looking for a "public" domain motif editor. I was starting to 
	write an editor with search/replace, line numbers, column numbers,
	c-style brace searching..., but if one exists this could be an
	exercise in pain for nothing. If any knows of an editor with
	these style functions please send me some mail of where I can
	find it. Maybe even multi-file capability?


		Thanks

		Alan Anderson
		Varco-Pruden Buildings
		6000 Poplar Suite 400
		Memphis, TN 38119
From: ahom@yingjow.tnds.bellcore.com (Allen Hom)
Newsgroups: comp.windows.x.motif
Subject: Re: Overlapping frame and label - help
Date: 16 Oct 92 18:40:54 GMT
Organization: Network Data Collection Presentation and Processing Development


In article <1992Oct13.091559@is.morgan.com>, andyc@is.morgan.com (Andrew Coad) writes:
|>  Often you see interfaces
|> built with frame widgets enclosing some other group of widgets and a label on the
|> frame. This label is laid out ON the frame (neither above nor below) and it looks
|> very nice. I've tried positioning a label widget over the top left area of a
|> frame widget with no sucess. The label widget always gets truncated. Any ideas?
|> 
|> Andrew Coad
|> Morgan Stanley
|> New York
|> (212) 703-2379
Try to ftp the Xbae offering on /contrib at export.  it contains a "Caption"
widget class that offers what you are looking for, and we have used it here
for exactly what you described.  
-- 
allen hom
Bellcore
ahom@tnds.bellcore.com
(908)699-5728
From: umeth@WARM.SEMCOR.COM (Uri Meth)
Newsgroups: comp.windows.x.motif
Subject: unsubscribe
Date: 8 Oct 92 12:36:33 GMT
Distribution: inet
Organization: The Internet

Gentlemen,

Please remove me from your mailing list.  This is the second time I am
requesting this.  I don't appreciate getting 50 letters a day whan I no
longer want them.  Thank You
From: pkj@bnr.ca (Peter Jarvis)
Newsgroups: comp.windows.x.motif
Subject: Menu Sensitivity
Date: 15 Oct 92 11:48:26 GMT
Organization: BNR Europe Ltd, Maidenhead, UK
X-Newsreader: TIN [version 1.1 PL6]

I'm trying to setup an application  that has a menu option  containing
the options:

	Delete Item
	Modify Item

	Password

When the  program  initialises  the delete  and  modify  options  have
sensitivity  turned off.  What I want to do is allow a user to enter a
password which turns on the  sensitivity of the delete and modify menu
options.

At present I'm using the O'Reilly Motif 6 BuildMenu  functionality  to
generate  the  menu  stubs.  How do I turn on the  sensitivity  of the
delete and modify  options  from the  password  menu  option  callback
routine?

I'd be grateful for any help on this matter.
From: jason@hpcvxjts.cv.hp.com (Jason Su)
Newsgroups: comp.windows.x.motif
Subject: Re: OptionMenu Question
Date: 13 Oct 92 19:47:57 GMT
Article-I.D.: hpcvusn.1992Oct13.194757.19648
Reply-To: jason@hpcvxjts.cv.hp.com (Jason Su)
Organization: Hewlett-Packard Laboratories

|>The function XmGetPostedFromWidget(menu) should return the id of your
|>OptionMenu according to my books.
|>
|>NEW QUESTION though:
|>However when I just tried it myself my program crashed. I examined the
|>contents of the PulldownMenu structure (XmRowColumnPart) before I 
|>used it as the parameter to XmGetPosted... and discovered that the
|>structure member "lastSelectTopLevel" contained rubbish. This one should
|>contain the id of the widget from which the menu was posted.

XmGetPostedFromWidget() should only be used when the menu system is
active (i.e.
a menu is posted).  In general, this means that it should only be called from
callbacks of menu system components (popup, menu buttons, menushell, etc).
"lastSelectTopLevel" is only updated during the posting process of a pulldown
or popup menu.

Beware that pulldowns and popups can be shared.  For example, a pulldown can
be attached to more than one cascade button.  For this reason, it is not
possible to assign a value to "lastSelectTopLevel" until a menu is about to
post.  Off the record, you may obtain a pulldown or popup's list of
"connections" via the postFromList.  I don't care to go into what is does
because it has been undocumented, and thus semi-unsupported.  Study the
RowColumn source if this interests you.  Don't screw with it if you don't
know what you're doing - it'll bite you, guaranteed.

			-Jay Su
			jason@cv.hp.com

                                     
Newsgroups: comp.windows.x.motif,comp.windows.open-look
From: todd@fred.dfrf.nasa.gov (Todd Vernon)
Subject: Re: XtAppCreateShell
Keywords: Motif,shell,OpenLook,HP
Reply-To: todd@fred.dfrf.nasa.gov (Todd Vernon)
Organization: NASA Dryden Flight Research Facility, Edwards CA
Date: Thu, 8 Oct 1992 21:03:15 GMT

doc@fajita.saic.com (Thomas W. Dockery 6429) writes:

>> I have trouble with a particular Motif item not working under
OpenWindows 3.0.
>> Popup menus activated with the third mouse button work fine under the
MIT X
>> server, but hang the OW3 X server.  A trace on the server reveals a
tight
>> loop.  Our sun rep took the problem report but their response has
been...
>> It must be a programmer error.  However; Island Write, Island Paint,
and
>> Island Draw all use popups, and all work fine under the MIT X server,
but
>> exhibit the same response as my programs when running under the OW3 X
server.
>> Any ideas on this?

I have this same behavior using mxrn off the net, compiled against
ICS Motif on a Sun4.

Todd

Xref: sparky comp.windows.x.motif:6820 comp.sys.hp:11677
From: hebo@hp850.mbari.org (Bob Herlien)
Newsgroups: comp.windows.x.motif,comp.sys.hp
Subject: Re: HP9000 mwm HASSLES!!!!
Date: 14 Oct 92 22:42:52 GMT
Followup-To: comp.windows.x.motif
Organization: Monterey Bay Aquarium Research Institute

In article <1992Oct14.100500.3128@hippo.ru.ac.za> lynette@oliver.sun.ac.za (Lynette Lewis) writes:
>
>FOCUS PROBLEMS:
>Suppose a text widget is 
>being displayed, and has focus.  Now, when a pulldown menu is selected with the mouse, it gets the
>focus (correctly).  But, when the pulldown menu disappears, the focus is not returned
>to the text widget as would be expected.  Instead, the text widget shows the standard
>caret(^) at the current position, and only by holding in the middle mouse button can
>it get the focus back! However, by popping any other dialog up on the screen (say a 
>help or warning dialog), and popping it of again, focus is then correctly restored
>to the text widget.
>
Lynette,

Yes, I've seen exactly this behavior, and I posted a question about it to the
net yesterday.  Actually, my post listed two problems, and you summarized this
one much better than I did.

I just compared notes with a co-worker who has also run into this problem.
Our combined experience:

- When my application is built and run on an HP 370 (HP-UX 8.00, X11R4, 
  Motif 1.1), it runs correctly.
- The same C code built and run on an HP 750 (HP-UX 8.07, X11R4, Motif 1.1)
  exhibits the behavior you described 100% of the time, no matter what display
  it's run on (370 console, 750 console, 700RX X-terminal).
- My coworker's application, built and run on an HP 730 (HP-UX 8.07, X11R4,
  Motif 1.1) usually, but not always, exhibits the behavior you described.
  It seems to run correctly when run from the 730 console, but sometimes
  fails when run on an X-terminal.

I have found no work-around for this bug.  As you noted, popping up and down
any dialog will restore keyboard focus, but that's not very intuitive for
the users.  I guess the best course of action now is to submit a bug report
to HP.  I'm not sure how to do this, but my system administrator has done
it before.  I'll get together with him to see how to proceed.

--------------------------------------------------------------
Bob Herlien
MBARI (Monterey Bay Aquarium Research Institute)
hebo@mbari.org
From: meeks@osf.org (W. Scott Meeks)
Newsgroups: comp.windows.x.motif
Subject: Re: Text/List widget questions
Date: 16 Oct 92 20:35:06 GMT
Distribution: inet
Organization: The Internet

>Date: 13 Oct 92 19:38:42 GMT
>From: munnari.oz.au!bunyip.cc.uq.oz.au!news.qut.edu.au!qut.edu.au!csb960dean@uunet.uu.net  (Michael Dean)
>Gidday
>   Can someone tell me if the motif text widget has an overwrite
>mode, that is, no new characters are inserted into a line when 
>you type, the old ones are just overwritten, 

Yes.  In 1.2, XmText defines the toggle-overstrike action.  This is not
bound to any key by default, so you'll have to add your own translation.

>and
>
>does the list widget supplied with motif capable of doing 
>multiple columns.

Not yet.  It has been proposed for the next release of Motif to add tabbing
to XmStrings which will allow certain types of multi-column behavior.  I
believe other people have simulated this behaviour in existing version of
Motif.  Hopefully one of them will respond.

>Thanks
>
>-- 
>------------------------------------------------------------------------------
>Michael Dean ,                        csb960dean@qut.edu.au
>
>QUT - Queensland University of Technology
>
>Do you ever get that feeling of vu ja de???
>the feeling that none of this has ever happened before!!

Actually, I've heard this called "ja mai vu" (not sure of the spelling)
which translates to something like "never seen before."  Deja vu is
something like "already seen."  Happens to me all the time.

W. Scott Meeks           
Open Software Foundation 
meeks@osf.org            
(617) 621-7229           
Practice random kindness and senseless acts of beauty.
From: ericb@sierra.com (Eric Blood "intern")
Newsgroups: sierra.motif,comp.windows.x.motif
Subject: Resize in Motif
Date: 15 Oct 92 00:27:12 GMT
Distribution: na
Organization: Sierra Geophysics Inc.,  Kirkland, Wa


	A project in Motif requires that a label reflects certain
information based upon the visible area in a scrolled window.

	What I need done, is when a resize of the window occurs, a
label needs to be updated.  Up to now, I have used XtAddEventHandler()
along with PropertyNotify and ConfigureNotify.  Neither of which is
called when the window is resized.  ResizeRequest is a prelude to a
notify and doesn't suit my needs.

	How can I know a resize of a window has a occured?

Thanks,
EVB  
---
Eric V. Blood
ericb@sierra.com

-- 
Eric V. Blood
ericb@sierra.com
Newsgroups: comp.windows.x.motif
From: jxt@stc06.ctd.ornl.gov (TOLLIVER J S)
Subject: Re: Opinion of O'Reilly Guides to the X Window System
Reply-To: jxt@stc06.ctd.ornl.gov (TOLLIVER J S)
Organization: Oak Ridge National Laboratory
Distribution: inet
Date: Thu, 15 Oct 1992 19:50:38 GMT

In article <TOM.92Oct14123934@amber.ssd.csd.harris.com>,
tom@ssd.csd.harris.com (Tom Horsley) writes:
>P.S. Will the reference section have the Widget name on each page
>header?
>With some of the complicated widgets, it takes multiple pages to
>describe
>the widget and the fact that they are in alphabetical order does you no
>good
>when you have to flip through several pages to figure out what widget
>you
>are looking at now so you can tell which direction you need to search.

They are already there -- just hard to find. Look at the bottom of the
page, near the binding.
Newsgroups: comp.windows.x.motif
From: bernward@rcc.de (Bernward Averwald)
Subject: Re: Background for oclock under motif
Organization: Home
Date: Fri, 9 Oct 92 08:51:34 GMT

In article <16206@borg.cs.unc.edu> saxe@proline.cs.unc.edu (Eddie Saxe) writes:
>There is a [minor] item that I've been trying to deal with.  It's completely
>an aesthetic problem, and if I can't deal with it, it's not something I
>can't cope with.  But, something inside me says that there should be a way
>to deal with it.
>
>This problem only occurs when I use a DECstation with mwm as my window
>manager.  When I use a SPARCstation, or when I use twm, this problem doesn't
>occur.  But, on a DECstation, Motif somehow puts a background around the
>oclock face, to fill out to be a rectangle.  I've tried to edit my
>.Xdefaults, putting:
>Mwm*oclock*clientDecorations:	none
>in it, to no avail.
>
>Which, if there is one, resource do I need to alter to get it to leave the 
>background off?  If there isn't a way, why does Motif leave it off on the
>SUNs?

Oclock uses the SHAPE extension of X11 protocol. So, the X server *and* the
window manager must support the SHAPE extension. Apparently the X server on
your DECstation has this extension, but not the mwm.
If I remember right, the mwm sources as distributed by OSF had a
compile time option to turn on the SHAPE support for mwm. This option
was by default turned off.

BTW, isn't the correct resource "clientDecoration", without 's' ?
If you made a typo, you can forget my sentences about extensions.

>
>Thanks,
>Eddie
>-- 
> ____/|  Bill the Cat says "Vote Dave Barry | saxe@cs.unc.edu alias
> \ o.O|  for President!"  Actually, he says,| eddie@uncvx2.oit.unc.edu
>  =(_)=  "ACK!  THPHTH!" but we're sure that| "That can't be my shirt.  My
>    U    he's a Dave Barry supporter.       |  shirt doesn't snore."--G. Marx

Hope this helps,

Bernward
-- 
        Bernward Averwald, Heinrichstr. 42, 4600 Dortmund 1, Germany
        Voice: +49 231 144048, FAX: +49 231 144047,  email: b@rcc.de
        maruru         ia ora na           mahalo              aloha
From: jeff@hpuplca.nsr.hp.com (     Jeff Gruszynski)
Newsgroups: comp.windows.x.motif
Subject: Re: How can we get rid of HP VUE?
Date: 13 Oct 92 01:25:59 GMT
Organization: Hewlett-Packard Neely Golden Gate Area (Northern Calif.)

In comp.windows.x.motif, chen@humboldt.kent.edu (Chen) writes:

>
> ... wants to turn off HP-VUE
>

Changing from run-level 3 to run-level 2 will turn VUE completely off.
This is specified in /etc/inittab.  The first line is:

init:3:initdefault:

change to:

init:2:initdefault:

and reboot...

Jeff
From: dmq00@RUTS.ccc.amdahl.com (Desmond Quek)
Newsgroups: comp.windows.x.motif
Subject: Xeyes & Mwm problem
Date: 8 Oct 92 00:15:00 GMT
Reply-To: dmq00@RUTS.ccc.amdahl.com (Desmond Quek)
Organization: Amdahl Corporation, Sunnyvale CA


Hi folks,

	I've recently compiled Motif1.1.3 with -DSHAPE flag, and I noticed that
the xeyes program shows up funny on my screen.  The top edge of the Mwm window
frame seems to be clipped and the bottom is overlapped by the two eyeballs.
Has anyone out there run into problem like this?  Any fix for this?  Help
appreciated.

	System information:
		SUN IPX, SunOS 4.1.1
		X11R4 P18
		SUN OpenWin Server 3.0
		Mwm 1.1.3


Thanks,
Desmond Quek
Amdahl Corporation
dmq00@da.amdahl.com
From: lee@ceg.uiuc.edu (Chris Lee)
Newsgroups: comp.windows.x.motif
Subject: window manager query (acceleration)
Date: 15 Oct 92 19:23:39 GMT
Article-I.D.: ceg.lee.719177019
Organization: University of Illinois at Urbana

Hello.

I'm trying to customize mwm to sorta emulate the keybindings I
had on a Domain/OS Display Manager window.  There are a few
odds and ends I have not come across in the man pages.


1. Is there a way to move a window *in 1 shot* without using
   the mouse?  For example, could I bind say alt-f12 to move
   the current window to the top right portion of my screen
   AND resize it to a fixed geometry?

   I know I can use alt-f7 to move and alt-f8 to resize, but
   with those keys, you still have to manually move the window
   and manually resize the window even though you know exactly
   where and what size you want it.

2. Is there a way to have the function f.next/prev_key SKIP
   certain applications (like xbiff, xcal, xclock, xload...)
   that you don't want to sequence thru when you are trying
   to get to the next window/icon?

3. Is there a way to have certain apps (like xbiff, xcal, xclock...)
   ALWAYS stay at the very bottom of the tiling?  I find it obnoxious
   when those "info" apps obscure the terminal window.  This probably
   will not be doable...


Thanks in advance.
-- 
Chris Lee
University of Illinois Urbana
lee@ceg.uiuc.edu
(217)244-2903
From: colassik@hpwala.wal.hp.com (Ken Colassi )
Date: Tue, 13 Oct 1992 19:52:46 GMT
Subject: Looking for Flow Widget
Organization: Hewlett-Packard Company