HDTenEightyP/NetNews huggingface dataset:
From: snail@lsl.co.uk
Newsgroups: comp.windows.x.motif
Subject: Re: Non-echoing text widget for password entry
Date: 9 Apr 92 17:08:43 GMT
Organization: Laser-Scan Ltd., Cambridge

In article <david.702575486@colt.cc.iastate.edu>, david@iastate.edu (David M. Martin Jr.) writes:
> I would like to use a Text widget to acquire a password from the user.
> The cursor should be visible and move as the password is being typed,
> but the characters should of course not appear.  (Equating the
> foreground and background colors seems to make the cursor vanish.)

OK we did what you did.. I still haven't been bothered to fuss about it. But
what you need to do is this.

Add a XmNverifyModifyCallback to your text widget. The str parameter (3rd) to
the callback will be an XmVerifyModiyCallbackStruct (or some similar name).
The parameter str->text describes whats going to happen next. This holds
three things:-
 ptr pointer to the character (or character string) being added to the existing
     text
 length how long that string is.
 format ignore this for time being.

if length == 0 then chances are it's a delete character coming in. Remember
that.

So with this information, you need to fake up an internal structure to hold
the text being typed. You can work out when to delete characters from this 
text because the length field will be zero. And so that you can indicate to
the user that you know where their cursor is, you can overwrite the existing
character typed with a * or space or whatever. Note you won't be able to use
XmTextGetString to get your text, since the real text will be in your 
internal structure, and all you'll get from XmTextGetString will be all the
*s or spaces that you've replaced them with.

To overwrite the character typed in:-

 *(str->text->ptr) = '*';

Remember this function is called when you do XmTextSetString as well as when
you type into the widget. So remember to handle that case as well.

Hope this helps...Remember my number, maybe you'll need me one day.

===== Yes, it's meant to be a snail, I speak only for myself and my snail =====
===== not for Laser Scan.                                                 =====
                                                              *      *
Stephen Kellett                                _______         \    /
Software Engineer                            --   ___ --        \  /  
Laser Scan Ltd                              (    _   __ )      ======
Science Park                               (    (  |   ) )    =      =
Milton Road                                (     (_)    ))   =  *  *  =
Cambridge CB4 4FS                           (           )  ==   .  .  =
England                                      --       --===      ..  =
snail@lsl.co.uk                              ==_______             ==
(+44) 223 420414 ex 275              ========                  ====   
                          ===========                      ====      [ ]BEER
                       ====================================          | |CIDER
-------------------------------------------------------------------------------
From: dbrooks@osf.org
Newsgroups: comp.windows.x.motif
Subject: Re: Accesing default action routines without invoking event
Date: 16 Apr 92 13:12:55 GMT
Distribution: inet
Organization: The Internet

You wrote:
> How do you access the default action routines without invoking some translated
> event?  For example, <BtnPress> on Pushbuttons is tied to the action routine
> Arm(), and <BtnRelease> is tied to Activate() and Disarm().  Can I call Arm(),
> Activate(), or Disarm() without doing an actual <BtnPress> or <BtnRelease>?

If you really can't use translations or accelerators, use XtCallActionProc. 
For example,

	XtCallActionProc(ButtonWidget, "ArmAndActivate", eventp, NULL, 0);

is a way to flash the button and call its activate callbacks.  Always provide a
non-null event pointer, even if you have to cons up a fake event.

David Brooks
Systems Engineering
Open Software Foundation
Xref: sparky comp.windows.x.motif:3130 comp.windows.x:9806
From: nguyend@caip.rutgers.edu (Duc Nguyen)
Newsgroups: comp.windows.x.motif,comp.windows.x
Subject: Window w/out border & title
Keywords: window
Date: 9 Apr 92 20:34:08 GMT
Followup-To: comp.windows.x.motif
Organization: Rutgers Univ., New Brunswick, N.J.


I've been trying unsuccessfully to create a window without borders
and title on the Motif window manager. Setting 
  Mwm*clientDecoration: none
