HDTenEightyP/NetNews huggingface dataset:
From: dlc@gasco.uucp (Ms. Grinch)
Newsgroups: comp.windows.x.motif
Subject: Re: Problem Exiting from a Dialog?
Date: 24 Dec 92 01:52:32 GMT
Article-I.D.: gasco.1992Dec24.015232.14486
Reply-To: dlc@gasco.com (Darci L. Chapman)
Organization: Northwest Natural Gas, Portland, OR

In article <1992Dec23.152526.12003@osf.org>, dbrooks@osf.org (David Brooks) writes:
> mattb@plato.ds.boeing.com (Matt Baney) writes:
> | I am using the examples from the Douglas Adams book to 
> | create an application using MOTIF and C++.
> 
> The Hitchhiker's Guide To The Galaxy has a Motif interface?  Cool.

No, no, I'm sure he's talking about _The Hitchhiker's Guide to Motif_!

(Hi, Matt! :-)

>>-Darci->
--
__ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __
\/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ 
Darci L. Chapman                                  X Window Systems Consultant
Northwest Natural Gas         Portland, Oregon                  dlc@gasco.com 
       "The OCA hates you too"                "Choose Life: Come Out!"
    (I do not speak for the Gas Company, and They do not speak for Me)
Newsgroups: comp.windows.x.motif
From: wmark@wb3ffv.ampr.org (Mark Winsor)
Subject: Font Sizes
Organization: Advanced Business Solutions, Inc.
Date: Fri, 1 Jan 1993 21:21:31 GMT

Is there any way to retrieve the size in pixels of the width of a
character for a given font? I'm writing a terminal/curses style
emulation using the bulletin board widget and need to know the logical
size of a column. 

Example: my font is 5 pixels wide per character, therefore I need to 
make the BB widget 400 plus border size pixels to work with 80 logical
columns.


Thanks,
-- 
                                __                
email: wmark@wb3ffv.ampr.org   '  )--,--,          /       Mark S. Winsor 
                                 /  /  / __.  __  /__,     Systems Analyst
#include <stddisclaimer.h>      /  /  (_(_/|_/ (_/ \_      ProVAR, Inc.

Newsgroups: comp.windows.x.motif
From: vprasad@cs.ulowell.edu (V G Prasad)
Subject: Creation of Ximages/pixmaps
Organization: University of Massachusetts at Lowell Computer Science
Date: Fri, 1 Jan 1993 22:18:11 GMT

Hi,
I want to know if there is any method to create images/pixmaps
which has a depth other the default depth.
i.e. if a workstation supports more than 1 display , when we 
create a image it will be of the default depth.But I want
to create an image/pixmap other than the default depth.
I would appreciate some help.
Thanks.
vgp

-- 
V G Prasad 
University of Massachusetts.Lowell
vprasad@cs.ulowell.edu
Newsgroups: comp.windows.x.motif
From: rogerr@netcom.com (roger reynolds)
Subject: Re: Xm100TH_FONT_UNITS as XmNunitType problems, SOLUTION
Organization: Netcom - Online Communication Services (408 241-9760 guest)
Date: Sun, 3 Jan 1993 20:16:06 GMT


The simple, (yet incredibly well hidded) answer to this problem 
was supplied to me by daniel@osf.org, and I'll post it here cuz
I got many responses from others who also could not make it work:

>FONT_UNITS don't use the XmNfontList but the XmNfont resource,
>check that first.

That was it.  set the "font" resource on the topLevelShell and it
worked instantly as expected.

>Also, in 1.1, the unit type converter had to be installed by
>the application explicitly (that has changed that in 1.2), using
>XtAddConverter and a provided converter (XmCvtStringToUnitType).

I had figured that out, but it is true....

Thanks Daniel,
rogerr@netcom.com
From: ramakris@csgrad.cs.vt.edu (S.Ramakrishnan)
Newsgroups: comp.windows.x.motif
Subject: Invoking XmSelectionBox default button action using XtCallActionProc(...)
Date: 26 Dec 92 06:09:57 GMT
Distribution: na
Organization: VPI&SU Computer Science Department, Blacksburg, VA


   [ arch/mach = sun4/sparc, OS: 4.1.3, Motif: 1.1 (upon X11R4) ]

