HDTenEightyP/NetNews huggingface dataset:
From: ori@marvin.technion.ac.il (Ori Degani)
Newsgroups: comp.windows.x.motif
Subject: Another Form Question
Keywords: Form
Date: 18 Dec 92 18:01:49 GMT
Organization: Heart of Gold Institute

Hi, 
  I'm trying to build a Widget (| a window) that behaves something like (if you know)
the "Program" in cdplayer from SGI.
  What it is is a FileSelectionBox, a ScolledList, and Two Buttons.
  
             ___      ___
            | F | -> | S |
            | S | <- | L |
             ---      ---

  Where -> and <- are PushButtons.

  What I tried to do is to use XmForm to arrange them like in the Figure:
  
  File: attached  FORM Top, Bottom, Left, 
	and       Right-Arrow-Widget  on the Right.

  List: attached  FORM Top, Bottom, Right, 
	and       Left-Arrow-Widget  on the Left.

  Right-Arrow: attached   FORM Top, 
	      and        List-Widget  on the Right.
			 Left-Arrow   on Bottom  

  Left-Arrow: attached  FORM Bottom,
             __________________        
            |   ^     ^     ^  |
            |  | |-> RA -> | | | 
            |  | |    |    | | |
            |< |F|    |    |L|>|
            |  | |    V    | | |
            |  |_|   LA <- |_| |
            |___V_____V_____V__|


What I got is that only the two buttons show one Very big, the other Very Small. 
The List, and FileSelectionBox didn't appear.

Anyone have:
a)  Any idea why it didn't work?
and/or
b)  A source for something that does work.


If you can, please E-Mail me any responces.

Thanks,
Ori

-- 
   |  ----      Ori Degani
   |  |___      ori@eddie.technion.ac.il   (Ship Computer on the HOG)
   |  |         ori@marvin.technion.ac.il  (Who else) 
   |  ----      s2973229@techst02.technion.ac.il (Ech..)
From: marcs@slc.com (Marc San Soucie)
Newsgroups: comp.windows.x.motif
Subject: Re: XtDestroyWidget
Date: 11 Dec 92 20:06:25 GMT
Article-I.D.: slc.1992Dec11.200625.11816
Distribution: na
Organization: Servio Corp, Beaverton Oregon, US

Chuck Wells (chuck@ccs.northeastern.edu) writes:

> I've been having the same problem.  XtDestroyWidget(), in some instances,
> will sometimes trash memory so there is a core dump shortly after the function
> is called.  The core dump is always deep in some X libraries, in functions
> with such names as: Home(), Resolve(), Popup(), or whatever.  Regardless, I
> can't debug that since its not my code.  To get around the problem, I have
> to unmanage the widget and just let it waste memory.

> Can someone explain what this bug is?  And what is the "bcopy bug", I have
> not heard of it before.  I am running Motif 1.1 on an IBM RS/6000 AIX 3.2.

There is a bug in the Motif 1.1 sources, whereby when a pulldown menu tree 
is destroyed, some of the RowColumn widgets attempt to read data from other 
widget structures that have been freed. On most systems this causes no ill, 
but AIX 3.2 sports new malloc logic that gets very upset at this.

There is a workaround - set the environment variable MALLOCTYPE to 3.1.
This produces 'classic' malloc behavior that won't crash on Motif's faulty
access. See your 'malloc' man page.

    Marc San Soucie
    Servio Corporation
    Beaverton, Oregon
    marcs@slc.com
Newsgroups: comp.windows.x.motif
From: mattb@plato.ds.boeing.com (Matt Baney)
Subject: Positioning Dialogs in MOTIF
Reply-To: mattb@plato.boeing.com (Matt Baney)
Organization: Boeing Defense & Space Group
Date: Fri, 18 Dec 1992 01:46:40 GMT

