HDTenEightyP/NetNews huggingface dataset:
From: richm@netcom.com (Richard Mauri)
Newsgroups: comp.windows.x.motif
Subject: Re: Help with MrmFetchWidget() and XtDestroy()
Date: 28 Dec 92 15:47:06 GMT
Organization: Netcom Online Communications Services (408-241-9760 login: guest)

In article <4949@ceylon.gte.com> mbr0@roger.gte.com (Mark Rosenthal) writes:
>
>I have an application in which there can be an arbitrary number of dialog
>shells created using the same template.  I am using UIL and creating the
>shell and its children with MrmFetchWidget().  When the user clicks on the
>close button in the dialog, the close callback calls XtDestroy() on the dialog.
>The next time the user asks for a dialog from the same template and
>MrmFetchWidget() is called the code crashes with a segmentation violation.
>
>Does anybody know of anything to watch out for when using MrmFetchWidget()
>and XtDestroy()?
>
>	mbr0@gte.com

Be sure that the returned Widget data structure is initialized to NULL
before calling MrmFetchWidget(). It states this in the documentation.
This one gets everyone if they don't watch out!

richm@netcom.com

-- 
Richard Mauri               // Not ready to face the winter.
SW Eng / X hack             // Pray for wind.
Trimble Navigation Ltd.     // Pay the bills.
richm@netcom.com	    // Hope nothing breaks
From: C51881@TRMETU.BITNET (Budak Arpinar)
Newsgroups: comp.windows.x.motif
Subject: Subscribe me.
Date: 29 Dec 92 01:40:56 GMT
Distribution: inet
Organization: The Internet
X-Unparsable-Date: Wed, 23 Dec 92 22:04:53 TUR

Please subscribe me.

Thanks.
                          ___    *     ___
