HDTenEightyP/NetNews huggingface dataset:
From: troy@intelhf.hf.intel.com (Troy Allison)
Subject: Two easy (I hope) questions
Summary: I have two basic questions to ask this group
Keywords: questions
Organization: Development Tools Operation, Intel Corp., Hillsboro  OR
Date: Fri, 2 Oct 92 18:18:23 GMT

Hi,

I am a beginning X motif programmer, and I am having problems
getting the results I wish from my first programs.  I know this
is not unusual but, the documentation I am working from is not
the best.  Some of the O'Riley series are on the way so at this
time they are not any help.  So, I thought I could ask this group
for some help in the interm.  I didn't find the answers I was looking
for in the FAQ so I resorted to a post.

My questions are:

1. I am trying to create a three button widget.  I can get one
   button working properly (size and postition) but, the other
   buttons I create appear to lie under the first button.  If
   I grow the window, the second button grows with the window,
   but the first stays in the upper left corner and keeps
   its size.  

----------------------------------
|          |           |         |
|   b1     |    b2     |    b3   |
|          |           |         |
---------------------------------


   This is what I am trying to create.


2. I launch a text input window after button 1 is pressed, which
   queries the user for a file name.  Once I get the file name,
   I TRY to use a system call to start a xterm which vi's the
   file.  The problem is I don't know how to pass in the string
   to the system request command so vi can vi.

   The call looks like this:

   system("xterm 'vi string_name'");

   The problem is most likely in the implementation.  Is there a way
   to get this to work, or another method I can use to accomplish
   the same thing?


Please send responses to: tallison@pcocd2.intel.com
Any replies or comments will be appreciated!
Thanks in advance.
-- 
=========================================================
It is easy to identify a begining martial-arts student:
s/he is the one practicing the most advanced technique
they know, while the advanced student practices the first
Newsgroups: comp.windows.x.motif
From: mstorey@csr.UVic.CA (Margaret-Anne D Storey)
Subject: Pixmap Problems
Originator: mstorey@csr
Organization: University of Victoria, Victoria, BC, Canada
Date: Wed, 30 Sep 92 16:15:31 GMT


Hi,

I am currently in the midst of implementing a large software
system in C++ and Motif, running on IBM RS/6000.

The application uses many windows which have drawingareas.
Therefore I need to look after expose events.  I am doing
this by drawing into a pixmap as I draw on a window and
then pasteing from the pixmap to the window when an 
expose event occurs.

I am using Xlib calls to do the drawings.  I am drawing
icons (drawn as pixmaps), lines and strings, with
the GCFunction in the gc set to GXxor.  Most things 
work ok, except it seems that:
	XDrawString into a pixmap with GXxor
does not work!

I have tried all the Xlib Drawstring calls and the motif
ones.  They all have the same problem!  Perhaps it might 
have something to do with fonts, but I have tried setting
different fonts.

I am at my wits end, as the system is unusable due to 
this problem!
If anyone has any info or suggestions I would really
appreciate them!  

Does anyone know where I could ftp an xlib or
motif bug list?

Many thanks!

Peggy Storey,
Department of Computer Science,
University of Victoria,
British Columbia, Canada.
(mstorey@csr.uvic.ca)

Newsgroups: comp.windows.x.motif
From: rohrbach@rhrk.uni-kl.de (Axel Rohrbacher [MW])
Subject: mwm V1.2 problems on Vaxstation 3100
Organization: University of Kaiserslautern, Germany
Date: Mon, 28 Sep 1992 15:56:38 GMT

I have compiled Motif 1.2 on our Vaxstations 3100, without any
problems.
Whe I start mwm, in the same constellation than the previous V1.0 mwm,
it breaks after having decorated the windows.

Is this a VAX-problem, have I forgotten some compiler options ?

Any hints are appreciated. Thanks.

PS: We are running Ultrix 4.1.

Axel Rohrbacher          rohrbach@ccksun3.cck.uni-kl.de
CIM-Centrum              rohrbach@131.246.9.194
Universitaet Kaiserslautern
Germany
From: gxka@seghp3.esb.pge.com (Gabor Kincses)
Newsgroups: comp.windows.x.motif
Subject: Problems with scrolledWindow and rowColumn
Summary: ButtonPress in clipWindow, and Geometry Management of rowColumn
Date: 6 Oct 92 21:30:27 GMT
Organization: Pacific Gas and Electric
Originator: gxka@seghp3.esb.pge.com