-- 
|  Matt Baney         | Boeing Defense and Space Division    |
|  -----------------  |   Knowledge Systems Group            |
| "I can't tolerate   | UUCP:        ..!bcstec!plato!mattb |        
| intolerant people!" | Internet:   mattb@plato.boeing.com |
Newsgroups: comp.windows.x.motif
From: tphan@aslslc61.asl.dl.nec.com (Timothy C. Phan)
Subject: New Widget Help.
Organization: NEC America, Inc Irving TX
Distribution: USA
Date: Wed, 16 Dec 1992 21:39:58 GMT

Hi,

	Would someone on this net show me how to create a new widget from scratch
	or from the existed widgets set.

	I'm thinking to create a new widget that has the similar functions as
	a ToggleButton with the following differences:
		1. the shape of the button is an oval instead of the normal
		   SQUARE or DIAMOND.
		2. the TEXT must be within the center of the oval instead of
		   on the side of the button.

		i.e.:
			  .--.
			 /    \
			( TEXT )   instead of   [] TEXT or <> TEXT
			 \    /
			  ~--~
		3. when the new widget is clicked, the foreground and background
		   color will be inversed.

	Please reply by e-mail.  Many THANKS in advance.

-- 
    :=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:==:=:=:=:=:=:=:=:=:=:=:=:
    | Timothy C. Phan                               tphan@asl.dl.nec.com |
    + NEC America, Inc.                             Tel: (214) 518-3437  +
    | Advanced Switching Laboratory, Irving, Tx     Fax: (214) 550-8456  |
Newsgroups: comp.windows.x.motif
Subject: Changing the pointer icon
From: rz64938@mystic.d50.lilly.com (David W. Crumbacher)
Date: 18 Dec 92 10:10:29 EST
Reply-To: rz64938@mystic.d50.lilly.com (David W. Crumbacher)
Distribution: world,local


Is there a way to change the pointer icon, for example to a watch icon
when my application is working?

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 ***           |         |
+--------------------------------------------------------------+---------+
From: meeks@osf.org ("W. Scott Meeks")
Newsgroups: comp.windows.x.motif
Subject: Re: XmSelectionBox memory
Date: 18 Dec 92 22:00:37 GMT
Distribution: inet
Organization: The Internet

>Date: Mon, 14 Dec 92 10:40:09 EST
>From: dave@eagle.smec.Sony.COM (David Jarrin)
>
>Holiday greetings!
>
>I am using a XmSelectionBox widget. Every once in a while I have to clear the
>listing (prior to putting up new strings), for which I use the following:
>
>   XmListDeleteAllItems(XmSelectionBoxGetChild(selection_list, XmDIALOG_LIST));
>
>My questions are: 
>
>   Do I need to FREE the memory being used by the displayed strings ?

No.  XmListDeleteAllItems automatically frees the memory used by the List widget.


>NOTE: I am using XmStringFree() everytime I ADD a new item to the list.

Good for you!

Let me know if you have any further questions.

W. Scott Meeks           
Open Software Foundation 
meeks@osf.org            
(617) 621-7229           
Practice random kindness and senseless acts of beauty.
From: wu@cs.purdue.edu (Po-ting Wu)
Newsgroups: comp.windows.x.motif
Subject: Value Changed Callback for OptionMenu Widget ???
Date: 17 Dec 1992 15:37:09 -0500
Organization: Department of Computer Sciences, Purdue University
Distribution: inet
NNTP-Posting-Host: athena.cs.purdue.edu
Keywords: ValueChanged, Callback, OptionMenu


Is there a "Value Changed Callback" for the OptionMenu or Simple OptionMenu
Widgets? That is, when the option label changed we can apply some action for
this change.

Thanks in advanced!
Po-Ting Wu
wu@cs.purdue.edu
From: hb@woody.csd.uu.se (Henrik B}kman  CSD)
Newsgroups: comp.windows.x.motif
Subject: Problem with motif manpages on SunOS
Date: 14 Dec 1992 10:39:30 GMT
Organization: Uppsala University
Distribution: world
NNTP-Posting-Host: woody.csd.uu.se
Program: Motif 1.2.1
Machine: Sun Sparc
OS: SunOS 4.1.2

-----------------------------
Hello.