*========================////\* ~~~ *=/\\\\============================*
: Budak Arpinar               :/~~~\: E-mail : C51881@TRMETU.BITNET    :
: TUBITAK Software Research & ::0 0:: Adress : TUBITAK Yazilim Merkezi :
: Development Center          :: l ::          ODTU Bilgisayar Muh.    :
: Ankara, TURKEY              :\ Q /:          Ankara, TURKEY          :
:                             : /.\ : Voice  : 90 4 2101298            :
*=============================*-----*==================================*
Newsgroups: comp.windows.x.motif,comp.windows.x
From: brian@ilinx.wimsey.bc.ca (Brian J. Murrell")
Subject: text widget with font control
Keywords: text widget font
Organization: InterLinx Support Services Inc.
Date: Sat, 2 Jan 93 00:06:08 GMT

I am trying to create a usable editor using the Motif Text widget,
when I hit a wall.  The Motif Text widget doesn't allow for multi-
font!

So I am looing for any kind of a text widget which will allow one
to use multiple fonts.

I want this editor to allow things bold, italics, font change (all
dependent on there being an appropriate font of course).

If there is code for such an editor out there I would appreciate
hearing about it.

thanx
brian
-- 
Brian J. Murrell                                      brian@ilinx.wimsey.bc.ca
InterLinx Support Services, Inc.                      uunet!van-bc!ilinx!brian
North Vancouver, B.C.                                             604 984 2545
        Platform and Brand Independent UNIX Support - R3.2 - R4 - BSD
From: rob@searchtech.com (Rob Andes)
Newsgroups: comp.windows.x.motif
Subject: Table Widget Woes...
Keywords: Table Widget, core dump
Date: 22 Dec 92 16:38:35 GMT
Organization: Search Technology, Inc.


Hello all:

	I've recently come across some useful Motif widgets, and am
currently undertaking their compilation for eventual use in an 
application.  One widget of particular interest is the _Table Widget_ of
Harrison and Nazgul (sorry to others that contributed but aren't 
mentioned).
	
	The problem (for me) is getting the widget to run, even using
the example programs.  I compile ok (using the updates for Motif 1.1),
but both of the examples core dump, with nothing of use in the dbx
scan.  Seems to crash during the XtOpenDisplay (yeah, I know how early
that is, *sigh*) call.
	
	I'd really like to use this code, since it appears elegant and 
*very* flexible.  *ANY* help on this matter would be appreciated.  
Advice on alternatives would be fine too.

Replies via news or email are welcome.


Waiting and wondering,

rob


-- 
-----------------------------------------------------
 ////====  Rob Andes (rob@searchtech.com)           |
||||	         Search Technology, Inc.	    |
=========  4725 Peachtree Corners Circle, #200	    |
Newsgroups: comp.windows.x.motif
From: davidd@ctsx.celtech.com
Subject: Motif verision of OLVWM?
Date: Tue, 22 Dec 1992 20:24:09 GMT
Organization: Cellular Technical Services, Seattle

Hello, I was wondering if there was a Motif version of Sun's Open
Look Virtual Window Manager (OLVWM)? If anyone could point me to
a ftp site, I would appreciate it. Thanks.

David

-- 
============================================================================

David Doll                       #include <std disclaimer>
Cellular Technical Services   
Newsgroups: comp.windows.x.motif
From: dbrooks@osf.org (David Brooks)
Subject: Re: Anyone noticing problems with XmVaSEPARATOR in Motif1.2.1
Keywords: XmVaSEPARATOR menus
Organization: Open Software Foundation
Date: Wed, 23 Dec 1992 15:24:13 GMT

moses@ahpcrc.umn.edu (Matthew E. Moses) writes:
| 
| Has anyone noticed any problems with XmVaSEPARATOR in Motif1.2.1?
| I create a menu using XmVaCreateSimpleMenuBar and the use 
| XmVaCreateSimplePulldownMenu to create the individual menus.  What I
| am seeing is if I put in a seperator between items every menu item
| after the seperator reverts to "button_2" if it was the third item 
| or whatever the items respective number is.

We know about this: bug report number CR5271.
-- 
David Brooks					dbrooks@osf.org
Open Software Foundation			uunet!osf.org!dbrooks
Shine out, fair sun, with all your heat!  Black winter freezes to his seat...
The boneless fish close quaking lies...the stars in icicles arise!
From: jones@chpc.utexas.edu (Willaim L. Jones)
Newsgroups: comp.windows.x.motif
Subject: sizeof(CARD16) != 2
Date: 22 Dec 92 18:41:15 GMT
Organization: The University of Texas System - CHPC


Motif Release 1.2 seem to work out of the box under UNICOS except for a 
minor glitch where it assumes sizeof(CARD16) == 2, which in not true on a 
cray, in the drag and drop code.

Has anyone else found other problems?   After fixing the above assumption
I have had no other problems with motif 1.2 under UNICOS.   

Does  anyone else know of any other problems lurking in motif 1.2 on cray's.

Bill Jones
jones@chpc.utexas.edu
Newsgroups: comp.windows.x.motif
From: stern@nsinic.gsfc.nasa.gov (Pi R squared, Nooo! Pie are round. Cornbread are square)
Subject: Problem with windows on Sun
News-Software: VAX/VMS VNEWS 1.41    
Organization: NASA Science Internet Network Information Center
Date: Thu, 31 Dec 1992 17:54:00 GMT

I have a SUN SPARCstation IPC running the latest version of openwindows. This
latest version has caused me unusual grief. Most of my applications are running
remote decwindows and displaying back to the sun. Periodically, at no set 
interval, everything but the mouse pointer freezes. ie I can't pull down any
menus, open or close windows, enter any commands etc. What I can do is move
the pointer around and in fact, as the pointer is moved over a corner of any 
window, it indeed turns into a concentric-circle icon (yet I can't resize 
anything with the buttons frozen).  As my console window is not always visible,
I'm not sure if the following symptom always occurs however I've often noticed
a console message saying something to the affect "olwm  ... an incorrect 
bitmap..."   Any suggestions would really be appreciated as SUN's service
line is about as useful as a wet match.


Dave Stern

-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
         NASA Science Internet  Routing Center Manager            Hughes STX
                         301-286-6079
 DECnet-   NSINIC::STERN                        Code 933   Bldg 28 Rm W291
 INTERNET- STERN@NSINIC.GSFC.NASA.GOV           Goddard Space Flight Center
 BITnet-   STERN@DFTBIT                         Greenbelt, MD 20771
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
From: ks@BAT.GSFC.NASA.GOV (ASTS Ken Sall)
Newsgroups: comp.windows.x.motif
Subject: Ruler using Scale: Correction
Date: 23 Dec 92 17:00:39 GMT
Distribution: inet
Organization: The Internet

Oops, I recently posted a partially incorrect response to Mark S. Bubien: 

 Mark>> I am looking for a way to put rulers into a Motif window.

 Me> Use XmScale widget with numerous children XmLabel widgets, one set for
 Me> the tick marks (label: "|") and one set for the numerics.
   ... rest deleted ...

I should have said:

   Use XmScale widget with numerous children XmLabel widgets, with each label
   containing both the numeric and a tick mark (label: "|").

My labels are of the form:

ScaleTest*slider*label1.labelString:        0\n|
ScaleTest*slider*label2.labelString:        25\n|
ScaleTest*slider*label3.labelString:        50\n|
ScaleTest*slider*label4.labelString:        75\n|
ScaleTest*slider*label5.labelString:        100\n|

------------------------------------------------------------------------
Ken Sall
ksall@cen.com                        ks@bat.gsfc.nasa.gov

Century Computing, Inc.              TAE Plus project
Laurel, MD 20707                     under contract to:
(301) 953-3330                       NASA/Goddard Space Flight Center
------------------------------------------------------------------------
From: dlc@gasco.uucp (Ms. Grinch)
Newsgroups: comp.windows.x.motif
Subject: "tab" resource for XmText?
Date: 24 Dec 92 01:56:57 GMT
Article-I.D.: gasco.1992Dec24.015657.14553
Reply-To: dlc@gasco.com (Darci L. Chapman)
Organization: Northwest Natural Gas, Portland, OR

Is there a resource that allows the user to set the number of 
spaces/characters for the tab?

>>-Darci->
Newsgroups: comp.windows.x.motif,comp.windows.x
From: meeks@osf.org ("W. Scott Meeks")
Newsgroups: comp.windows.x.motif
Subject: Re: PushButtons in rowColumn
Date: 31 Dec 92 16:29:39 GMT
Distribution: inet
Organization: The Internet

>Date: 30 Dec 92 16:39:57 GMT
>From: cahuja@ames.arc.nasa.gov (Chander Ahuja)
>
>is there any way to tell the rowColumn (work_area) not to resize its child (a 
>push button in this case) upto the width of all the other children...
>
>...and now that we can let it keep its reg. old size, can we have it centered ?
>
>-chander
>PS>> ya..i could put it in a form and center it as posted in other messages
>but is that the only way....lots of wasted widgets that way...

Depending on the exact behavior you want, you want to set the XmNpacking
resource to either XmPACK_TIGHT or XmPACK_NONE.  Read the manpage
description of this resource for more details. 

By having it centered, do you mean have the button centered within the
RowColumn or the text of the button centered within the button?  If the
former, then you might want to try PACK_TIGHT to see if it give the effect
you want.  If the latter, then you want to set the XmNalignment resource of
the Label to XmALIGNMENT_CENTER.  (Alternatively, you could try setting the
XmNentryAlignment resource, but this is probably not for the squeamish.)

W. Scott Meeks           
Open Software Foundation 
meeks@osf.org            
(617) 621-7229           
Practice random kindness and senseless acts of beauty.
From: fkmunker@cip.informatik.uni-erlangen.de (Frank Munkert)
Newsgroups: comp.windows.x.motif
Subject: Re: Label Widget HELP!!
Date: Wed, 30 Dec 1992 09:10:20 GMT
Organization: CSD., University of Erlangen
Distribution: inet
NNTP-Posting-Host: faui00a.informatik.uni-erlangen.de

dsriniv@uoft02.utoledo.edu writes:

>I am learning X-Windows (Motif) and trying to change the 
>resources of a label widget for a simple sample program
>which just displays the label in a window. I am trying
>to center the label string (which is of 3 lines) where
>each line should be in the center of the window. But it is
>getting left justified. I also don't know where to keep
>the resource file for my label widget i.e which directory.

Try this:


1. Compile and link the following program:

  #include <Xm/Label.h>

  Widget appshell, the_label;

  void main (argc, argv)
  int argc;
  char *argv[];
  {
    appshell = XtInitialize (argv[0], "LabelTest", NULL, 0, &argc, argv);
    the_label = XmCreateLabel (appshell, "TheLabel", NULL, 0);
    XtManageChild (the_label);
    XtRealizeWidget (appshell);
    XtMainLoop ();
    exit (0);
  }


2. Create a resource file with the name "LabelTest" and the following content:

  *TheLabel.labelString: First line\nThe Second line\n3rd line

and put the resource file in a directory, say $HOME/test/app-defaults.

3. Now assign the name of this directory + "/%N" to the environment variable
   XUSERFILESEARCHPATH:

  setenv XUSERFILESEARCHPATH ${HOME}/test/app-defaults/%N

4. Run the program; it should display the Label widget with three centered
lines.

Greetings,
  Frank (fkmunker@cip.informatik.uni-erlangen.de)

---
Frank Munkert            |  Uni Erlangen
Zum Froschbruecklein 5   |  
8500 Nuernberg 10        |  <fkmunker@cip.informatik.uni-erlangen.de>
Germany                  |  or: <fmu@pki-nbg.philips.de>
Newsgroups: comp.windows.x.motif
From: koverber@cs.ulowell.edu (Kurt Overberg)
Subject: Where can I get the FAQ?
Originator: koverber@bigmax.ulowell.edu
Keywords: FAQ
Organization: University of Massachusetts at Lowell Computer Science
Date: Thu, 31 Dec 1992 18:54:05 GMT


Hi, 

	The subject says it all.  Where can I get the Motif FAQ?


					peace out.

					   kurt
-- 
Kurt Overberg            | I honestly doubt you care about my opinions ;^)      
U of Mass, Lowell        | "Poke a double-decker on a Llama taboot,       
koverber@cs.ulowell.edu  |  Llama taboot, taboot!"      -Phish
Newsgroups: comp.windows.x.motif
From: steve_biederman@mentorg.com (Steve Biederman)
Subject:  Help with resizing window under mwm
Date: Mon, 28 Dec 1992 23:37:29 GMT
Organization: mentor
Keywords: 
Followup-To: 

    I'm a newcomer to X and to mwm.  I want to programmatically resize my
