HDTenEightyP/NetNews huggingface dataset:
Newsgroups: comp.windows.x.motif
Subject: PushButton behavior
From: rz64938@mystic.d50.lilly.com (David W. Crumbacher)
Date: 18 Dec 92 10:09:01 EST
Reply-To: rz64938@mystic.d50.lilly.com (David W. Crumbacher)
Distribution: world,local


I would like to have my pushbuttons behave the same way pushbuttons do
in dialogs (e.g. fileselectionbox) when the keyboardFocusPolicy is set
to true.  In dialogs, when pushbuttons take focus they show as default.
But for the pushbuttons I create, I can only make them show a border
around the pushbutton (by setting highlightOnEnter to true).

Is there a solution for this?

Thanks!

+--------------------------------------------------------------+---------+
| David W. Crumbacher            |  e-mail: dwc@lilly.com      |         |
| Scientific Information Systems |  Phone : (317) 276-5345     |    o    |
| Lilly Research Laboratories    |  FAX   : (317) 276-4127     |   (     |
| Eli Lilly and Company          |  These are my own opinions, |   [\.   |
| Indianapolis, Indiana 46285    |  not my employer's.         |         |
|            *** Please respond to dwc@lilly.com ***           |         |
+--------------------------------------------------------------+---------+
Newsgroups: comp.windows.x.motif
From: epc1@quads.uchicago.edu (Merlin)
Subject: Re: Printing pixmap in a DrawingArea widget
Reply-To: epc1@midway.uchicago.edu
Organization: University of Chicago Computing Organizations
Date: Mon, 14 Dec 1992 18:20:05 GMT

In article <Bz976B.9M7@netnews.jhuapl.edu> ygor@aplexus.jhuapl.edu (Daniel E. White  (F2C)) writes:
>In article <1992Dec11.184058.27385@midway.uchicago.edu>, epc1@quads.uchicago.edu (Merlin) writes:
>|> 
>|> I have a pixmap which I would like to print out to a laser printer.
>
>  There was a utility called XtoPS on a previously-worked-on system (I do
>not know where to get it) or you might try xgrabsc - I DO know this is
>available at any archive site handling comp.source.*
>
>  Xgrabsc will capture any window or your whole root display and has options
>to output in PostScript (save the file or pipe it thru lpr).  There's also
>an option to capture the window containing the cursor when the Control key
>is pressed -- this lets you capture windows with pull-down menus showing.
>

Yes, I am now aware of such utilities.  Unfortunately, the image which I 
converted to PS took over ten minutes to print.  Are there any options
to speed this printing up?  A faster printer, PS2, accelerator cards, another
graphics cards I can use?

Newsgroups: comp.windows.x.motif
From: chrisl@joplin.wri.com (Chris LaReau)
Subject: Motif 1.2 widgets with non-Motif parents
Summary: They dump core
Organization: Wolfram Research, Inc.
Date: Fri, 11 Dec 1992 22:52:14 GMT


I would think this might be a FAQ, but I haven't seen it addressed so
I will ask...

I'm having a problem with Motif 1.2, and would be eternally grateful for
any help getting around it, though I rather suspect I'm hosed... :-(

I've developed some spiffy widgets subclassed off constraint that I have 
been using very nicely as parents of children from Xaw, OLIT, and Motif
widget sets. That is, until Motif 1.2 came along.

My programs now dump core in _XmUnitTypeDefault while creating the menubar;
it seems from the Motif source that the menubar RowColumn does an
_XmIsFastSubclass macro on its parent (not a Motif widget), and dies
horribly. If I am correct, Motif 1.2 widgets seem to assume that their
parents are in fact Motif widgets as well and blithely dive into their
data structures to do things that could certainly be done by correct Xt
code (as was the case in 1.1, I assume, since 1.1 works), but with some
speed penalty.

My questions are:

  1) Is my interpretation of what is going on here correct?

  2) Is there anything I can do to get around this _besides_ subclassing
     my widgets off XmManager? I don't want to do that; I don't want
     the added complexity, I don't want the maintenance headache, I don't
     want the extra overhead (I have plenty without Motif adding its
     two cents), and I certainly don't want to do something for Motif
     that I don't have to do for Athena or OLIT.

     I realize I could fix the Motif 1.2 source and link statically. I
     don't want to do that either, because it's a big lose, especially
     on systems where vendor shared libraries actually work.