I have a XmSelectionBox in which all except the command area children have been 
unmanaged. The body comprises a an array of labels representing command names.
When the user highlights a label and hits return, ok callback is invoked.

However, I want to invoke the same action when a double click is detected 
on a label (method 1):

  <double click> --> XtCallActionProc(dialogue, "KActivate", e, NULL, 0);

where "dialog" is the selection box. However this call yields the runtime error:

 "No such action registered in widget 'dialogue'"

Alternatively (method 2), I invoke the "ArmAndActivate" action on the default button 
as follows:

 <double click> --> XtCallActionProc(ok_button, "ArmAndActivate", e, NULL, 0);

This call fails also.

However, "KActivate" is listed as a valid action in the documentation of
XmSelectionBox (invoking the "activateCallback" of the default button). 
Why this error ?

Further, why may not I treat the widget

   XmSelectionBoxGetChild(dialog, XmDIALOG_OK_BUTTON)

as any other XmPushButton. That is, why can't I invoke the action proc
corresponding to the action "ArmAndActivate" of the ok button of the dialogue ?
   

Ps: Method 2 works fine if I create the dialog from scratch using bulletin board
    at the base.

---
S Ramakrishnan, CS Dept, McBryde Hall, VaTech
From: cahuja@twerp.ease.arco.com (Chander Ahuja)
Newsgroups: comp.windows.x.motif
Subject: PushButtons in rowColumn
Date: 30 Dec 92 16:39:57 GMT
Reply-To: cahuja@twerp.ease.arco.com (Chander Ahuja)
Distribution: world
Organization: Atlantic Richfield Company, Dallas , TX


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...
From: ramakris@csgrad.cs.vt.edu (S.Ramakrishnan)
Newsgroups: comp.windows.x.motif
Subject: Re: Label Widget HELP!!
Date: 31 Dec 92 04:16:29 GMT
Distribution: usa
Organization: VPI&SU Computer Science Department, Blacksburg, VA

In article <1992Dec29.165336.719@uoft02.utoledo.edu> 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.
  

  >Vasu
  >E-Mail: sdurgava@spider.occ.uc.edu

Mail to you bounces. Pl specify an alternative email address.

---
S Ramakrishnan, CS Dept, McBryde Hall, VaTech
Newsgroups: comp.windows.x.motif,80,articles
From: johanb@joyce.esat.kuleuven.ac.be (Johan Buelens)
Subject: controlling an option menu from within the program
Summary: controlling an option menu from within the program: how to ?
Keywords: option menu
Organization: K.U.Leuven, Belgium
Date: Wed, 30 Dec 1992 20:57:16 GMT

hi,

i need to reset the choice displayed by an option menu from within the
program: when the user presses button x, option menu y should revert
to the default (or another) selection automagically (this to protect the
user against absurd or potentially dangerous combinations of options).
i tried to use XtVaSetValues(option_menu,XmNmenuHistory,0,NULL) which
executes without complaints but also without visible results; the program
then crashes the next time the option menu is activated.

the kludge i use now is to destroy the option menu and recreate it,
but this is obviously horrible style, and causes a lot of flicker when
the menu undergoes such a shock therapy...

				--------------

by the way, i'd also like to know if there's a way to change the right
arrow selection widget generated by XmVaCreateSimpleOptionMenu to something
else (e.g. an horizontal menu button as used by the Motif window manager).

				--------------

i suggest you reply by mail, i'll summarize to comp.windows.x.motif.
thanks a lot,

johan -b

---------------------------
Johan H. BUELENS
K.U.Leuven / ESAT / K. Mercierlaan 94 / B - 3001  Heverlee / Belgie
phone  : (32) (16) 20 09 31 ext. 1076
fax    : (32) (16) 22 18 55
e-mail : johanb@esat.kuleuven.ac.be  (preferred)
         buelens@imec.be, fheaa00@blekul11.bitnet
Newsgroups: comp.windows.x.motif
From: daniel@juliet.osf.org (Daniel Dardailler)
Subject: Re: Problem with C++ keywords in motif include files
Organization: Open Software Foundation, Motif Team
Distribution: inet
Date: Mon, 28 Dec 1992 15:06:57 GMT

 
|> I'm trying to compile a C++ program using Motif 1.1.3 on SunOS 4.1.1, and
|> I'm running into compilation errors due to the use of C++ keywords such
|> as "class" and "new" in the include files.
|> 	In file X11/ShellP.h, the struct ApplicationShellPart contains a
|> char * called "class" which is a C++ keyword.  In file Xm/Traversal.h,
|> the struct _XmFocusMovedCallbackStruct contains a Widget called "new".