doesn't seem to work. I'm trying to create a static classification
banner (meaning it can't be covered or moved). Any help would be
much appreciated. Please response to
nguyend@caip.rutgers.edu
From: morten@oase.kemi.aau.dk (Morten Kjeldgaard)
Newsgroups: comp.windows.x.motif
Subject: Documentation for UIL??
Date: 13 Apr 92 21:40:34 GMT
Organization: Aarhus University, Denmark

Sorry if this is a faq* but where can I find a description of UIL??

/Morten

*) Not in motif.faq (parts 1-4), though.

--
Morten Kjeldgaard  ~ mok@kemi.aau.dk ~ morten@oase.kemi.aau.dk
Biostructural Chemistry, Department of Chemistry, Aarhus University
Langelandsgade 140, DK-8000 Aarhus C, Denmark
Phone: +45 86 12 46 33 ~ +45 86 20 27 11 x6752 ~ Fax: +45 86 19 61 99
From: dbrooks@osf.org
Newsgroups: comp.windows.x.motif
Subject: Re: Motif Wish List
Date: 16 Apr 92 13:21:20 GMT
Distribution: inet
Organization: The Internet

You wrote:
> Maybe a list of some sort can be set up where eveyone using Motif
> can contribute their *DESIRES* and OSF can pick up these requests
> for considerations.

I'm suprised that anyone would think we *don't* have an mechanism for providing
external input to our wish-list.  It's even formally constituted.  All member
companies (over 300) are eligible for the various SIG's, and they alone set the
direction for Motif.

However, if another dumping ground were to be set up for feature requests, I'm
sure it would get read.

David Brooks
Systems Engineering
Open Software Foundation
From: wu@cs.purdue.EDU (Po-ting Wu)
Newsgroups: comp.windows.x.motif
Subject: Data format between Pixmap and Image ?
Keywords: Pixmap, Image
Date: 6 Apr 92 20:22:24 GMT
Article-I.D.: ector.18349
Organization: Department of Computer Science, Purdue University


I used the "bitmap" program to create the bitmap data 'bits', and used the
following program with no problem :

	pix = XCreatePixmapFromBitmapData(dpy, XtWindow(w), bits,
			width, height, fg, bg, DefaultDepth(dpy, screen)) ;

But when the following program executed, the bitmap not display correctly.

	image = XCreateImage(XtDisplay(w), DefaultVisualOfScreen(XtScreen(w)),
		1, XYBitmap, 0, bits, width, height, 8, 2) ;
	XmInstallImage(image, name) ;

	pix = XmGetPixmap(XtScreen(w), name, fg, bg) ;

Do they use different format of data ? Could anyone please tell me how to
convert them for XCreateImage ?

Thanks in advanced !

Po-Ting Wu
wu@cs.purdue.edu
From: rvloon@cv.ruu.nl (Ronald van Loon)
Newsgroups: comp.windows.x.motif
Subject: Motif Bug ? Minimum/Maximum values of XmScale
Keywords: motif 1.1, hpux, minimum maximum resource
Date: 16 Apr 92 19:14:07 GMT
Organization: University of Utrecht, 3D Computer Vision Research Group
Originator: rvloon@triton.cv.ruu.nl

Hi Motif world;

