HDTenEightyP/NetNews huggingface dataset:
From: shmdgljd@rchland.vnet.ibm.com (Jay Schmidgall)
Newsgroups: comp.windows.x.motif
Subject: Re: Help on size of dialog shells
Date: 15 Sep 92 15:04:51 GMT
Reply-To: jay@vnet.ibm.com
Organization: IBM Rochester, MN
Disclaimer: This posting represents the poster's views, not necessarily those of IBM

This is really becoming a FAQ.

There's a couple ways you can do this.

My favorite is to add a popupCallback to the shell.  Note that the shell
is not the widget returned by the dialog convenience functions but the
XtParent() of that widget.  I usually pass in some sort of client_data
with which I indicate the desired position.

Then, in the callback, I set XmNx and XmNy of the shell according to the
data I passed in, and also set XmNdefaultPosition to False, which tells
Motif to _not_ position this shell.

I use the popupCallback because this allows the shell and its widgets to
be realized, i.e., width and height get set and since I'm usually using
those values in my calculations for position, I need to wait for them to
be set.

You could do your width & height setting here as well.

I think I've also seen discussion of using the XmNgeometry resource to do
the same sort of thing; go through some of the old articles for details of
this technique.

-- 
: jay          jay@vnet.ibm.com    My opinions and ideas, not my employer's.
: shmdgljd@rchland.vnet.ibm.com    (c) Copyright 1992.  All rights reserved.
Newsgroups: comp.windows.x.motif
From: toml@marvin.Solbourne.COM (Tom LaStrange)
Subject: 1.2 drag and drop
Reply-To: toml@solbourne.com
Organization: Solbourne Computer, Inc. 	
Date: Wed, 9 Sep 1992 13:54:31 GMT

Is there a document someplace that describes the low-level protocol
used to implement drag-and-drop in motif 1.2?  I have the programmers
guide but it describes the motif API rather than the properties,
selections, targets, and protocol.

--
Tom LaStrange        toml@Solbourne.COM
From: raistlin@uni-paderborn.de (Markus Koch)
Newsgroups: comp.windows.x.motif
Subject: Solaris and Motif
Date: 15 Sep 92 09:20:08 GMT
Distribution: comp
Organization: Uni Paderborn FB 17 Informatik GERMANY

Hello !

Does anybody have experience with porting Motif-1.1.3 
to a Sparc Station with Solaris ???