Traversal.h is not a public header file.
It is not mentioned in any documention, but unfortunately, it has been
used in the past in our own demos, and people have often been cut&pasting
from those.
Remove it from your application and you'll be fine.

For the story, the R5 version of X11/ShellP.h now compiles in C++ (as do
all *.h files in Xt and Xlib)
Newsgroups: comp.windows.x.motif
From: daniel@juliet.osf.org (Daniel Dardailler)
Subject: Re: ScrollBar foreground color
Organization: Open Software Foundation, Motif Team
Distribution: inet
Date: Mon, 21 Dec 1992 15:32:19 GMT

 
|> We've noticed that it does not seem to be possible to set the color of the
|> scrollbar slider.  Even though the Programmer's Reference is unclear as to
|> what the scrollbar Foreground resource controls, it would seem to make
|> sense for it to control the slider color.  A perusal of ScrollBar.c reveals
|> that the foreground resource is unused and that the slider is drawn in the
|> background color (along with most everything else).  We think we see an easy
|> way to fix this.  The question is, "What is the intended behaviour?"  Was
|> it intended not to use the foreground or was that an oversight?

Use of foreground has been avoided on purpose (3d visual cuisine).

XmNtroughColor is the one you're looking for.


From: pirson@misty.boeing.com (Chris Pirson)
Date: Sat, 2 Jan 1993 20:41:09 GMT
Subject: Text Label Widget Flicker
Organization: Boeing Commercial Airplane BCS Support
Newsgroups: comp.windows.x.motif

I have a Motif application which constantly monitors and displays the status
of a large data system.  I display the information in about 4 single-
line text label widgets.  The text in the label widget is updated once per
second using XtVaSetValues to change XmNlabelString.  The problem is an
annoying flicker every 6 or 7 seconds.  All the text in the widget
flickers even if only a single character has changed.  I'm using monospaced
fonts and have experienced this on 3 different X servers - HP700, NCD,
and Apollo Domain.

Am I going about this monitor application all wrong, is there a simple fix,
or am I SOL?

--
Chris Pirson                 |B\______o=o=o.        Flight Test Engineering
                             --=o=o=o=o=o=o=>       Boeing Commercial Airplanes
pirson@misty.boeing.com           / ,'              Boeing Field, Seattle, WA
uunet!bcstec!misty!pirson   ..   /,'   76 MIPS at 40,000 feet!
Newsgroups: comp.windows.x.motif
From: daniel@juliet.osf.org (Daniel Dardailler)
Subject: Re: PushButton behavior
Organization: Open Software Foundation, Motif Team
Distribution: world,local
Date: Mon, 21 Dec 1992 14:46:30 GMT

 
|> 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).
 
Default button behavior is a trait of the BulletinBoard widget.
Look there in the doc.
Newsgroups: comp.windows.x.motif
From: larry@boris.webo.dg.com (Larry Rogers)
Subject: Re: Centering button in form ?
Date: 24 Dec 92 10:08:18
	<3952@creatures.cs.vt.edu> <3953@creatures.cs.vt.edu>
Organization: Data General, Westboro, Mass.


You are wrong about leftOffset.  leftOffset is not ignored.  If set to
the negative of half the width of the widget, the widget is adjusted
left 1/2 its width and therefore centered.  Read my post or the FAQ.
It works.

Larry
--
    @@               Larry Rogers               *
   @@@               Larry_Rogers@dg.com        *   Big Brother
   @@@ &&&           larry@boris.webo.dg.com    *   is Watching
    @@ &&            Data General  508-870-8441 * 

The opinions contained herein are my own, and do not reflect the
opinions of Data General or anyone else, but they should.

"Sometimes we are the windshield, sometimes we are the bug"
   Dire Straits