I tried setting the minimum and maximum resources of the XmScale widget to
INT_MIN and INT_MAX (constants that can be found in the <limits.h> file - the
minimum value an int can ever get and the maximum value respectively.

I then created the scale with these resource settings, and realised the
ApplicationShell. 

Result: 

FloatingPoint exception. The stack trace show the culprit to be in
XmDrawImageString.

If I set the resources to INT_MIN / 2 and INT_MAX / 2, everything works fine.
Is this 'known behavior' ? Is this a bug ? The documentation does not specify
the limit on the value you can set. (Just 'int').

Comments ? Workaround ?

Thanks for any ideas.

System: HP-UX 8.05, system 9000/750, X11R4, Motif 1.1

-- 
Ronald van Loon (rvloon@cv.ruu.nl) 3DCV Group, Utrecht, The Netherlands.

Insanity is not bad in itself as long as there is a system to it. (H.Liberg)
Healthy absurdism once in a while has never hurt anybody (me)
Newsgroups: comp.windows.x.motif
From: klee@decwrl.dec.com (Ken Lee)
Subject: Re: PostScript Viewer?
Reply-To: klee@wsl.dec.com
Organization: DEC Western Software Laboratory
Date: Thu, 9 Apr 92 22:58:17 GMT

|> Hi, Does anyone have a PostScript Viewer running under DECwindows/Motif?

DECwindows comes with a PostScript viewer.  Try DXVDOC.

-- 
Ken Lee
DEC Western Software Laboratory, Palo Alto, Calif.
Internet: klee@wsl.dec.com
uucp: uunet!decwrl!klee
Newsgroups: comp.windows.x.motif
From: bennett@areaplg2.corp.mot.com (Steve Bennett)
Subject: getting Index of selected button
Reply-To: bennett@areaplg2.corp.mot.com
Organization: Motorola, CCR&D, CORP, Schaumburg, IL
Date: Tue, 14 Apr 1992 18:43:38 GMT

Can anyone tell me an easy way to get the index of the selected button in a
radiobox. MenuHistory gives me the Widget Id but that does not do much good.

-- 

#
# Steve Bennett (bennett@mot.com)
#
Newsgroups: comp.windows.x.motif
From: hallett@enterprise.med.ge.com (Jeff Hallett 548-5163 )
Subject: Setting Options Menu Value
Reply-To: hallett@enterprise.med.ge.com
Organization: PET Engineering - GE Med. Systems, Milwaukee, WI, USA
Date: Mon, 6 Apr 92 13:45:14 GMT

Hi all.

I am using an options menu in a dialog box in my application. The
behavior I seek is that if the operator chooses 'Accept' on the
dialog box, I save the current value of the options menu. If he
chooses 'Cancel', I want to reset the currently selected item on
the options menu to be what it was when the operator last chose
'Accept'.

Grabbing the item is easy using the menu items' activation 
callback. Resetting the currently selected item is proving more
difficult.  

Any hints?


--
	     Jeffrey A. Hallett, PET Software Engineering
      GE Medical Systems, W641, PO Box 414, Milwaukee, WI  53201
	    (414) 548-5163 : EMAIL -  hallettJ@med.ge.com
	"If you don't care where you are, then you aren't lost."
Newsgroups: comp.windows.x.motif
From: margi@indigo.asd.sgi.com (Margie Levine)
Subject: tabs in the items of a scrolled list
Reply-To: margi@indigo.asd.sgi.com (Margie Levine)
Organization: Silicon Graphics Inc.
Date: Thu, 9 Apr 1992 23:55:48 GMT

I have a scrolled list that is created by reading in a file and
making each line an item in the list.  The lines in my file have
tabs in them and when they appear in the scrolled list, the tabs
dissappear.  This makes the fields in each line look packed one
against the next.  Is there any way to get a list to recognize my
tabs?

 - Margie Levine
   margi@sgi.com



Newsgroups: comp.windows.x.motif
From: cathy@bwdlh532.bnr.ca (Catherine Tsao)
Subject: Re: Frequently Asked Questions about Motif (Part 2 of 4)
Keywords: FAQ question answer
Organization: Bell Northern Research, Ottawa, Canada
Date: Thu, 9 Apr 1992 15:33:53 GMT

   My application has a popup dialog form which contains a lot of
label and text widgets. Currently, it is taking up the whole display.
Is there anyway I can set the form size? I have set the "HEIGHT" &
"WIDTH" resouces of the form but it doesn't seem to work.
   Any information will be appreciated.

Regards,
Catherine Tsao.
Xref: sparky comp.windows.x.motif:3174 comp.windows.x:9924 comp.unix.sysv386:8547
From: dwex@cbnewsj.cb.att.com (david.e.wexelblat)
Newsgroups: comp.windows.x.motif,comp.windows.x,comp.unix.sysv386
Subject: Motif text/text-field cursor problems
Date: 12 Apr 92 17:15:17 GMT
Article-I.D.: cbnewsj.1992Apr12.171517.20400
Followup-To: comp.windows.x.motif
Organization: AT&T

I did look in the FAQ for answers, but I didn't see anything relevent.

Configuration: i486, SVR4, X11R5 (X386 1.2), Motif 1.1.3

Under X11R4 (X386 1.1b), the insertion-point cursor was never visible in
text and text-field widgets, regardless of resource settings.

Now, with X11R5, with the same Motif applications, the insertion-point
cursor does show up.  The problem is, it leaves rat-droppings all over
my widgets when I move the insertion point.  I have verified that all of
the old libraries are being loaded (via ldd).  The same thing happens if
I rebuild the application with the X11R5 libraries.

I'm guessing this is some kind of server issue, since it shows up with the
old binaries.  Does anyone know how to fix this?  Or turn the cursor back
off (no cursor is preferable to 'I' and '^' rabbit droppings :-<) - without
having to edit every applications app-defaults file, if possible?

Any help that can be provided is appreciated.  This is disturbing enough
that I may not use X11R5.


-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
David Wexelblat             | dwex@mtgzfs3.att.com  | I asked her her name.
AT&T Bell Laboratories      | ...!att!mtgzfs3!dwex  |   She said her name was
200 Laurel Ave - 4B-421     |                       |      'Maybe'
Middletown, NJ  07748       | (908) 957-5871        | --Damn Yankees
From: sdpage@andersen.co.uk (Stephen Page)
Newsgroups: comp.windows.x.motif
Subject: Suitable fonts?
Date: 8 Apr 92 15:37:14 GMT
Organization: Andersen Consulting (UK Practice)

Has anyone done a thorough examination of the fonts supplied with X11R4 and
Motif 1.1, to see what works well?

I am looking for a "good" user font and accompanying system font (of the same
size). We are using IBM 5081 16 inch monitors, and to date we have used the
fonts which appear by default with AIC (UIM/X) under IBM AIX. Our users have
commented that the system font (Helvetica) is thin and hard to read, and the
user font (Roman or Courier) is not particularly cleanly defined. In addition,
the system font has too thin a stroke width, so dithering (for greyed-out
pushbuttons etc) significantly reduces readability.

Any hints would be welcome. Currently we are looking at Lucida and Lucida-
typewriter, and these look a little better but perhaps they are too "fussy".

- Stephen Page    sdpage@andersen.co.uk
Newsgroups: comp.windows.x.motif
From: chow@sdc1.ssc.gov (Ivan Chow,,6212)
Subject: Motif drag and drop examples program
Keywords: Motif
Reply-To: chow@sdc1.ssc.gov
Organization: Superconducting Super Collider Laboratory
Date: Fri, 17 Apr 1992 14:35:26 GMT

Hello, News-world:
    Does there exits any drag and drop examples programs for motif?  
I mean ftp sites.  Thanks for any info.

Ivan
From: betsys@cs.umb.edu (Elizabeth Schwartz)
Newsgroups: comp.windows.x.motif
Subject: Who sells Motif for Sun's?
Date: 17 Apr 92 19:43:26 GMT
Organization: UMass/Boston

We need to price Motif for Sun 3 and Sun 4 platforms. I need to get
the names of a couple of vendors to be competitive.
  Are there several versions of Motif for Sun? What's the story here?

Thanks, Betsy
PS Please email and I will post the summary. Please cc me a copy if
you post a response, as our news feed is a bit flakey.
thanks much!
--
System Administrator                    Internet: betsys@cs.umb.edu
MACS Dept, UMass/Boston                 BITNET:ESCHWARTZ%UMBSKY.DNET@NS.UMB.EDU
100 Morrissy Blvd                       Staccato signals
Boston, MA 02125-3393                        of constant information....
From: adolce@bbn.com (Anne Dolce)
Newsgroups: comp.windows.x.motif
Subject: Input Focus Question
Date: 6 Apr 1992 13:54:09 GMT
Organization: Bolt, Beranek & Newman, Inc.
Distribution: world
NNTP-Posting-Host: spcsun24.bbn.com

Hi,

   I have a bunch of dialog boxes in which I need to tell
   which widget had the input focus prior to when the user
   has activated a particular push button.  Is there any 
   to figure this out?  This would be easy to do if I had
   all text widgets since I could keep track of who has 
   the input focus using the focusCallback resource.  I 
   assume there's no way of adding a focusCallback to other
   widget types (like a push button). Thanks for any assistance.

Anne
----
*        *                   *********************************
*        *                   *  Anne Dolce (adolce@bbn.com)  *
*        *                   *  BBN Software Products        *
******   ******   ******     *  150 Cambridge Park Dr 20/9C  *
*    *   *    *   *    *     *  Cambridge, MA  02140  USA    *
*    *   *    *   *    *     *  Phone:  617-873-2122         *
******   ******   *    *     *********************************
From: achan@idaho.tdd.sj.nec.com (Amy Chan  x2941)
Newsgroups: comp.windows.x.motif
Subject: Re: Documentation for UIL??
Date: 14 Apr 92 21:09:53 GMT
Organization: NEC-AM TDD, San Jose, California

In article <morten.703201234@oase> morten@oase.kemi.aau.dk (Morten Kjeldgaard) writes:
>Sorry if this is a faq* but where can I find a description of UIL??
>
>/Morten
>
>*) Not in motif.faq (parts 1-4), though.
>