window.  If I turn off mwm and simply run under X itself, a call to
XMoveResizeWindow does the trick.  Under mwm, I'm first calling XsetNormalHints
and then XMoveResizeWindow.  No dice.  What am I doing wrong?  My code fragment
(slightly abstracted) follows.


    /* Desired x, y, width, and height are already known */

    display = XOpenDisplay(displayname);
    screen = DefaultScreen(display); root = RootWindow(display, screen);

    /* get which window the pointer is in */
    XQueryPointer(display, root, &dummywin, &this_win, &rootx, &rooty, 
                                                        &ptrx, &ptry, &modifs);

    /* tell the window manager where we'd like this to go */
    size_hints.x = x;         size_hints.y = y; 
    size_hints.width = width; size_hints.height = height;
    size_hints.flags = USPosition | USSize;
    XSetNormalHints(display, this_win, &size_hints);

    /* attempt to put it there */
    XMoveResizeWindow(display, this_win, x, y, width, height);

    XFlush(display);

Newsgroups: comp.windows.x.motif
From: jng@aslslc71.asl.dl.nec.com (James Ng)
Subject: access C++ non-static member data in callback functions
Organization: NEC America, Inc. Irving, Texas
Date: Mon, 21 Dec 1992 14:40:49 GMT


We use X11/R4 and Motif 1.1 for our GUI development. Our C++ compiler is
Object Center C++ (formerly called Saber C++). When we try to use a
non-static member function as a callback, sometimes nonstatic data members
get corrupted inside the callback function. Static data members seem to
maintain their integrity. Does anyone have similar experience or even
solution to solve the above problem? Any suggestion will be appreciated.
Suggestion can be mailed to jng@asl.dl.nec.com or posted if you prefer.