From: daniel@juliet.osf.org (Daniel Dardailler)
Newsgroups: comp.windows.x.motif
Subject: Re: Resizing pixmap in drawing area widget
Date: 21 Dec 92 15:27:26 GMT
Organization: Open Software Foundation, Motif Team


 
|> I have an app which contains a pixmap image in a drawing area widget.  If
|> a user makes the window smaller (with the mouse manually), then the pixmap
|> does not scale itself to become smaller; just a small portion of the entire
|> image will be visible.  Is there a convenient method to resize images
|> depending on the new size of the window?

Not supported in X.
Look for PD imaging software like those for jpeg, gif, etc.
From: feats@feats.cc.vt.edu feats@vtvm1.cc.vt.edu
Newsgroups: comp.windows.x.motif
Subject: Learning X-windows
Date: 30 Dec 92 12:50:57 GMT
Distribution: usa
Organization: Virginia Tech, Blacksburg, VA

I have a RS/6000 POWERstation 220 running AIX 3.2.  I am interested             
in learning about AIXwindows and how to write a 'C' application that            
uses the X-windows environment.  As of right now I don't have access            
to any of the IBM manuals that cover this topic in depth.  I do feel            
that the IBM manuals are not the best ones to learn from but they do            
make good references.                                                           
                                                                                
Can anyone suggest any good books on X-windows programming in 'C'?              
I don't know if just any X-windows programming book will do or if I             
need one that specifically covers AIXwindows!                                   
                                                                                
I would also be interested in some small programming samples of                 
X-windows applications.  Are there any FTP sites that would have                
any coding samples or would any of you have any samples you would               
like to share.  I am talking small and simple examples because I                
know very little about 'C' and almost nothing about X-windows!                  
                                                                                
Thanks in advance!                                                              
                                                                                
                                                                                
Stephen L. Greenfield                     Bitnet:   FEATS@VTVM1                 
Virginia Polytechnic Institute   ,/\      Internet: feats@feats.cc.vt.edu       
Blacksburg, Virginia           ,/   `\/`'\                                      
                           ,/\/          /                                      
                         ,/             <_          ._.                         
                        /                 `\       / /                          
             ,/\_     _/'                   `-`-\  |/                           
          ,/'    `_'_'  *  Blacksburg          \_> '                            
       ,/'                                    \__>_/\                           
      +----------------------------------------------+                          
Newsgroups: comp.windows.x.motif
From: amga@hpuerca.atl.hp.com (Anne Gale)
Subject: Re: HP Motif vs. xnews
Date: Thu, 31 Dec 1992 19:40:54 GMT
Organization: Hewlett-Packard NARC Atlanta

In <1992Dec30.124950.4825@draco.macsch.com> matt@sparc6.pisces.macsch.com (Matt Jackson) writes:


>Found an obscure but annoying problem the other day...

>If I run my application on an HP9000 with X11R4 and Motif1.1, and display
>it on a SPARC 1+ with Openwin 3.0, it takes about *10 minutes* to start
>up (on other machines, it takes a few seconds). The holdup appears to be
>in a routine called XRefreshKeyboardMapping(). "hpterm" does the same
>thing, but other Motif programs do not. Running Motif programs on an SGI
>Indigo and displaying them on the SPARC works like a champ. Running any
>application anywhere and displaying it on SPARC using the X11R5 server
>works fine, so it appears to be an incompatibility between xnews and HP
>Motif 1.1.

>Has anybody seen this?
>Does anybody know what is causing it?
>Does anybody know how I can fix it?

-------------------------------------------------------------------------

I haven't seen this personally, but I've spoken with several customers
who have had the problem with hpterm.  The information that we normally
give customers is as follows:

  The hpterm X client is waiting to get the value of some selection
  ("Customize Data:") and not succeeding. The Sun server should
  realize that there is no owner of that selection and should return
  None as the selection value.

  The bug has been reported to Sun (Sun bug id is 1076332). The problem
  exists only with OpenWindows 3.0. Any Motif 1.1 client will have this
  problem. A work-around is to set the following reso X server:

      *useColorObj: false


Hope this helps,
Anne
Newsgroups: comp.windows.x.motif
From: reg@teak10.cray.com (Rich Gergen)
Subject: Xm list
Originator: reg@teak10
Organization: Cray Research, Inc.
Date: 22 Dec 92 12:32:46 CST