Hi,

Since I haven't seen the FAQ in a long time, I decided to post my problems.

First, I have some problems getting ButtonPresses from a scrolledWindow.  The
scrolledWindow has one child which is a "packedNone" rowColumn.  I am setting
up a ButtonPress Event Handler for the rowColumn as well as for the
clipWindow child of the scrolledWindow.  The rowColumn receives the ButtonPress,
but the clipWindow does not.  I tried setting the clipWindow sensitive, but it
didn't help.  I changed the background color of the clipWindow to something
different, so I am absolutely sure I am pressing the MB in the right area.

Second, the above mentioned rowColumn doesn't adjust its geometry sometimes.
I would expect that whenever no child of the rowColumn is managed it would
reduce it size to a few pixel by few pixel.  But upon initialization it
appears with its full size.  Of course I can manage and unmanage one child of
it at the first Expose, but I assume I wouldn't have to do that.
Is this a bug in HP's Motif distribution?  I am using Motif1.1 on an
HP750 (8.07).

If you have any help please e-mail me.
Thanks in advance,
Gabor
(gxka@esb.pge.com)
Newsgroups: comp.windows.x.motif
From: khartig@nyx.cs.du.edu (Kevin Hartig)
Subject: Drag and drop icons example?
Summary: Looking for drag and drop icon example.
Keywords: drag drop icons motif X11R5
Organization: University of Denver, Dept. of Math & Comp. Sci.
Date: Tue, 29 Sep 92 19:02:36 GMT

I'm looking for an example code theat allows dragging and dropping icons
between two windows owned by the same process. Preferably C or C++ code
that runs with Motif/X11R5. Any pointers will be appreciated.

Kevin
Hartig@fsl.noaa.gov
From: chen@humboldt.kent.edu (Chen)
Newsgroups: comp.windows.x.motif
Subject: How can we get rid of HP VUE?
Keywords: VUE vuewm mwm
Date: 7 Oct 92 01:19:32 GMT
Organization: Kent State University


Hi folks, 

I have a problem with HP VUE.  I don't know if this is the right group to post,
but since HP VUE is based on Motif window manager, so...

I just switched to a new place where we use HP 9000/730 as host and HP A1097C
as X terminals where it runs HP VUE session.  Since I am so used to the old-
fashion xdm type of X window, I want to get rid of HP VUE and have xdm to source
my .login/out files, resource files....etc. and give me full control of the 
session. I have tried 2 ways to get around:

	1. Login with Fail-Safe session from the greeting window, in which
	case I have to start every application by hand after I logged in, 
	including the window manager.

	2. Change the resource wmStartupCommand to another window manager, say
	mwm, in which case I couldn't even logout w/o killing the process of
	vuesession by hand.

I also thought about another possibility, login with no window and start X
with xinit. The problem is that we are using X terminals where that option
is greyed out on the login window.

I know vuewm is the most complicated, most fancy window manager, but I just
don't like it. Could anyone kindly give me some tips of how to get around?

Thank you very much in advance.


-- 


--------------------------------------------------------------------------------
Ligang                                                       Ligang Chen 

Department of Math and Computer Science 
Kent State University.
(216) 672-4004 ext 135  voice mail 501
--------------------------------------------------------------------------------

"Uncle Cosmo ... why do they call this a word processor?"

"It's simple, Skyler ... you've seen what food processors do to food,
right?"
                -- MacNelley, "Shoe"
Newsgroups: comp.windows.x.motif,comp.windows.x.apps,comp.windows.x.intrinsics
From: bjoerns@stud.cs.uit.no (Bjoern Stabell)
Subject: Imake expandable?
Keywords: Imake, MIT, X
Organization: University of Tromsoe, Norway
Date: Mon, 28 Sep 1992 20:35:28 GMT


When I first heard of Imake, I was awed - finally a way to specify site and
platform independent Makefiles.  And all the extra fancy rules!  However,
trying to make Imake handle Motif 1.1 / 1.2, Motif++, Wcl, C++ / ANSI C /
KR C, X11R4 / R5 made me think it was ready for a refinement. :)