In the Motif's Programmer's Guide from OSF.

Amy
--
Amy Chan                 | E-Mail:
NEC America              |  INET: achan@tdd.sj.nec.com
110 Rio Robles           |  UUCP: ...{decwrl,oliveb}!necsun!achan
San Jose, CA 95134       |
Newsgroups: comp.windows.x.motif
From: greg@halexii.uucp (Gregory F. Hogg)
Subject: Help with Cut, Copy and Paste menu options
Organization: HOGG'S SOFTWARE
Date: Sun, 12 Apr 92 13:22:58 GMT
Keywords: clipboard accelerator

OS	: Interactive SYSV R 3 ver 3.0
X	: X11R4
MOTIF	: 1.1.1

	I am writting a simple motif program that contains a number
of XmText windows.  I have a menu bar across the top of application,
one of the options is Edit.  When edit is selected it drops down a
menu with options: Cut, Copy and Paste.  So far very simple, nothing
strange, and it works fine.

	Next I want to use the following accelerator keys :

	Cut	Shift+Del
	Copy	Ctrl+Ins
	Paste	Shift+Ins

So to set the acceleratorText I do the somthing like this:

	Arg		wargs[10];
	int		n		= 0;
	XmString	acceleratorXmString;

	acceleratorXmString = XmStringCreate(MenuList[i].acceleratorText,
			XmSTRING_DEFAULT_CHARSET);

	XtSetArg(wargs[n], XmNacceleratorText,
			acceleratorXmString); n++;

	ButtonCopy = XtCreateWidget("Copy", xmPushButtonWidgetClass,
		MenuBar, wargs, n);

	XtAddCallback(ButtonCopy, XmNactivateCallback, MyClipboardCopyCB,
		"Copy");

	XmStringFree(acceleratorXmString);

	I do this for Cut and Paste.  Now I have NOT set what