Is there a way with a scrolled list to prevent the vertical or the
horizontal scrollbar from appearing while having the other one always
appear?  In particular, I wish to have the horizontal scrollbar always
present, but wish to handle the vertical scrolling myself (linking several
lists together on a single scroll bar).  I cannot find any way to do this
and would prefer to do it within the scrolled_window widget rather than
having to manage the horizontal scrollbars myself as I have to with the
vertical scrollbars.


					Thanks,

					- Rich Gergen
Newsgroups: comp.windows.x.motif
From: koverber@cs.ulowell.edu (Kurt Overberg)
Subject: Re: controlling an option menu from within the program
Originator: koverber@bigmax.ulowell.edu
Organization: University of Massachusetts at Lowell Computer Science
Date: Thu, 31 Dec 1992 18:53:01 GMT


In article <1992Dec30.205716.17673@gate.esat.kuleuven.ac.be> johanb@joyce.esat.kuleuven.ac.be (Johan Buelens) writes:
|> 
|>    user against absurd or potentially dangerous combinations of options).
|>    i tried to use XtVaSetValues(option_menu,XmNmenuHistory,0,NULL) which
|>    executes without complaints but also without visible results; the program
|>    then crashes the next time the option menu is activated.

I was always under the impression that the XmNmenuHistory took 
a Widget ID of the last option chosen.  It looks like you are
simply setting it to zero (or NULL)...  Try setting it to the Widget ID
of the button you want the option menu to default to.


					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: koverber@cs.ulowell.edu (Kurt Overberg)
Subject: Re: Strange behavior from .mwmrc
Originator: koverber@bigmax.ulowell.edu
Keywords: xlock, f.exec, key, bindings
Organization: University of Massachusetts at Lowell Computer Science
Date: Mon, 21 Dec 1992 14:42:46 GMT



I think I remember reading somewhere that XLock's screensaver mode
listens to keyboard events, but not mouse events...


		
						peace out.

						     kurt
-- 
Kurt Overberg            | Opinions expressed here are MINE!           
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: dichter@chdasic.sps.mot.com (Carl Dichter)
Subject: Re: Problem Exiting from a Dialog?
Organization: Motorola ASIC Division, Chandler AZ
Date: Mon, 21 Dec 1992 20:49:28 GMT

In article <BzGsLq.MwD@plato.ds.boeing.com>, mattb@plato.ds.boeing.com (Matt Baney) writes:
>I am using the examples from the Douglas Adams book to 
>create an application using MOTIF and C++.

I think you mean Doug Young. Douglas Adams wrote the
Hitchhiker's Guide to the Galaxy, and 4 others in the 
incorrectly named "trilogy".

>I have created a dialog window and set up the callbacks
>for the _okButton and _cancelButton, then I added some
>textEditFields to the dialog window. BUT whenever you 
>type a carriage-return in one of the textFields the
>dialog exits??  I only want the dialog to exit when 
>one of the _OK or _CANCEL buttons??

You'll need to set-up the traversals.
See the posting earlier today by Paul D Johnston 
Subject: Re: Help using TAB to move to next field in ScrolledWindow

----------------------
Carl R. Dichter               "iwannanugui"
Motorola ASIC Division
email: dichter@chdasic.sps.mot.com
* A native of Phoenix-- that's why you can't place the accent. *
From: lee@deneb.sw.stratus.com (Lee Cooprider)
Newsgroups: comp.windows.x.motif
Subject: comp.windows.x.intrinsics
Date: 30 Dec 92 20:13:34 GMT
Organization: Stratus Computer, Software Engineering
NNTP-Posting-Host: deneb.sw.stratus.com

I have an application that starts up xterm's as separate independent windows
cooperating with the main application.  I would like those xterm windows to
have characteristics such as geometry and font that can be specified by the
user in the resource database independently of those for normal xterm windows.

The "-name name" parameter of xterm seems to be what I want:

	 -name name
             This option specifies  the  application  name  under
             which  resources are to be obtained, rather than the
             default executable file name.  Name should not  con-
             tain ``.'' or ``*'' characters.

However, if I use "xterm -name Foo -title baz" and put

	Foo.geometry: 80x8-0-0
	Foo.font: 6x9

in the resources database, xterm doesn't behave any differently.

What am I doing wrong?  Is there a better solution to this nuisance of a
problem?
-- 
Lee W. Cooprider				PP-ASEL/IA
Lee_Cooprider@vos.stratus.com			Skylane N2908F "Wiley"