The thing that got me going was the Motif++.tmpl/rules files included in
the Motif++ widget wrapper library.  The idea of just doing

#include <Motif++.tmpl>
#include <Motif.tmpl>
#include <C++.tmpl>
#include <Xt.tmpl>
#include <X.tmpl>
#include <whatever.tmpl>

in Imakefiles appealed to me.  In Motif++.tmpl I also found a note about a
Motif.tmpl file, which I didn't have even though we have Motif (probably
because HP doesn't include the full MIT distribution - Imake is not
included).  Not standardized, even though hundreds (if not thousands) of
programs use Imakefiles and Motif.

I understand that maybe Imake wasn't meant to be expandable, but I see that
there is a need - if you need to specify any site dependent information in
the Imakefile, it is of (almost) no use.  And, as C++ and Motif++ etc. are
making their way to application programmers, it would be nice if Imake were
documented properly, hopefully with rules on how to make expansions.


Kind regards,
-- 
                                                  Bjoern Stabell
                                                  University of Tromsoe
                                                  (+47) 83 44 053 / 83 75 164
                                                  bjoerns@staff.cs.uit.no
Newsgroups: comp.windows.x.motif
From: stefans@bauv106.bauv.unibw-muenchen.de (Stefan Schwarz)
Subject: Strange accelerator-warning-message
Organization: Universitaet der Bundeswehr Muenchen (Germany)
Date: Mon, 28 Sep 1992 13:52:40 GMT

I'm setting translations for a DrawingArea, which i'm using within a dialog.
This dialog comes up and works fine, but when closing the dialog i get
the following warning:
Warning: Tried to remove non-existant accelerators

But the accelerators must be there, because i could use them.

Any ideas what's going on?

Stefan
-- 
________________________________________________________________________________
Stefan Schwarz                            University of the armed forces, Munich
Laboratory for graphical data processing  W-8014 Neubiberg, FRG
--------------------------------------------------------------------------------
Newsgroups: comp.windows.x.motif
From: TuyetTrang Le 
Subject: Testing window id
Originator: trang@boxelder.boulder.ibm.com
Date: Tue, 29 Sep 92 17:33:20 GMT
Reply-To: ltrang@vnet.ibm.com 
Organization: ibm - fsc boulder

Is there a function to test whether a window id is valid or not before
calling either XQueryTree or XGetWindowAttributes function?
Thanks.

Trang Le
FSC Boulder
From: rivers@SEISMO.CSS.GOV (Wilmer Rivers)
Newsgroups: comp.windows.x.motif
Subject: Re: Will Motif ever start over from a clean slate?
Date: 5 Oct 92 23:18:09 GMT
Distribution: inet
Organization: The Internet


Flame on:

I hope OSF **doesn't** ever re-write Motif.  Based on the price
escalation from v1.1 to v1.2, the source code for the new version
would cost $400,000 and just a binary license would cost $225,000.

Flame off (well, reduced to simmer).

Wilmer Rivers

Newsgroups: comp.windows.x.motif
From: feit@ERA.COM (Mark Feit)
Subject: Enter/LeaveNotify Events on DrawingAreas
Organization: Engineering Research Associates, Vienna, VA
Date: Thu, 1 Oct 1992 19:47:16 GMT


Is there a relatively easy way to get Enter/LeaveNotify events on a
DrawingArea (Version 1.1.5)?  I've tried using

*my_da.translations:	#replace \
			...
			<EnterWindow>: DrawingAreaInput() \n\
			<LeaveWindow>: DrawingAreaInput() \n\
			...

but it doesn't seem to work.  I understand that DAs inherit
translations from Manager and filters out Enter/Leave events, but I
was able to get ButtonMotion events using the same method.

Thanks loads.

						- Mark

 ................................. .................................
: Mark A. Feit             KD4TAJ : Internet: feit@era.com          :
: Engineering Research Associates : USENET: ...!uunet!era!feit      :
 ................................. .................................
		   "Keep BSD Free -- Boycott AT&T"