function the accelerator keys should call I have only at this point
tryed to display the accelerator text next to each option, and this
works.

	The problem that I am having is that as soon as I define the
accelerator text the accelerator keys start working.  How?  what
function(s) are they calling and how does setting XmNacceleratorText
cause this to happen?  Next are there standard MOTIF functions that I
should be calling to do Cut, Copy and Paste?  At the moment I have my
own but that was only because I did not find any other way.
                          
    +++++++++++++++++     
   +++++++++++++++++++    Greg Hogg
   +++             +++    
   ++               ++    HOGG'S SOFTWARE
   +++             +++    
   +++++++++++++++++++    
    +++++++++++++++++     
                          voice : 410-538-7241
   ++++ ++++ ++++ ++++    fax   : 410-538-6130
  ++++ +++++ +++++ ++++   uucp  : uunet!halexii!greg
 ++++ ++++++ ++++++ ++++  cis   : 74176,1320
-- 
                          
    +++++++++++++++++     
   +++++++++++++++++++    Greg Hogg
   +++             +++
Newsgroups: comp.windows.x.motif
Subject: XmDrawingAreas and GCs
From: mcintyre@nrlvx1.nrl.navy.mil
Date: 13 Apr 92 11:39:40 -0400
Organization: NRL SPACE SYSTEMS DIVISION