No offense, but if this kind of stuff keeps up I may start liking OLIT...


Email preferred; I will summarise to the net if interest is sufficient.

Thanks,

Chris

-----------------------
Chris LaReau  chrisl@wri.com  (working for, not speaking for) ...
Wolfram Research Inc. 100 Trade Centre Dr. Champaign IL 61820  (217) 398-0700
"Would it save you a lot of time if I just gave up and went mad now?" - A. Dent
From: nawrocki@gradient.cis.upenn.edu (Don "Paulbear" Nawrocki)
Newsgroups: comp.windows.x.motif
Subject: More Link Errors using the Xmu Library
Date: 18 Dec 92 20:21:59 GMT
Organization: University of Pennsylvania

Howdy, it's me again :-0


Thanks to all the people who gave me advice on my  link errors using the Motif
libraries.  Here's a basic summation of the results.

The problem is that the Xmu library doesn't share an object with the other
libraries.  So to alleviate this problem, I've gotten a plethora of responses, 
ranging from "dont use the -g option when compiling" to "use -Bstatic and
-Bdynamic when linking the libraries".  I've tried them all, and the one that
gives me at least some response is the -Bstatic -lXmu -Bdynamic one...here's a
sample make:

% make 
gcc -g pkr.o pkrcall.o shuffle.o init_stuff.o guicall.o Draw.o extras.o  guistuf
f.o pkrstuff.o  -o pkr -lXm -lXt -lX11 -Bstatic -lXmu -Bdynamic -lXext -lm
ld: Undefined symbol
   _get_wmShellWidgetClass
   _get_applicationShellWidgetClass