Thanx in advance
Markus
			     `""
			    (o o)
************************oOO**(_)**OOo****************************
* \\  /  *							*
*  \\/   *  InterNet : raistlin@uni-paderborn.de		*
*  /\\   *  Computer helfen uns Probleme zu loesen, die wir	*
* /  \\  *  vorher nicht hatten.				*
*****************************************************************
Newsgroups: comp.windows.x.motif
From: jmm@bart.inescn.pt (Jose Moreira)
Subject: Re: Wanted: Disabling Window Decorations
Keywords: DEC, Ada, Motif, X
Organization: CG & CAD - INESC Norte
Date: Tue, 15 Sep 92 10:30:21 GMT

/*-------------------------------------------------*/
In article <3450@creatures.cs.vt.edu>, ramakris@csgrad.cs.vt.edu (S.Ramakrishnan) writes:

|> In article <1992Sep11.102032.6092@animal.inescn.pt> jmm@bart.inescn.pt (Jose Moreira) writes:
|> >In article <1992Sep11.020646.13542@thunder.mcrcim.mcgill.edu>, mouse@thunder.mcrcim.mcgill.edu (der Mouse) writes:
|> 
|>       [ ...to create a popup dialog box without the "decorations... ]
|> 
|>   >|> The only sure way is to make it override-redirect.
|>       (...)
|>   >|> Anything else is WM-dependent; 
|>   >|> 
|>   >|> 					der Mouse
|>   
|>  >You can set the "XmNmwmFunctions" and "XmNmwmDecorations" resources according to what 
|>  >you want the user to be able to. Thus you can remove one(!!!) or more capabilities 
|>  >to the window.  (see MwmUtil.h for all the decorations.)
|> 
|> 
|> I believe dM was trying to suggest a WM independent solution. 
|> And please ! The whole world does NOT use Mwm !!
|> 
|> >					Jose' Moreira.
|> 
|> ---
|> S Ramakrishnan, CS Dept, McBryde Hall, VaTech

/*--------------------------------------------*/

The only case you should create an "override-redirect" window is when you know the window will be a temporary one !!!

Am I right? Or NOT?

				Jose' Moreira.
/*--------------------------------------------*/
Xref: sparky comp.windows.x.motif:6128 comp.windows.x:16523
From: mouse@thunder.mcrcim.mcgill.edu (der Mouse)
Newsgroups: comp.windows.x.motif,comp.windows.x
Subject: Re: Wanted: Disabling Window Decorations
Keywords: DEC, Ada, Motif, X
Date: 11 Sep 92 02:06:46 GMT
Organization: McGill Research Centre for Intelligent Machines

In article <1992Sep8.204843.5424@Rapnet.Sanders.Lockheed.Com>, cupak@rapnet.sanders.lockheed.com (John J Cupak Jr CCP) writes:

> How do I create a popup dialog box without the "decorations"?

> I don't want the user to be able to resize, minimize, maximize, move,
> or use the menu to close the dialog box.

The only sure way is to make it override-redirect.  (Well, that's not
quite *absolutely* sure, but any window manager that meddles with
override-redirect windows is just plain broken.  If you *must* be
*absolutely* sure, grab the server before doing anything else, make it
an override-redirect window, and don't ungrab the server 'till you're
done.)  Anything else is WM-dependent; some window managers make this
easier than others.  You can try making it a transient (see the ICCCM's
description of WM_TRANSIENT_FOR); this will sometimes make the window
manager give it lighter treatment...or perhaps not.  It's up to the WM
and the user.

					der Mouse

			    mouse@larry.mcrcim.mcgill.edu
Newsgroups: comp.windows.x.motif
From: nieh@surya.cadence.com (Ko-Haw Nieh)
Subject: how to create a fiexed size drawingArea under WCL/Table Widget
Reply-To: nieh@cadence.com (Ko-Haw Nieh)
Organization: Cadence Design Systems, San Jose CA.
Date: Sat, 29 Aug 1992 00:52:15 GMT


I am using wcl 2.2 and XmpTable (under Motif) for a long time. Everything is
fine. I am very happy with  wcl. 
Now I need to create a drawingArea with a fixed size  (eg. 400x400) 
under a Table widget. I also need to put couple buttons above and under 
the drawingArea widget. I can resize the table widget to get an approximate
400x400 drawingArea, but I want a precise drawingArea.

My question is

How do I get a precise 400x400 drawingArea under the parent Table Widget ?

Thanks,

--
Ko-Haw Nieh
Cadence Design System Inc.
555 River Oaks Parkway, San Jose, CA. 95134
Tele: 408-944-6821  E-mail: nieh@cadence.com



Newsgroups: comp.windows.x.motif
From: shmdgljd@rchland.vnet.ibm.com (Jay Schmidgall)
Subject: XmGetPostedFromWidget() doesn't work
Date: Mon, 14 Sep 1992 16:38:05 GMT
Reply-To: jay@vnet.ibm.com
Disclaimer: This posting represents the poster's views, not necessarily those of IBM
Organization: IBM Rochester, MN
Keywords: menu, post, from

Has anyone successfully used XmGetPostedFromWidget() ?

It doesn't seem to be working for me.  I can get what I need by including
RowColumnP.h and using the RC_CascadeBtn macro, but it seems to me that
I shouldn't have to do this, and of course, one shouldn't be using the
private headers anyway.

It could be I'm misunderstanding how to use it as well.  The ProgRef isn't
very clear as to which widget you give it, either the RowCol or the button,
but O'Reilly Vol 6 says the RowCol.  If I do RC_CascadeBtn(menu), that works
as well.

I am using XmGetPostedFromWidget in a callback which is activated while the
menu is visible, but it is not the activate callback of the menu button.

AIX 3.2.2, Motif 1.1.3

-- 
: jay          jay@vnet.ibm.com    My opinions and ideas, not my employer's.
: shmdgljd@rchland.vnet.ibm.com    (c) Copyright 1992.  All rights reserved.
From: jwb@gdwest.gd.com (Jack W. Bochsler)
Newsgroups: comp.windows.x.motif
Subject: Motif 1.1.4 with shared libs on Sun
Keywords: Motif shared libraries
Date: 13 Sep 92 16:38:25 GMT
Organization: General Dynamics Corp.


I am looking for info on converting Motif 1.1.4 to shared libs for Sun
4.1.1+ machines.  I have tried archie, and motifFAQ's but cannot seem
to locate any info.  Any  comments or direction would be appreciated.
Thanks in advance.
   ____                     __ 
    / _   _  /_/   /   /   /_/  _   _  /_  __  / _  __  Jack W. Bochsler
 \_/ (_\ (_ / \   /_/_/   /__/ (_) (_ / / (_  / (/_ /   jwb@gdwest.gd.com
 ________________________________________ __) ________  619/592-5489
-- 
   ____                     __ 
    / _   _  /_/   /   /   /_/  _   _  /_  __  / _  __  Jack W. Bochsler
 \_/ (_\ (_ / \   /_/_/   /__/ (_) (_ / / (_  / (/_ /   jwb@gdwest.gd.com
 ________________________________________ __) ________  619/592-5489
Newsgroups: comp.windows.x.motif,comp.windows.x.intrinsics
From: root@atinc.uucp (Operator)
Subject: inheriting motif methods?
Organization: atinc.com
Date: Tue, 15 Sep 1992 12:59:38 GMT

I decided I would like to inherit some of Motif's 3d appearance (shadowing, etc).
Is it proper to use Motif's internal draw routines to do this, or do I inherit
methods from the primitive class?  I use the internal routines (_XmDrawShadow() ),
and works great, but I originally felt that I should not be calling any interfaces
except Xt and X from my widget code (more or less top-down, adhering to the
interface model where Motif in build on top of the Intrinsics.)  Does my concern
really matter?
ronyd@atinc
From: avinash@felix.contex.com (Avinash Chopde)
Newsgroups: comp.windows.x.motif
Subject: WCL: What are "mapping agents" ?
Date: 10 Sep 92 16:28:09 GMT

In the WCL 2.2 man page, it mentions that WcRegisterCallback()
cannot be safely used to pass clientData pointers---it says that
"mapping agents or a similar scheme" should be used instead.

What is a "mapping agent or similar schemes" ?

Thanks for any pointers...
-- 
---------------------------
Avinash Chopde         office : 617 246 1776x5582
avinash@contex.com     (...!uunet!contex!avinash)
Newsgroups: comp.windows.x.motif
From: thielman@infko.uni-koblenz.de
Subject: How to force cursor on coordinates ?
Organization: University of Koblenz, Germany
Date: Fri, 11 Sep 1992 11:11:07 GMT

Hy folks,

I have an application that draws some plots in a drawing area.
Now I want to read the values of the plot, so I have written a function that 
determines the plot and sets an motion event handler.
Now I want that the cursor follows only exactly my plotline during a mouse 
button is pressed.
My question:
  How can I force the cursor to follow my line or how can I set the cursor
  coordinates in my motion event routine, so that the cursor will only be 
  on the lines coordinates ?
  If that is not possible, how can I switch off the cursor, I want to 
  use then a pixmap insteed of the switched off cursor that it follows
  my plot line ?
  
Thanks in advance.


marcus


------------------------------------------------------------------------------
Please use this address if replying via EMail:
		thielman@e-technik.koblenz.fh-rpl.dbp.de
------------------------------------------------------------------------------
  
  
Newsgroups: comp.windows.x.motif
From: houghton+@cs.cmu.edu (Ricky Houghton)
Subject: Couldn't find per Display information
Organization: School of Computer Science, Carnegie Mellon
Date: Thu, 10 Sep 1992 21:02:46 GMT


  I am trying to use popup menus to replace a few buttons that I have.
Only I can't get the popup menus to correctly call the necessary
routines:

 This is the XtCallback for a button, pressing the button works fine
with this code:

   void select_adc_file (Widget w,
                         XtPointer client_data,
                         XmFileSelectionBoxCallbackStruct *cbs)
   {
     XtManageChild (fs_dialog);
    }


 After a selection is made from the popmenu, the necessary procedure
attempted to execute the following code:

      XtManageChild (fs_dialog);

 It returned the following error:
      Error: Couldn't find per display information

 So I tried this:

    select_adc_file (menu_item, NULL,cbs);

  And I got this:
      Segmentation fault (core dumped)


  Can someone offer some words of wisdom?  I don't understand how the
XtManageChild (fs_dialog) made from the callback works fine while my
call to XtManageChild (fs_dialog) outside the callback structure complains
about display information.  fs_dialog is defined in the main routine

  Thanks for any help,

  Ricky

 btw, I'm on an RS6000, AIX 3.2 with whatever version of stuff is
provided with AIX 3.2 (X11R4, but I don't know what version of the
motif libraries).


Newsgroups: comp.windows.x.motif
From: tonyf@ims.com (Antonio Freixas)
Subject: Re: How to keep F10 from activating menubar?
Reply-To: tonyf@ims.com
Organization: Integrated Measurement Systems, Inc.
Date: Thu, 10 Sep 1992 14:44:27 GMT

In article <1992Sep9.145026.13795@cbnewsc.cb.att.com>, dwd@cbnewsc.cb.att.com (David W. Dykstra) writes:
|> In article <1992Sep4.222553.8316@cbnewsc.cb.att.com> I asked how
|> to override the behavior of F10 activating a window's menu bar.
|> ...
|> If anyone can explain the mechanism that's used any better, or show
|> another way to override it, I'd still be interested.
|> 
|> adTHANKSvance,
|> Jon Luers
|> ADDS/NCR/AT&T
|> jhl@qwerty.ih.att.com

-- 

Here's what I used in the last project I worked on.  It is taken
straight from my app-defaults file and it worked (Motif 1.1.3):

*MenuBar*menuAccelerator: Meta <Key>M

					         -- tonyf@ims.com
					       (503) 626-7117 x1349
From: dbl@osf.org
Newsgroups: comp.windows.x.motif
Subject: Re: Memory leak in Motif.
Date: 11 Sep 92 13:47:53 GMT
Distribution: inet
Organization: The Internet


|> I seem to have found a memory leak in Motif (by use of Purify). I wonder if 
|> it a recognised one, or whether I have made a goof in my program.

Yes, it is known. XmTextFieldSetString shouldn't be always attempting to set
ownership on the selection.

This problem existed through Motif 1.1.5; it is gone in Motif 1.2.0, courtesy
of a rewrite of the Text code.

-- 
David B. Lewis  	Temporarily at and certainly not speaking for OSF.
by day: dbl@osf.org			by night: david%craft@uunet.uu.net
From: pd@x.co.uk (Paul Davey)
Newsgroups: comp.windows.x.motif
Subject: Re: Motif Programmer's Reference Manual
Date: 8 Sep 92 18:06:10 GMT
Organization: IXI Ltd.

>>>>> On 5 Sep 92 02:47:47 GMT, littlec1@jaguar.uofs.edu (Chris Little) said:
Chris> Nntp-Posting-Host: jaguar.uofs.edu

Chris> Marshall Brain makes reference to the "Motif Programmer's Reference Manual".
Chris> Is this available via ftp? 

It sholdn't be, it's copyright by the OSF.

Chris> Would it be found at a typical bookstore?

Yes. (Well one with a reasonable selection of computing books.)
--
 Regards,			  pd@x.co.uk           IXI Ltd.
	Paul Davey		  pd@ixi.uucp          62-74 Burleigh St.
				  ...!uunet!ixi!pd     Cambridge,  U.K.
 "These _are_ interesting times"  +44 223 462 131      CB1  1OJ
From: aking@elm.Berkeley.EDU (Andy King)
Newsgroups: comp.windows.x.motif
Subject: Motif on Sun
Date: 4 Sep 92 23:00:13 GMT
Reply-To: aking@trees.az05.bull.com
Organization: Bull HN Inc.

Is it possible/practical to run Motif on a Sun (SPARC)? An associate has
an X11R4/Motif 1.2 application which they would like to port to the Sun.
Should they rewrite it under OpenLook, or just run X and Motif on the Sun?
(The application is about 70,000 lines of C and UIL code).
Can they run Motif and OpenLook at the same time?  Will Motif perform
adequately, and can mwm be used?

Many thanks for any help/suggestions,

Andy King
aking@trees.az05.bull.com
Newsgroups: comp.windows.x.motif
From: donm@hgc.edu (don merusi)
Subject: Motif/X Widget Request
Originator: donm@hgc.edu
Reply-To: donm@hgc.edu (don merusi)
Organization: The Hartford Graduate Center
Distribution: usa
Date: Mon, 14 Sep 1992 13:09:16 GMT

I would appreciate hearing from anyone who might be willing to share
sources of widgets (preferably Motif, but X is fine) that produce
strip charts. We're looking to put something like three of these things
on the screen simultaneously, all displaying a plot moving from say, left to
right (almost like xload, if you;re familiar with that). Thank you.
Newsgroups: comp.windows.x.motif
From: anil@microware.com (Anil Purohit)
Subject: XmForm Widget
Keywords: marginHeight, marginWidth etc
Organization: Microware Systems Corp., Des Moines, Iowa
Date: Mon, 14 Sep 1992 21:37:07 GMT


Hi Motif gurus,
	Here's my problem:

	I have a form-dialog (created using BuilderXcessory). It basically
consisits of a dialogShell and a form as its child. Now I add 3 
pushButtons to it. And then set the marginHeight to 20. Why does
the form refuse to have a marginHeight of 20. 

Is it due to the parent being a dialogShell or am I missing something here?

I'd appreciate any responses.

Thanks,

anil

-- 
--------------------------------------------------------------------
DISCLAIMER:
Opinions expressed are mine and only mine.

Anil C. Purohit  			E-mail:	anil@microware.com
--------------------------------------------------------------------
Newsgroups: comp.windows.x.motif,comp.windows.x
From: usenet@inesc.pt (USENET News System)
Subject: action procedures in a scrolled list widget
Organization: INESC - Inst. Eng. Sistemas e Computadores, LISBOA, PORTUGAL
Date: Mon, 14 Sep 1992 19:07:48 GMT

	I have created a form widget, and 3 children of this widget,
a scrolled window (w/ scroll bars) and 2 buttons. I want the
pressing of the buttons (labeled "Forward" e "Backward") to make
the same as the scroll bars, that is, if I press Forward, the 
selection moves down one line. I have tried using the translations,
but the action procedures which were supposed to provoke the 
desired action (ListNextItem or ListNextElement) are reported 
to be unexistant (at run-time, because the program compiles ok)).

	Can someone give me a hint ?

The program is something like this:

... includes, etc ...

static char forTranslations[] = "<Btn1Down>: ListNextElement()";
...
main(.....
..
XtTranslations trans_table;
...
trans_table = XtParseTranslationTable(forTranslations);
// the previous line provokes the error ! (but the program still
// executes...)
...
}
----
 joao Pedro Martins, Lisboa, Portugal - jota@tutor.UUCP
 
 "Carpe Diem, she muttered, and laughed. We seize the day.	
  Well, sometimes, the day seizes back !" (Psychodrome) 
Organization: Pittsburgh Supercomputing Center, Carnegie Mellon, Pittsburgh, PA
From: dwight@geohub.gcn.uoknor.edu (Dwight D. Moore)
Subject: Text input question
Originator: usenet@midway.ecn.uoknor.edu
Date: Tue, 8 Sep 1992 02:18:58 GMT
Reply-To: dwight@geohub.gcn.uoknor.edu
Organization: Geosciences Computing Network, Univ. of Oklahoma

I am working on applicataion that requires the user to enter a date/time
string in the form of:  "dd/mm/yy hh:mm:ss"
I would like to avoid the user entering the "/" and ":" characters if possible
(minimize the keying errors,) and  hopefully detect an entry error. I have
to extract each field separately (i.e. extract the dd, mm, yy, hh, etc...) 
What is the best way to handle this problem? Has anyone done this?
----------------------------------------------------------------------------
Dwight D. Moore
Geosciences Computing Network
University of Oklahoma

dwight@geohub.gcn.uoknor.edu (129.15.40.10)
These opinions do not necessarily represent the opinions of OU or the GCN.
----------------------------------------------------------------------------
From: meeks@osf.org (W. Scott Meeks)
Newsgroups: comp.windows.x.motif
Subject: Re: XmStringCompare URGENT HELP
Date: 9 Sep 92 13:40:48 GMT
Distribution: inet
Organization: The Internet

>Date: 8 Sep 92 19:19:12 GMT
>From: sun-barr!cs.utexas.edu!zaphod.mps.ohio-state.edu!magnus.acs.ohio-state.edu!usenet.ins.cwru.edu!po.CWRU.Edu!mxa11@ames.arc.nasa.gov  (Madhavi Ahuja)
>
>Hi Netters
>I have two XmStrings and I am using XmStringCompare to compare
>the two. Also my program is linked with a debug malloc routine.
>When I run my program I get a warning "Warning strncmp" whenever
>there is a call to XmStringCompare. Is there any problem with 
>this function that I should be aware of , or the warning is some
>side effect of my debugging malloc and should be ignored

Off the top of my head, I know of no memory problems with strncmp in
XmStrings in 1.2.  There may have been problems in earlier versions.  Can
you tell me what version you are using?  Also, can you give me any more
information about this warning?  Does it occur multiple times for a single
call?  Can you give me a stack trace?

W. Scott Meeks           | We must live with the fact, true throughout recorded
Open Software Foundation | history, that our artifacts are sometimes flawed and
meeks@osf.org            | cause us to die in novel and unexpected ways, and we
(617) 621-7229           | can only do our human best to minimize the problems.
Practice random kindness and senseless acts of beauty.
From: nazgul@alfalfa.com (Kee Hinckley)
Newsgroups: comp.windows.x.motif
Subject: Re: how to display selection dialog without displaying parent window?
Date: 9 Sep 92 17:38:10 GMT
Distribution: inet
Organization: The Internet

> I am trying to write an application that uses several selection dialogs.
> I want the dialog windows to pop up in sequence ie: after the user 
> selects the first thing, the first window goes away and the next 
> dialog appears.
> I DON'T want a parent window at all (or if I must use one, it
> shouldn't appear)..

Just use the one returned from the initial init calls, but never realize it.

nazgul@alfalfa.com
617/646-7703 voice/fax

If Unix is the answer, then we've clearly forgotten the question.