James Ng

Newsgroups: comp.windows.x.motif
From: lmh@world.std.com (Larry M Headlund)
Subject: Re: prob with making xrolodex
Followup-To: comp.windows.x.motif
Summary: A setup that works for me 
Keywords: HP motif xrolodex 
Organization: The World Public Access UNIX, Brookline, MA
Distribution: usa
Date: Mon, 28 Dec 1992 22:43:49 GMT

This was sent as a mail message but I got a bounce:

In article <1992Dec28.160400.15755@ctsx.celtech.com> davidd@ctsx.celtech.com
writes:
>machine: HP 9000/837 HP-UX 8.02, standard cc compiler, Motif 1.1,
>GNU make
>
>Hello, I pulled off xrolodex from the contrib dir on export and
>was trying to make it this morning and I got the following: 
>
>ctshp> gmake all
>cc +O3 +OS -Wp,-H200000    -I/usr/include/X11R4/
>-I/usr/include/Motif1.1 -DSYSV-DWIDGET_ACCESS -DMANUAL_CLIP
>-c xrolo.c

...
        I had no problems compiling xrolodex on HP 9000/817 same
release of HP-UX using HP make and HP K&R cc with the following setup:

CFLAGS = -I/usr/include/X11R4 -I/usr/include/Motif1.1 \
	 -I/usr/include/Motif1.1/Xm \
         -D_NO_PROTO -DWIDGET_ACCESS -DMANUAL_CLIP

