[comp.windows.x.motif] Password input using Motif widget

hsu@locus.com (Mike S. C. Hsu) (11/06/90)

Does anybody has the experience or ideas of using motif widgets to implement
a text input window in non-echo mode?   My intention is to build a login
dialog window using motif. The non-echo mode is necessary when user type
in their password.  I tryed using motif Text widget with foreground equal
to background; it does disappear the text but with the unwanted side effect
of disappearing the text cursor too. Any suggestion?

Also, does anybody knows if the Motif 1.1 would support non-echo mode in
their Text widget? It'd be very disappointing if it doesn't because the OSF
claims that the Motif 1.1 will be suite for real world applications.

Thanks in advance!

--Mike

nazgul@alphalpha.com (Kee Hinckley) (11/06/90)

> Also, does anybody knows if the Motif 1.1 would support non-echo mode in
> their Text widget? It'd be very disappointing if it doesn't because the OSF
> claims that the Motif 1.1 will be suite for real world applications.

Motif (or any other toolkit) will never provide everything that every
application needs.  That doesn't mean you can't write a real-world
application.  That's the reason that Motif was based on the Intrinsics -
so when it doesn't do something you need you can add new functionality
yourself without having to have the source code (of course a few more
docs would help :-).

Use modifyVerifyCallback and set doit to False.  Live with the beep at 1.0,
at 1.1 you can turn it off.