gcc: file path prefix `dynamic' never used
gcc: file path prefix `static' never used
*** Error code 1
make: Fatal error: Command failed for target `pkr'

Now I am ignorant of what the -Bstatic and -Bdynamic flags actually do, and I
put this fix in sort of blindly...If someone could tell me whazzup with this
I'd be highly appreciative.  

Also, as you can see I am still getting my link errors...so any other
suggestions on this subject, or elaborations upon your last responses would be
VERY VERY appreciated.  I been beating my head over this one for a long time
now and it's REALLY irritating :-).

later,
  Don
nawrocki@eniac.seas.upenn.edu
Chairman of the Dining Philosophers
CSE '93
Doer of good deeds....
Newsgroups: comp.windows.x.motif
From: efroyman@lynx.dac.northeastern.edu (Ella Froyman)
Subject: MOTIF
Keywords: motif
Organization: Northeastern University
Date: Sat, 19 Dec 1992 14:50:37 GMT


Hi netters;

Does anybody know where I can get good MOTIF programs from an
archive to run on my SPARC 2 and dec5000. I am new to motif and I
want to learn.Thanks
Ella

Newsgroups: comp.windows.x.motif
From: daniel@moonshine.osf.org (Daniel Dardailler)
Subject: Re: DrawingAreaWidget Resize Callback Questions
Organization: Open Software Foundation, Motif Team
Date: Fri, 18 Dec 1992 15:26:01 GMT

|> The drawingArea uses static bit gravity
|> and I would like to detect whether the resize resulted from either
|> the upper or left sides being dragged in which case I must update some
|> information in the application data structures concerning the origin
|> of what is being displayed.

DA uses NorthWest bit_gravity.

You can change that on a per instance basis by using 
XChangeWindowAttributes on the XtWindow(da).
From: pickerig@eee.bham.ac.uk (Guy Pickering)
Newsgroups: comp.windows.x.motif
Subject: Re: making motif exe not eating the disk (and other stuffs)
Date: 18 Dec 1992 15:48:28 GMT
Organization: The University of Birmingham, England
Distribution: inet
NNTP-Posting-Host: nanda_devi.eee.bham.ac.uk
X-Newsreader: TIN [version 1.1 PL6]

What hardware and O/S are you using?  Unix allows you to "strip"
your code, which will reduce disk usage, but to RAM. And Sun's
allow shared libraries - reducing RAM usage and disk usage.
 
Guy.
 
PS. It is netiquette to keep .Sigs to under 4 lines. I have no
netiquette and therefore use 5.
--
+--------------------------------+-----------------------------------------+
| Guy Pickering                  | School of Electronic & Electrical Eng,  |
| E-MAIL: G.PICKERING@uk.ac.bham | University of Birmingham,               |
| Tel: (021) 414 4340            | Edgbaston, Birmingham. B15 2TT.         |
+--------------------------------+-----------------------------------------+


Newsgroups: comp.windows.x.motif
From: adam@dadhb1.ti.com (Adam Hudd)
Subject: Re: How to simulate a ToggleButton with a PushButton
Organization: Texas Instruments, Inc., Houston, TX
Date: Tue, 15 Dec 1992 21:02:34 GMT

Ron (cecchinr@gehrig.cs.rpi.edu) writes:

   Ron> Hi all,

   Ron> I've seen this asked here before, and I thought it was in the FAQ,
   Ron> but lo and behold - it is not.  And of course, I didn't save the
   Ron> information because I didn't need it until now...

   Ron> So: How can I make a PushButton stay pushed in when it is pressed?

   Ron> Thanx, Ron

   Ron> p.s. It would be nice if there were a ToggleButton resource that
   Ron> basically allowed you to do this; i.e. get rid of the indicator and
   Ron> draw the ToggleButton as if it were a PushButton

How about:

    toggleButton = XtCreateWidget("toggleButton", xmToggleButtonWidgetClass,
				  pulldownMenu, args, argcnt);
--
Cheers,
Adam Hudd               adam@dadhb1.ti.com             __o
Texas Instruments Inc,                                -\<,
Houston, TX                                     .....O / O
From: dyoung@media.mit.edu (David Young)
Newsgroups: comp.windows.x.motif
Subject: Q: ScrolledWidndow with just vertical scrolling
Date: 18 Dec 92 23:13:13 GMT
Article-I.D.: news.1992Dec18.231313.12927
Organization: MIT Media Laboratory



I'm trying to create a scrolledWindow which has a rowColumn widget for what
it's viewing.  I'd like the rowColumn to be constrained so that its right
and left attachments are the scrolled window --- ie. I'd like the scrolled
window only to have a vertical scrollBar.  This way if the user resizes the
window's width, the things in my rowColumn will get wider (not display
more).

Here's an attempt at an illustration of what I'm trying to do...

     +--------------------------+
     | scrolledWindow       +-+ |
     | +------------------+ |s| |
     | | rowColumn        | |c| |
     | |                  | |r| |
     | | +--------------+ | |o| |
     | | | my widget    | | |l| |
     | | |              | | |l| |
     | | +--------------+ | |B| |
     | | +--------------+ | |a| |
     | | | my widget    | | |r| |
     | | |              | | | | |
     | | +--------------+ | | | |
     | | ...              | | | |
     | +------------------+ +-+ |
     +--------------------------+

The effect I'm after is similar to that used in the Widget Property Editors
in HP's Interface Architect program.

Any suggestions would be appreciated.

david,
Newsgroups: comp.windows.x.motif
From: dugal@wotan.austin.ibm.com (Doug Gray)
Subject: Strange behavior from .mwmrc 
Date: Fri, 18 Dec 1992 23:12:17 GMT
Reply-To: dugal@vnet.ibm.com
Organization: Advanced Workstation Division, IBM Corp, Austin
Keywords: xlock, f.exec, key, bindings

When I set up my .mwmrc file, I set up both a menu item and a key binding to
run the screen locking program, xlock, like so:

Menu RootMenu
{
 ...
    "Lock Screen"       f.exec xlock 
 ...
}

Keys DefaultKeyBindings
{
 ...
    Meta Ctrl Shift<Key>space   root|icon|window        f.exec xlock
 ...
}

   This ran perfectly fine, until just a few minutes ago.  To test something,
I made a small shell script, which just ran xlock, and then, after completion
of xlock, just ran a program which put up a window with some text in it.  Then,
I changed both lines above so that they exec'd that script instead.

    The menu performed as anticipated, but the key binding had a premature
exit from xlock - the screen blanked momentarily, and then refreshed putting
up the text window.  I then returned the keybinding to its original state
in the .mwmrc file.  Xlock still exits prematurely (from the keybinding, not
the menu!)

    Anyone have any guesses why this could be?  How about hints on tracing
what xlock is doing when it first starts up?

   Thanks,
	Doug



-- 
Doug Gray               Phone: (512) 838-2366
IBM AWSD  Zip 9260      T/L: 678-2366
11400 Burnet Rd.        Internet: dugal@austin.ibm.com
Austin, Tx 78750        vnet: dugal@ausvm6
Newsgroups: comp.windows.x.motif
From: jarnold@spot.wrc.xerox.com (jeff arnold esc1-318)
Subject: Resource file ... 
Organization: Xerox
Date: Fri, 11 Dec 1992 19:33:59 GMT


Hi,
  Is it possible to specify a character string (e.g. XmNlabelString for
a push button) in a resource file using MOTIF 1.1.X in different languages 
(i.e. French, German, ...)? If not, what's a good way of doing it?
NLS catalog, maybe? Does MOTIF 1.2 support it?

Thanks,

Henry 

P.S. Please reply to henry_wong.lax1b@xerox.com
From: desai@blsouth.bss.com (Hiren Desai)
Newsgroups: comp.windows.x.motif
Subject: FTP Question !!!
Date: 17 Dec 92 18:27:37 GMT
Organization: BellSouth Telecommunications - Science and Technology

Can anyone do me a big favor ?

I need some X MOTIF programs that can be obtained by doing
an anonymous FTP from export.lcs.mit.edu. The programs are
located in the file /contrib/matering.motif.tar.Z

Place the file in your work directory and do the following :

uncompress mastering.motif.tar.Z
tar -xvf mastering.motif.tar


And please send me the files !!!!

Thanks
Hiren
desai@bss.com
Newsgroups: comp.windows.x.motif
From: wws@iscp.bellcore.com (Wayne Scott)
Subject: WCL on DEC Alpha machine
Organization: Bellcore
Distribution: usa
Date: Thu, 17 Dec 92 19:54:36 GMT
Keywords: can't get past imake problems

Does anyone out there have WCL running on the DEC Alpha OSF/1 platform?
I can't get past a makeFile problem.  Here's what happens:

----------------------------------------------------------------------------------
simon> make World

Building Release 2.4 of Wcl - the Widget Creation Library

###############################################
# I trust you first set parameters in Wc.tmpl #
###############################################

Thu Dec 17 14:49:18 EST 1992

make  Makefile
+ rm -f Makefile.bak 
+ mv Makefile Makefile.bak 
imake -DUseInstalled -I/usr/lib/X11/config  -DTOPDIR=. -DCURDIR=.
make  Makefiles
making Makefiles in ./Wc...
rm -f Wc/Makefile.bak
+ mv Wc/Makefile Wc/Makefile.bak 
cd Wc; imake -DUseInstalled -I/usr/lib/X11/config  -DTOPDIR=../. -DCURDIR=./Wc; 
 make  Makefiles
Make: Makefile: Must be a separator on line 521.  Stop.
*** Exit 1
Stop.
*** Exit 1
Stop.
*** Exit 1
Stop.
----------------------------------------------------------------------------------


I'm stumped.  Any suggestions on how to fix this problem?

Thank you,
Wayne Scott
Newsgroups: comp.windows.x.motif
From: daniel@moonshine.osf.org (Daniel Dardailler)
Subject: Re: Fonts in Multiline-Editor
Keywords: fonts, font-editor, special chars
Organization: Open Software Foundation, Motif Team
Distribution: comp
Date: Fri, 18 Dec 1992 03:20:43 GMT

 
|> I would like to have different fonts in a text widget (multiline).
|> Is this possible? 

No in the current text widget.

If not, I would nearly as happy about a method
|> to include special characters into an existing font (or replace
|> some characters in a font with my own chars).
 
Can't be done on the client side using X requests.
You need to get your font in bdf, to get a bdf editor, and to
rework your font.
From: bobhays@spss.com (Bob Hays)
Newsgroups: comp.windows.x.motif
Subject: Re: How to simulate a ToggleButton with a PushButton
Date: 16 Dec 92 14:05:48 GMT
Organization: SPSS, Inc.

In article <ADAM.92Dec15150234@node_48dc0.dadhb1.ti.com>, adam@dadhb1.ti.com (Adam Hudd) writes:
> Ron (cecchinr@gehrig.cs.rpi.edu) writes:
> 
>    Ron> Hi all,
> 
>    Ron> I've seen this asked here before, and I thought it was in the FAQ,
>    Ron> but lo and behold - it is not.  And of course, I didn't save the
>    Ron> information because I didn't need it until now...
> 
>    Ron> So: How can I make a PushButton stay pushed in when it is pressed?
> 
>    Ron> Thanx, Ron
> 
>    Ron> p.s. It would be nice if there were a ToggleButton resource that
>    Ron> basically allowed you to do this; i.e. get rid of the indicator and
>    Ron> draw the ToggleButton as if it were a PushButton
> 
> How about:
> 
>     toggleButton = XtCreateWidget("toggleButton", xmToggleButtonWidgetClass,
> 				  pulldownMenu, args, argcnt);

Cute but doesn't answer the question - I hope the following will
help....

You can replace the indicator pixmap for the toggle button using the
resources XmNselectPixmap and XmNselectInsensitivePixmap.  You may be
able to change the type of the indicator with XmNindicatorType.  Make
sure to turn the label off (XmNlabelString to (XmString) NULL).

You will, with some toying, get the behavior you want (we do it here
for radio buttons with graphic images).

Have fun! - Bob

-- 
===============================================================================
The opinions expressed above are those of Bob Hays and not SPSS, Inc.
 bobhays@spss.com  Phone: (312) 329-3529 | "I'm hovering like a fly, waiting
                   Fax:   (312) 329-3657 |  for a windshield on a freeway" -PG
Xref: sparky comp.windows.x.motif:8131 comp.windows.x:20416
From: daver@cbnewsj.cb.att.com (dave.robertson)
Newsgroups: comp.windows.x.motif
Subject: mwm f.send_msg function
Keywords: Atoms, XChangeProperty
Date: 16 Dec 92 15:39:14 GMT
Organization: AT&T

I am having problems trying to use the send_msg function in mwm.
I need to add an application specific capability to each window
manager menu, and I believe that this can be achieved in this manner.

Firstly in my mwm configuration file I define the menu as follows : 

Menu DefaultWindowMenu MwmWindowMenu
{
    MyFunc              f.send_msg 123
    Restore             f.normalize
    Minimize            f.minimize
    Maximize            f.maximize
    Lower               f.lower
    no-label            f.separator
    Close               f.kill
}

where MyFunc is my application specific capability.
On startup, I do the following:

Atom	wm_motif_messages;

wm_motif_messages = XInternAtom(dpy, "_MOTIF_WM_MESSAGES", FALSE);

Then, when windows are created:

static	int	helpmsg = 123;

XChangeProperty(dpy, win, wm_motif_messages, XA_INTEGER, 32,
                PropModeReplace, (unsigned char *) &helpmsg, 1);

I then check for the appropriate ClientMessage event while the application
is running.

My problem is that MyFunc is always dimmed. What am I doing wrong?
I suspect that my XChangeProperty() call may be at fault and I have
tried a few variations on the above. If I run xprop on one of my windows
then it appears that the message number 123 has been correctly registered
with the _MOTIF_WM_MESSAGES property.

One further point, I am not using the Motif toolkit but instead a 
proprietary Xlib based class library. The principles ought to be the
same though.

If anyone has done this before and has code segments that they don't
mind sharing, I'd really appreciate it.

Dave Robertson
Consultant				att!mtnms!dar
AT&T Paradyne
Middletown, NJ				(908) 957 3925
From: toml@marvin.boulder.ParcPlace.COM (Tom LaStrange)
Newsgroups: comp.windows.x.motif
Subject: Re: Drag-n-Drop and tvtwm ?
Keywords: DND,tvtwm
Date: 11 Dec 92 20:22:16 GMT
Reply-To: toml@boulder.ParcPlace.COM
Organization: ParcPlace Boulder

In article <1992Dec8.201034.18178@sol.ctr.columbia.edu>, arm@milp.jsc.nasa.gov (Andrew R. Mager) writes:
|> Hi,
|> 	Why can't I get Motif 1.2 Drag-n-Drop to work between clients
|> 	on the same X11R5 server using tvtwm?  The DND works between clients
|> 	using mwm and twm!

I'd bet money it's beacause of the virtual root window that covers the actual
root.

--
Tom LaStrange        toml@boulder.ParcPlace.COM
Newsgroups: comp.windows.x.motif
From: kaleb@jpl-devvax.jpl.nasa.gov (Kaleb Keithley)
Subject: Re: making motif exe not eating the disk (and other stuffs)
Keywords: motif, UIL, graphical user interface, shared libs
Organization: Jet Propulsion Laboratory (NASA)
Date: Fri, 18 Dec 1992 17:06:03 GMT

In article aymeric@huygens.UUCP (Aymeric POULAIN MAUBANT ) writes:
>
>1/ My exe is 1.9 Mo on the disk. I think it's a lot. We didn't have 
>	so heavy exes with Xt only. Can anybody tell me why ? I noticed 
>	the simple "hello world" motif program is more than 1Mo !!!!!
>2/ Does 1.9 Mo on the disk mean 1.9 on RAM when it is executed, or more 
>	(or less) ?
>3/ What are the ways to reduce this amount on disk (on RAM as well) ?
>	(The motif code is eating disk, not the C routines I add. Maybe 
>	I should use special motif routines ?)
>4/ I know that Shared libraries in motif 1.2. aren't supported. But perhaps 
>	there are some ways to do it ?

You don't say who's hardware you're using.  

There are vendors who offer shared library versions of Motif if your 
hardware supports it.  A good system admin can build shared library 
versions of Motif from source too.

The size of the program file on disk is not indicative of resident or 
virtual size of the process.  Use 'ps' with the appropriate command line
arguments to display this information.

>and sthg completely different :
>
>5/ I wrote some new widgets (let's say fooP.h foo.h and foo.c). I know 
>	how to include them in a classical motif (non-uil) code. I came 
>	across some doc about including them in UIL files but it doesn't work.
>	Can anybody give me a simple, clear method ?

Someone else needs to answer this; I don't use uil.  I do know it's 
possible, and I know that in 1.2.x, OSF's wml (Widget Meta Language) tool 
should simplify the process of extending uil to include additional widgets.

-- 

Kaleb Keithley                               kaleb@jpl-devvax.jpl.nasa.gov
From: gwj@sbctri.sbc.com (Gregg W. Jensen)
Subject: xdtm ?
Organization: Southwestern Bell Technology Resources, St.Louis, MO
Date: Wed, 16 Dec 92 23:01:54 GMT


Is there ANY work going on for a new release of xdtm? The current version I 
have is 2.5, is there a newer one.  All attempts to the mail addresses provided
with the app bounced for me.

Gregg Jensen
they're my opinions, I paid for 'em.
From: matsj@Delfi.CMD.UU.SE (Mats Johnson)
Newsgroups: comp.windows.x
Subject: Re: What is the format of Pixmaps
Date: 15 Dec 92 14:12:35
Organization: CMD - Center for human computer studies, Uppsala University
Reply-To: Mats.Johnson@CMD.UU.SE
NNTP-Posting-Host: delfi.cmd.uu.se
In-reply-to: cnbs63@ccsun.strath.ac.uk's message of 10 Dec 92 11:42:39 GMT


I think you should look into the Image family of routines in Xlib. The
transfer of the graphic image could be done with XPutImage. Rather
than worrying about the format of a Pixmap (which on the client side
is only an ID, the data is in the server), you should look at
XCreateImage and the format of an XImage.
--
Mats Johnson, CMD, Uppsala University, Laegerhyddsvaegen 18, S-752 37 UPPSALA
Mats.Johnson@CMD.UU.SE
Newsgroups: comp.windows.x
From: reissell@klaava.Helsinki.FI (Juhani Reissell)
Subject: Can't find Library.tmpl?
Organization: University of Helsinki
Date: Sun, 20 Dec 1992 11:48:48 GMT

I'm in the process of building xview3 on an A/UX system. In the
Imakefiles of the various libraries there is a dependancy on
<Library.tmpl> which can't be found on my system. I'd like to have any
pointers on where to get this template. I gather it can be found in the
X source tree but I simply don't have enough disk space to hold the
entire X source. Thanks,

jussi