LDFLAGS = -L/usr/lib/X11R4 -L/usr/lib/Motif1.1

-- 
Larry Headlund  lmh@world.std.com    Eikonal Systems (617) 482-3345
From: vijay@GATEWAY.IITB.ERNET.IN (Vijay Talati)
Newsgroups: comp.windows.x.motif
Subject: Re: How to get grabs(with xwd) from Popuped menus ??
Date: 1 Jan 93 04:51:45 GMT
Distribution: inet
Organization: The Internet

             <1992Dec04.124312.17974@infko.uucp>


>

>Hy folks,
Hi,

>I want do get some grabs of my motif program to put it in the documentation.
>I have problems getting grabs from PopUped menus, since they are closed when
>another window gets the focus.

I did the following when i wanted to print the popup menus screen.
I have openwin 2.0 , which has a snapshot program. (this should be availble
on other platforms also.. i am not sure). Snapshot allows you to
set a timer .. it takes the snap of the specified window/region after
that many seconds.
So what i did was, opened a window and fitted my program display into that 
window such that only top bar of that window is seen. Then i started snapshot
with time =16 secs and selected that window. Then i selected the button which 
created the pop_menu. After 16 secs the snap was taken, and lo.. here you
have the pop-menu in a snapshot.
Nxt step was simply viewing that snapshot and grabbing it through xwd.
[ Using simple xwd will also give you the top bar of the window.. i used
xdump (from Uni. of Wisconsin.. ftp.cs.uwm.edu:/soft-eng). It allows
to cut a region and print.

>My question: How can I get grabs (with xwd or s.th like that) from my Menu
>system?
I hope your question is answered!


[ Marcus, i had sent this mail to thielman@sun.koblenz.fh-rpl.de, but it
 bounced back. Hence this.]

Vijay
-----------------------------------------------------------------------
Vijay Talati                        Email: vijay@iitb.ernet.in
ERNet Lab.                          (X.400):
Computer Centre                      s=Talati ou=gateway o=iitb prmd=ernet c=in
Indian Institute of Technology		Voice: (022)-5783177
Powai, Bombay - 400076                     (022)-5782545 ext. 2791/2799
Newsgroups: comp.windows.x.motif
From: daniel@juliet.osf.org (Daniel Dardailler)
Subject: Re: Any ideas for a Thermometer widget
Organization: Open Software Foundation, Motif Team
Date: Wed, 23 Dec 1992 14:27:34 GMT

 
|> I want to create a thermometer widget.  I have the following ideas:
|> 

There will be such a widget in the next major release of libXm (probably
a new resource on Scale).

|> 1) use the drawing area widget
that is, Xlib. you can do anything you like in a DA.