From: chen@humboldt.kent.edu (Chen)
Newsgroups: comp.windows.x.motif
Subject: Re: xmkmf
Keywords: xmkmf imake
Date: 7 Oct 92 01:17:09 GMT
Organization: Kent State University


Thank you folks for all the kind and helpful responses. 

I finally got the xmkmf working. 

For those who are still sufferring form not being able to get makefile
from xmkmf, here is what I did, hope it will help.

1. xmkmf is just a shell script, and the real program is imake, usually in
   /usr/bin/X11

2. The easiest way is to go to another same type of machine where it has imake
   and copy it. I ran into a problem because the imake I got gave me the error
   like: 
	4: Can't find include file Imake.tmpl
   Since I didn't find the directory defination in xmkmf script, I figured that
   the path must be hard coded in the executable, and since I couldn't write to
   /usr/lib/X11/config, I gave up.

3. At last, I went to iworks.ecn.uiowa.edu and extracted all the X11R5 files. 
(Thank you Larry Headlund, I appreciat your help) The imake among all the binary
files was not compiled with shared library, so I just used the old xmkmf to 
call this imake.   
Here, though, I still have some questions: does this imake not use those
template files at all?  How do we deal with binarys compiled with shared library, namely, programs that were compiled with hard coded path of libraries?

Anyway, that's how I just compiled the application which I got from somewhere.
So far, the imake works fine. Hope this is helpful. If you have any better idea,
please post.

Thank you again for your help.


-- 


--------------------------------------------------------------------------------
Ligang                                                       Ligang Chen 

Department of Math and Computer Science 
Kent State University.
(216) 672-4004 ext 135  voice mail 501
--------------------------------------------------------------------------------

"Uncle Cosmo ... why do they call this a word processor?"

"It's simple, Skyler ... you've seen what food processors do to food,
right?"
                -- MacNelley, "Shoe"
Newsgroups: comp.windows.x.motif
From: jason@hpcvxjts.cv.hp.com (Jason Su)
Subject: Re: 1.2 tear off menu question
Reply-To: jason@hpcvxjts.cv.hp.com (Jason Su)
Organization: Hewlett-Packard Laboratories
Date: Mon, 28 Sep 1992 21:04:13 GMT

In article <1992Sep28.200209.28611@mercury.unt.edu>,
gene@ponder.csci.unt.edu (Gene De Lisa) writes:
|>
|>In the resource file I set:
|>
|>*listOmenu*tearOffModel : tear_off_enabled
|>
|>and got:
|>
|>Warning: No type converter registered for 'String' to 'TearOffModel'
conversion.
|>
|>when I set it in the code it works ok. What's the deal?
|>
|>
            
Unfortunately, tear off menus are not automatically backwards compatible.  An
application developer must first load a resource converter.  Luckily, one is
provided, but not installed.  The application can call
XmRepTypeInstallTearOffModelConverter() for this converter to be installed.

The reason why this converter was not automatically installed was to prevent
applications which utilized context-sensitive-shared-menupanes from potentially
corrupting data.  Many philosophical battles have waged on this issue.

			-Jay Su
			jason@cv.hp.com
Newsgroups: comp.windows.x.motif
From: dwu@hal.gnu.ai.mit.edu (Daniel Wu)
Subject: How to strip off "_popup" string in XmCreateFormDialog?
Keywords: _popup string XmCreateFormDialog
Organization: MIT Laboratory for Computer Science
Distribution: na
Date: Tue, 29 Sep 1992 00:56:15 GMT


I haven't seen the FAQ for a while now, so I'll just ask this question.
If it is in the FAQ, can you please tell me where to ftp it (or can 
someone email it to me)?

In my code, I call the routine:

	configDialog = XmCreateFormDialog (dialogShell,
		"Printer/Plotter Setup", NULL, 0);

The resulting dialog box has the Menu title:

		Printer/Plotter Setup_popup
				     ^^^^^^^
I want the string to simply read:

		Printer/Plotter Setup

without the "_popup" appendage.

Can someone tell me what I have to do to accomplish this?

Thanks,

Daniel
dwu@hal.gnu.ai.mit.edu
Newsgroups: comp.windows.x.motif
From: dbrooks@osf.org (David Brooks)
Subject: Re: Motif for Sun
Organization: Open Software Foundation
Date: Fri, 2 Oct 1992 15:13:31 GMT