I have problem building a whatis-database for the motif manpages
on sunos 4.1.2. I run 'catman -w -M...' but the whatis-database-file
become 0 bytes :-( I don't know what catman does because it is a
sparc-binary and I haven't got the source. The manpages have the
sml-macros inserted into them. Anyone have any ideas???


-- 
----------------------------------------------------------------------
Henrik Bakman           Adress: Box 311          Tel: +46 18 181044
System Manager                  751 05 UPPSALA   Fax: +46 18 521270
Computing Science Dep.          SWEDEN           Email: hb@csd.uu.se
Uppsala University
Newsgroups: comp.windows.x.motif
From: daniel@moonshine.osf.org (Daniel Dardailler)
Subject: Re: Motif for X11R5
Keywords: X11R5 Motif
Organization: Open Software Foundation, Motif Team
Date: Fri, 18 Dec 1992 03:07:35 GMT

 
|> Whats the story on Motif for X11R5? Is it available yet?
 
Yes, it's called 1.2, and 1.2.1.
Motif 1.1.[2-5] should work (while unsupported by us) with R5 
providing some care.
From: mic@moon.lannet.com (Michele Bitton)
Newsgroups: comp.windows.x.motif
Subject: ESC Key and SelectionBox widget
Date: 14 Dec 92 09:50:05 GMT
Organization: Lannet Data Communications ltd., ISRAEL

Using ESC Key on SelectionBox widget activate the third button of the widget.
We tried to catch the ESC key action by translation (<Key>Escape) without
success.  Have someone an idea to neutralize this feature?
Thanks a lot
 Mic
From: argv@zander.z-code.com (Dan Heller)
Newsgroups: comp.windows.x.motif
Subject: Re: Percent of work done popup?
Date: 13 Dec 92 00:22:47 GMT
Reply-To: argv@z-code.z-code.com
Distribution: inet
Organization: The Internet

> On Dec  3,  2:42am, S.Ramakrishnan wrote:
> In article <Byn75v.Cvo@ulowell.ulowell.edu> koverber@cs.ulowell.edu (Kurt Overberg) writes:
> 
> Since people spend $6.50 a month on The X Journal, its unlikely that
> the articles be available anywhere online.

The article isn't online, but the code examples are.  I think you can
ftp them from ftp.uu.net.

(In this particular case, I reposted the example to this newsgroup.)

  --dan

Newsgroups: comp.windows.x.motif
From: cecchinr@gehrig.cs.rpi.edu (Ron Cecchini)
Subject: Question about Button2MotionMask and XtMoveWidget()
Organization: Rensselaer Polytechnic Institute, Troy, NY
Date: Fri, 18 Dec 1992 16:33:29 GMT

Hi all,

THE BACKGROUND

  In part of my application I have a big BulletinBoard with PushButtons on
it.  Actually, the PushButton is really a Form *containing* a PushButton (that
has a computer pixmap on it) and a Label.
  Anyway, I've added an event handler to the PushButton for Button2MotionMask.
The handler simply does an XtMoveWidget().  Your standard (I think) click
and drag stuff.

THE CURRENT IMPLEMENTATION

The coordinates I'm sending to XtMoveWidget are:

(xmotion.x_root + xmotion.x), (xmotion.y_root + xmotion.y)

The reason I do this is because I want the pointer to stay at the same position
within the button (as when it was originally pressed) when I move the pointer.

THE PROBLEM

The "computer" (PushButton) is being "flickered" between 2 positions on the
BulletinBoard.  The pointer *is* staying where I want it to, though (within
the PushButton)...

THE QUESTION

I looked in Volume 4 (pg. 481) and saw that for xmotion.x and xmotion.y their
values may be negative or possibly even greater than the height and width of the
receiving window, WHEN THERE IS AN ACTIVE BUTTON OR POINTER GRAB.

So, I ask: Does trapping Button2MotionMask cause a pointer grab?
I didn't think it would, but it certainly looks like that this is what is
happening.

THE PLEA

If the pointer is being grabbed, HOW do I do what I want?  Because then
the x,y values are garbage.

Thanx,
Ron

Newsgroups: comp.windows.x.motif
From: daniel@moonshine.osf.org (Daniel Dardailler)
Subject: Re: Callback for resizing window?
Organization: Open Software Foundation, Motif Team
Date: Fri, 18 Dec 1992 03:25:55 GMT

 
|> How can I tell when the user grabs a frame decoration and resizes
|> my window?  I can't find a callback anywhere, so I thought there
|> might be an atom that I could use, but I can't find that either.
 
The idea is that you should have to do that because the manager widgets
in your application will know what to do by themselves.
If you need to do something related to graphics, use a DrawingArea,
which has a resizeCallback.
If you really want to do that on any widget, you can also use XtEventHandler
with ConfigureNotify mask.
Newsgroups: comp.windows.x.motif
From: gaitat@gaitat.kgn.ibm.com (Saki)
Subject: 24 bit label Widget
Date: Mon, 14 Dec 92 14:22:09 GMT
Reply-To: gaitat@gaitat.kgn.ibm.com (Saki)
Organization: IBM Kingston NY

I am trying to create a label Widget of depth 24 with a
TrueColor visual. Since a window is part of the Core structure
I create a window with the above info and pass it at creation
time to the label Widget. Then I draw in that window. Dont
ask why I use a label widget to draw into it.  But when the
widget is mapped the picture is not 24-bit.  If instead I map
the window I created and direct all drawing in it, without
associating it to the widget then everything is fine.
What am I missing?


Thanks in advance

   __    ()  ,
  /  )   /`-'|       _/_     _/_
 /--/   /   / __.  o /  __.  /  __.  _  _
/  ( o /__-<_(_/|_<_<__(_/|_<__/  |_</_/_)_
                                 (|
                                   gaitat@kgnvmy.vnet.ibm.com
These statements and/or opinions are not necessarily those of
                                                          IBM

\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\
Newsgroups: comp.windows.x.motif
From: drand@spinner.osf.org (Douglas S. Rand)
Subject: Re: Setting Color on OptionMenu Button -- Impossible?
Organization: Open Software Foundation
Date: 18 Dec 92 10:45:31

In article <1992Dec17.200759.6766@u.washington.edu> mattf@cac.washington.edu (Matthew Freedman) writes:

   ....
   its parent, which in this case is a rowcolumn. If I set the color of
   that rowcolumn so that the button inherits it, I get a strange looking
   colored border around the button (I.e. the portion of the rowcolumn
   not covered by the button).

   Is there any way to do this? I realize that it would be fairly easy to
   go into the source of XmCreateOptionMenu() and use a widget instead of
   a gadget, but I need to distribute the source to my application, which
   obviously can not include Motif source.

Actually,  createOptionMenu doesn't create the children,  RowColumn
does this itself.  For good or ill it would require source changes.
So you cannot do this.  Perhaps if gadgets one day support their
own color,  but not now.

   Another possibility would be to change that stupid little rectangle on
   the button to something more obvious, like a down-arrow, which might
   cue the user to the fact that there is something under it. But again,
   this would appear to require source modification.

As above,  you cannot change this either.  The visuals are choosen
to have some compatibility with CUA, Windows and PM.


--
Douglas S. Rand <drand@osf.org>		OSF/Motif Dev.
Snail:         11 Cambridge Center,  Cambridge,  MA  02142
Disclaimer:    I don't know if OSF agrees with me... let's vote on it.
Amateur Radio: KC1KJ
Newsgroups: comp.windows.x.motif
From: dave@grunge.auspost.com.au (Dave Cole)
Subject: Hyper & xinfo
Organization: Australia Post
Date: Thu, 17 Dec 1992 06:17:42 GMT

Has anyone out there tried to make the Hyper widget (from hman) process info
files like xinfo?

If you have, you would make me very happy if you posted me a copy of what you
have done.  If you have almost done it, mail it anyway.

Thanks in advance - Dave
Xref: sparky comp.windows.x.motif:8093 comp.windows.x.intrinsics:673
From: buzz@bear.com (Buzz Moschetti)
Newsgroups: comp.windows.x.motif,comp.windows.x.intrinsics
Subject: More intelligent main event loops
Date: 17 Dec 92 16:26:06 GMT
Reply-To: buzz@bear.com (Buzz Moschetti)
Organization: Bear, Stearns & Co. - FAST

As we all know, XtAppMainLoop() is not sensitive to destruction of the top
level widget, forcing you to code your own loop if it is necessary to exit
the app from main().

XView's xv_main_loop() *is* sensitive to the fact that if there are no
more events registered, then there is no point in waiting for 'em, so
it gracefully returns.

I wish to continue destroying the top level widget as the mechanism that
informs the app it is time to shutdown, but similar schemes would also
be acceptable.

As always, we wish to avoid creating a global flag and checking it in the
XtAppNextEvent()/XtDispatchEvent() loop, not the least of the reasons
being that lack of timer and file descriptor (XtAddInput()) sensitivity is
also a precondition for exiting the loop

Clues, anyone?  Elegant solutions?  Where's that Xt call I can't find 
that would permit me to do

	while(XtAppStillHasRegisteredEvents(app_context)) {
		XtAppNextEvent();
		XtDispatchEvent();
	}
Organization: Penn State University
Date: Sat, 19 Dec 1992 02:11:39 EST
From: <SML108@psuvm.psu.edu>
Newsgroups: comp.windows.x.motif
Subject: Drawing Area Event handling control


Hi, I have installed a new tranlation table in a drawing area widget to
report <BtnMotion>.  It works well, except that the actual graphics
drawn in the drawing area are a bit intensive so a bunch of <BtnMotion>
events pile up during the time I redraw the screen in response to
a <BtnMotion>.  Is there any way to tell motif not to record events
like this during the redraw?

Scott
Newsgroups: comp.windows.x.motif
From: pjp@sloth.mlb.semi.harris.com (Pat J. Pinchera)
Subject: How do I tell Motif where to position my TopLevelShell?
Followup-To: comp.windows.x.motif
Date: Fri, 18 Dec 1992 18:44:31 GMT
Organization: Interface & Control Systems, Inc., Melbourne FL

When I run the following code to create a new topLevelShell, the
location (position) of the window is done by Motif - it ignores my XmNx
and XmNy arguments completely.  Does anyone know how to specifically
place a topLevelShell?  I've checked the FAQ and about a year's worth of
past postings, no luck.  Also note that XmNdefaultPosition doesn't
affect it. Thanks.

-------------------------------
ac = 0;
XtSetArg (al[ac], XmNx, sx);  ac++;
XtSetArg (al[ac], XmNy, sy);  ac++;
XtSetArg (al[ac], XmNwidth, 50);  ac++;
XtSetArg (al[ac], XmNheight, 100);  ac++;
top = XtAppCreateShell("x", "x", applicationShellWidgetClass,
				XtDisplay(w), al, ac);
XtRealizeWidget(top);
-------------------------------


Pat
From: ccav27@ccsun.strath.ac.uk ("Y.Chen")
Newsgroups: comp.windows.x.motif
Subject: Software Engineer in 3D Computer Graphics
Date: 10 Dec 92 11:59:55 GMT
Organization: University of Strathclyde


I am posting this for my friend who currently has
no access to this network yet. Please respond to the
name and address in the ad. I know this is not the EXACTLY
RIGHT group to post, but my friend just hopes to hear some Motif 
experts to respond, so do accept my apology!

				Charles
*********************************************************

		Software Engineer


Midland Valley is a small Glasgow based software company 
specialising in geological modelling for the oil industry. 
We are seeking an additional engineer to join a team working 
on development of a new 3D project which is funded by the EC
and AMOCO over three years. The ideal candidate will have 
experience of C++ and Motif programming  and be recently 
qualified   with a strong interest in 3D Graphics programming
on Silicon Graphics workstations and Sun Sparcstations.

Please Contact Dr. Alan Gibbs on 041-332-2681, or send a
full CV with details of any relevant work or project 
experience to 

	Dr. Alan Gibbs 
	Midland Valley Exploration Ltd.
	14 Park Circus 
	Glasgow G3 6AX
	Scotland




**********************************************************
Newsgroups: uk.jobs
Distribution: world
Followup-To: 
From: ccav27@ccsun.strath.ac.uk ("Y.Chen")
Organization: University of Strathclyde
Subject: Software Engineer in 3D Computer Graphics
Keywords: 


I am posting this for my friend who currently has

no access to this network yet. Please respond to the
name and address in the ad.

				Charles
*********************************************************

		Software Engineer


Midland Valley is a small Glasgow based software company 
specialising in geological modelling for the oil industry. 
We are seeking an additional engineer to join a team working 
on development of a new 3D project which is funded by the EC
and AMOCO over three years. The ideal candidate will have 
experience of C++ and Motif programming  and be recently 
qualified   with a strong interest in 3D Graphics programming
on Silicon Graphics workstations and Sun Sparcstations.

Please Contact Dr. Alan Gibbs on 041-332-2681, or send a
full CV with details of any relevant work or project 
experience to 

	Dr. Alan Gibbs 
	Midland Valley Exploration Ltd.
	14 Park Circus 
	Glasgow G3 6AX
	Scotland




**********************************************************
Newsgroups: uk.jobs
Distribution: world
Followup-To: 
From: ccav27@ccsun.strath.ac.uk ("Y.Chen")
Organization: University of Strathclyde
Subject: Software Engineer in 3D Computer Graphics
Keywords: 


I am posting this for my friend who currently has

no access to this network yet. Please respond to the
name and address in the ad.

				Charles
*********************************************************

		Software Engineer


Midland Valley is a small Glasgow based software company 
specialising in geological modelling for the oil industry. 
We are seeking an additional engineer to join a team working 
on development of a new 3D project which is funded by the EC
and AMOCO over three years. The ideal candidate will have 
experience of C++ and Motif programming  and be recently 
qualified   with a strong interest in 3D Graphics programming
on Silicon Graphics workstations and Sun Sparcstations.

Please Contact Dr. Alan Gibbs on 041-332-2681, or send a
full CV with details of any relevant work or project 
experience to 

	Dr. Alan Gibbs 
	Midland Valley Exploration Ltd.
	14 Park Circus 
	Glasgow G3 6AX
	Scotland




**********************************************************


Keywords:
From: ron@topaz.bds.com (Ron Natalie)
Newsgroups: comp.windows.x.motif
Subject: Re: Problem with 24 bit depth.
Date: 17 Dec 1992 18:52:50 GMT
Organization: BDS Systems
Distribution: world
NNTP-Posting-Host: topaz.bds.com
Keywords: Motif 24

It's very hard (probably impossible) to change visual on Motif widgets
themselves.  The way we get around it is to create a drawing area (at
the default depth) and then make a child of that window of the depth
that we wanted the image display to be.

-Ron
Newsgroups: comp.windows.x.motif
From: dbrillha@dave.mis.semi.harris.com (Dave Brillhart)
Subject: Should I be using UIL???
Date: Tue, 15 Dec 1992 22:39:53 GMT
X-Newsreader: TIN [version 1.1 PL6]
Reply-To: dbrillha@dave.mis.semi.harris.com
Organization: Harris Semiconductor
Keywords: Motif / UIL
Summary: Motif / UIL

What is your opinion about the use of UIL to make the job of writing
Motif applications easier, more maintainable, &/or more portable?

Thanks,


--
 ___________________________________________________________________________
/-------------------------------------------------------------------------/|
|  1392 131 1315 429 832 1410         |     Dave Brillhart (407)729-5430  ||
|  RSA: D=379 N=1517                  |     Harris Semiconductor          ||
|--------------------------------------     Mail Stop 62A-024             ||
|  hsscam::dbrillhart                 |     P.O. Box 883                  ||
|  dbrillha@dave.mis.semi.harris.com  |     Melbourne, FL  32902-0883     ||
---------------------------------------------------------------------------/