I have been writing software that requires me to do some limited drawing with
Xlib and this necessitates creating at least some graphic contexts.  I recently
was reading Dan Heller's book on Motif and found his chapter on DrawingArea
widgets very interesting.  His drawing.c program creates GCs with the display
and screen from an unmanaged, unmapped, unrealized XmDrawingArea widget.  How
is this possible?  I create my GCs with the XtGetGC call, but have never
successfully done it withour first realizing the DrawingArea widget.  It
appeared to me that the XtDisplay, XtScreen, and XtWindow calls all needed the
widget to be realized s.t. there was a window actually created.  Is this a bug
in Dan's program or am I missing something?

Sean McIntyre
Newsgroups: comp.windows.x.motif
From: schultz@schultz.kgn.ibm.com ()
Subject: Visual specification for CreateApplicationShell
Date: Wed, 15 Apr 92 18:27:54 GMT
Reply-To: schultz@vnet.ibm.com
Organization: IBM AWD Graphics Systems
Keywords: visual shell toplevel

Is there a way to specify that a particular visual be used to
create widgets via the CreateApplicationShell (or other) function?
Basically, we'd like a widget hierarchy, from top to bottom, to use
a different visual than the DefaultVisualOfScreen.


Karl Schultz                             schultz@vnet.ibm.com
These statements or opinions are not necessarily those of IBM
From: kettering@addvax.llnl.gov (Brett 'Volleyball Is My Game' Kettering)
Newsgroups: comp.windows.x.motif
Subject: Re: Help with mwmDecorations (on a DialogShell)
Date: 6 Apr 92 23:02:00 GMT
Organization: Lawrence Livermore National Laboratory
News-Software: VAX/VMS VNEWS 1.40

Paul,

>I'm writing an application that has several (custom) popup dialogs.  I
>need to strip off most of the "mwmDecorations".  I tried the following,
>but it doesn't seem to work:

>   n = 0;
>   XtSetArg(args[n], XmNmwmDecorations, MWM_DECOR_BORDER);   n++;

>   w = XmCreateBulletinBoardDialog(parentW,"dialogW",args,n);

When you make this call the widget you get back is the BulletinBoard and
while I agree that you should be able to alter the resources of the
DialogShell here, I had the same problem.  What I did was do the create
and then:

  XtVaSetValues( XtParent( w ), XmNmwmDecorations, MWM_DECOR_BORDER, NULL );

I wanted more than just the border, so I did the bitwise or (|) of all
the decorations that I wanted and passed that in as the value for the
resource XmNmwmDecorations.

-------------------------------------------------------------------------------
Brett M. Kettering
PaperNet: LLNL P.O. Box 808 L-437 Livermore, CA.  94551
InterNet: KETTERING1@llnl.gov
TalkNet : (510) 423-3467
FaxNet  : (510) 423-4606

Unknown Debater: "We need a national speed limit of 55 mph."
Homer Simpson  : "Oh sure, it might save a few lives, but millions
		  would be late."
Sammy Hagar    : "I can't drive 55."
-------------------------------------------------------------------------------
Newsgroups: comp.windows.x.motif
From: david@iastate.edu (David M. Martin Jr.)
Subject: Non-echoing text widget for password entry
Originator: david@colt.cc.iastate.edu
Organization: Iowa State University, Ames IA
Date: Mon, 6 Apr 1992 15:51:26 GMT

I would like to use a Text widget to acquire a password from the user.
The cursor should be visible and move as the password is being typed,
but the characters should of course not appear.  (Equating the
foreground and background colors seems to make the cursor vanish.)

Any ideas?  

(DEC OSF/Motif 1.1 running under Ultrix 4.1,4.2)
-- 
David Martin Jr.
Iowa State University					david@iastate.edu
From: rengen@skat.usc.edu (Robert Engen)
Newsgroups: comp.windows.x.motif
Subject: Re: MOTIF FAQ
Date: 10 Apr 1992 02:06:40 -0700
Organization: University of Southern California, Los Angeles, CA
NNTP-Posting-Host: skat.usc.edu
Summary: Post the FAQ please!!!!
Keywords: Just Post It (cheap Nike takeoff :-)

Please post it or send me a copy,
thanks
robert.

rengen@skat.usc.edu