In article <1992Sep30.183745.10798@vine.cp10.es.xerox.com>, lbonham@osbu_south.xerox.com (Larry Dean Bonham) writes:
|> I am seeking info on motif binaries (object) for the Sun. 
|> 
|> Who distributes them besides OSF (I know about IXI, Quest and DEC)? 

Actually, we don't.  We're only allowed to ship sources.

(I tried to mail, but it wouldn't go through).
-- 
David Brooks					dbrooks@osf.org
Open Software Foundation			uunet!osf.org!dbrooks
111 more days of Bush Presidency!
From: bin@primate.wisc.edu (Brain in Neutral)
Newsgroups: comp.windows.x.motif
Subject: Re: xmkmf for HP 700's
Date: 28 Sep 1992 17:03:55 -0500
Organization: Cafe Limbo
Distribution: inet
Reply-To: bin@primate.wisc.edu
NNTP-Posting-Host: uakari.primate.wisc.edu

From article <1992Sep27.154148.22076@cv.ruu.nl>, by rvloon@cv.ruu.nl (Ronald van Loon):
> xmkmf should be the same for all machines, I have seen the question before so
> here's ours: 

Tell that to the Open Windows people.


-- 
Paul DuBois
dubois@primate.wisc.edu
Newsgroups: comp.windows.x.motif
From: lms@rle-vlsi.mit.edu (Luis Miguel Silveira)
Subject: Question on mwm decorations (and epoch)
Organization: Research Laboratory of Electronics, Massachusetts Institute of
	Technology
Date: Sun, 27 Sep 1992 06:49:56 GMT



I have a question about client decorations on mwm.  I could not see an
answer for this in the FAQ, so...

The FAW says that in order to change the decorations on clients under
Mwm one should use (for instance on xbiff):

        Mwm*XBiff*clientDecoration:     <whatever>

What I actually want is to change the decoration of the epoch
minibuffer (just the minibuffer, *not* the epoch windows).  I have
found a way of changing the decorations of all epoch windows & the
minibuffer but I want to treat the minibuffer differently.

Any help will be appreciated.  Please reply by e-mail as I do not read
this newsgroup very frequently.

Thank you.

-Miguel


--
=============================================================================
Luis Miguel Silveira                            e-mail : lms@rle-vlsi.mit.edu
=============================================================================
Research Laboratory for Electronics  -  Massachusetts Institute of Technology
Room 36-893, 77 Massachusetts Ave,                      Phone: (617)-253-7307
Cambridge MA 02139                                      Fax:   (617)-258-7864
=============================================================================
also affiliated with:
INESC - Instituto de Engenharia de Sistemas e Computadores
Av. Alves Redol, 9-3o, 1000 Lisboa, PORTUGAL           Phone: (351)-1-3100288
=============================================================================
Newsgroups: comp.windows.x.motif
From: kobet@picker.com (Harry Kobetitsch)
Subject: Porting Motif 1.1
Organization: Picker International, Inc.
Distribution: na
Date: Tue, 6 Oct 1992 13:50:14 GMT

I am trying to port Motif 1.1 on the Sun SPARCstation IPX.
Does anyone know why I keep on getting  the followiing
undefined symbols (XtInherit, XtToolkitInitialize) ?
This happens when building the demos and the test suites.

-- 
Picker International, Inc.
595 Miner Road
Highland Heights, Ohio 44143
Voice: 216-473-2624
Organization: Middle East Technical University - Computer Center
Date: Wednesday, 30 Sep 1992 15:55:38 TUR
From: <C51881@TRMETU.BITNET>
Newsgroups: comp.windows.x.motif
Subject:    A Program that Draws Directed Graphs is Wanted!

Hi,
A ready-made program that draws directed graphs by reading a list of nodes
and edges, computing a layout and then drawing a picture is needed especially
in X windows/Motif environment. If there is one can you send the FTP adress?
Thank you.
                                        Budak Arpinar
                                   <C51881@TRMETU.BITNET>
Xref: sparky comp.windows.x.motif:6606 comp.windows.x.apps:1193 comp.windows.x.intrinsics:371
From: klute@tommy.informatik.uni-dortmund.de (Rainer Klute)
Newsgroups: comp.windows.x.motif,comp.windows.x.apps,comp.windows.x.intrinsics
Subject: Re: Imake expandable?
Date: 5 Oct 1992 13:34:53 GMT
Organization: CS Department, Dortmund University, Germany
Distribution: world
NNTP-Posting-Host: tommy
Keywords: Imake, MIT, X

In article <1992Oct2.013447.5466@mcs.kent.edu>, chen@humboldt.kent.edu
(Chen) writes:
|> In article <1a99rbINN3v4@fbi-news.Informatik.Uni-Dortmund.DE>,
|> klute@tommy.informatik.uni-dortmund.de (Rainer Klute) writes:
|> 
|> |> You should check DuBois, Paul, Using Imake for Multiple Projects,
|> Wisconsin
|> |> Regional Primate Research Center, 1991.
|> |> 
|> |> I have made some Imake documentation available on ftp.germany.eu.net
|> in
|> |> directory /pub/X11/misc/imake:
|> |> 
|> |> -r--r--r--  1 klute    X11        448209 Sep 18 00:10 DuBois.tar.Z
|> |> -r--r--r--  1 klute    X11         38763 Sep 18 00:11 Fulton.tar.Z
|> |> -r--r--r--  1 klute    X11         89675 Sep 18 00:11 Moraes.tar.Z
|> 
|> Well, I went up there but could not get those files out, the permission
|> seemed
|> to be denied, somehow.

You should try again. The files are definitively there and their
permissions are correct. Did you remember to retrieve the files in binary
mode?

-- 
  Dipl.-Inform. Rainer Klute      klute@irb.informatik.uni-dortmund.de
  Univ. Dortmund, IRB
  Postfach 500500         |)|/    Tel.: +49 231 755-4663