|> 2) use the scroll bar widget - if I can turnoff the directional arrows
if you don't plan on providing any input, this is probably the best
solution. work on the sliderSize.

|> 3) maybe use the scale widget
nope without modifying the widget.
From: avinash@felix.contex.com (Avinash Chopde)
Newsgroups: comp.windows.x.motif
Subject: Style Guidlines (was Re: Is it possible to get at FSB PushButtons?)
Summary: yup, do understand the implications.
Date: 31 Dec 92 18:30:04 GMT

In article <DRAND.92Dec31112147@spinner.osf.org>, drand@spinner.osf.org (Douglas S. Rand) writes:
> In article <3243@contex.contex.com> avinash@felix.contex.com (Avinash Chopde) writes:
>    ...
> I will point out that you are using the button normally
> used for drag and drop.  You should consider the implications
> of this for your users.  One of the reasons to use a particular
> widget set is the expectation that users will know the semantics
> of the controls.  The above would,  for example,  prevent 
> dragging from a label in the FileSelectionBox.

Oh yes, I do realize the implications of changing the functionality of
button 2, but for the application we sell, we had to decide, who's to be
king-our many years old style that our customers are used to, or the new
Motif style guide.
Anyway, our application is more in the VAR realm, so customers buy
machines just to run our package. In that case, it is much better to
allow a non-standard style to be used (since interaction with other
applications is nil), than to have two conflicting standards imposed on
users.

This is just to take care of current/previous customers.
For new customers, we do intend to follow the Motif style guide (and learn
to co-exist with other applications---which brings up the issue of
colormaps---but that is another story!)
-- 
---------------------------
Avinash Chopde         office : 617 246 1776x5582
avinash@contex.com     (...!uunet!contex!avinash)
From: dyoung@media.mit.edu (David Young)
Newsgroups: comp.windows.x.motif
Subject: Q: Customizing Shadow & Border sizes
Date: 29 Dec 92 23:15:44 GMT
Organization: MIT Media Laboratory


I'd like to modify the look of my X/Motif environment so that the borders
on my windows are thinner and their shadow thickness is less.  Does anyone
know what resource variables I can twiddle with?

I'm using HP-VUE with its vuewm window manager - which also has mwm
resources...

thanks,

david,
Newsgroups: comp.windows.x.motif
From: garath@impulse.engin.umich.edu (Scott Grosch)
Subject: Panner Widget
Date: Wed, 30 Dec 92 03:00:21 EST
Organization: University of Michigan (CAEN)
Reply-To: garath@engin.umich.edu
Originator: garath@impulse.engin.umich.edu


Does anyone have the Xaw panner widget for Motif?


-- 
Scott Grosch                              Internet: garath@engin.umich.edu
Programmer                                        Bitnet: user7a4b@umichum
Computer Aided Engineering Network                  University of Michigan
Newsgroups: comp.windows.x.motif
From: daniel@juliet.osf.org (Daniel Dardailler)
Subject: Re: Centering button in form ?
Organization: Open Software Foundation, Motif Team
Date: Wed, 23 Dec 1992 14:22:15 GMT

 
|>  -------------------------------
|> |       ----------------        |
|> |      |                |       |
|> |       --XmPushButton--        |
|>  ------------------------XmForm-
 

Form does not support center attachment as a resource.
You'll need to do some programming.

You have to wait for after the Form first layout to be sure everybody
got its natural size (the button and the form here).
(unless you want to fix the sizes of your widgets, which is very bad).

Calling a routine after XtRealize and before the main loop is fine.

In this routine, do something like:

        n = 0;
	XtSetArg (args[n], XmNwidth, &width);  n++;
	XtGetValues (push, args, n);

	n = 0;
	XtSetArg (args[n], XmNleftAttachment, XmATTACH_POSITION);  n++;
	XtSetArg (args[n], XmNleftPosition, 50);  n++;
	XtSetArg (args[n], XmNleftOffset, -((int)width)/2);  n++;
	XtSetValues (push, args, n);