D-W4600 Dortmund 50       |\|\    Fax : +49 231 755-2386
From: akhavan@maestro.bellcore.com (Hamid Akhavan)
Newsgroups: comp.windows.x.motif
Subject: Program Bombs at XmTextFieldShowPosition(). Why?
Date: 6 Oct 92 17:45:48 GMT
Organization: Bellcore (Red Bank, NJ)


Hello Motifians,

I have this code piece that bombs. Could you please help me figure out
why? All I need to do is to make sure that text scrolls up automatically
so that the position of the cursor is visible. Is there a simpler (or
better) way of doing this?

{
  XmTextPosition last;

  last = (XmTextPosition)strlen(textBuff);
  /* I can print the 'last' variable successfully */

  /* all is ok until we reach this next line. Then it bombs! */
  XmTextFieldShowPosition(myScrolledTextWidget, last);
}

Please send e-mail responses. Thanks.

Hamid Akhavan
Bell Communications Research
akhavan@troy.cc.bellcore.com
+++++++++++++++++++++++++++++++++++++++++++++++++++++++
Hamid Akhavan
Bell Communications Research
akhavan@troy.cc.bellcore.com
From: al@osf.org (Alastair Gourlay)
Newsgroups: comp.windows.x.motif
Subject: RE:Translations
Date: 28 Sep 92 15:45:33 GMT
Distribution: inet
Organization: The Internet


> Is it possible to nicely uninstall one particular translation??
> I am trying to use translations to catch a double click on a
> Motif pushbutton.

One way of catching double (or any multiple) click events on a
pushbutton is to set XmNmultiClick to XmMULTICLICK_KEEP, and
look at the click_count field in the XmPushButtonCallbackStruct.



	Alastair Gourlay.
Organization: Middle East Technical University - Computer Center
Date: Tuesday, 29 Sep 1992 17:32:46 TUR
From: <C51881@TRMETU.BITNET>
Newsgroups: comp.windows.x.motif
Subject: An Algorithm for DAG is wanted!

Hi,
Is there any public domain software to draw a DAG = Directed Acyclic Graph
or tree in Motif environment? Or can I find an algorithm for DAG placement?
If there is one can you send the FTP adress?
Thank you?
                                    Budak Arpinar
                                 <C51881@TRMETU.BITNET>
Newsgroups: comp.windows.x.motif