Re: Password Prompt - How?
- Posted by Guillermo Bonvehi <knixeur at speedy.com.ar> Sep 30, 2003
- 618 views
Hi Louis, You can use the ES_PASSWORD flag to do what u want. Sle1 =3D create(EditText, "", Win, 10, 40, 120, 20, ES_PASSWORD) Also, you can trap when the user enters a key saving it to a sequence=20 and sending the control a character at your choice. You're right that some win32lib examples should be added and or=20 reviewed, but you also have the Contributions page to see a lot of good=20 programs and learn from them. Best Regards, Guillermo Bonveh=ED Louis at cwshop.com wrote: >=20 >=20 > Thanks all for your previous help. >=20 > I'm stumped again. Here is a program I made out of example 07. > What I want is for the characters typed to display as blanks or asterisks= because it is a password entry field. > How can I do that? >=20 > By the way, Example 07 uses the undocumented control "SleText" instead of= "EditText". What in the world is that? > Wishlist item: Rework the examples in Win32Lib to use best practices. >=20 > Louis. >=20 > include win32lib.ew > without warning > classAutoSelect(EditText, True) >=20 > constant > Win =3D create(Window, "Enter Password", 0, Default, Default, 400= , 200, 0), > Button =3D create(PushButton, "Check Value...", Win, 180, 10, 120, 20= , 0), > Sle1 =3D create(EditText, "", Win, 10, 40, 120, 20, 0) >=20 > constant > aStatusBar =3D create(StatusBar, "", Win, 0, 25, 20, 20, 0) >=20 > procedure Click_Button(integer self, integer event, sequence parms) > sequence msg > msg =3D getText(Sle1) > setText(aStatusBar, msg) > end procedure >=20 > setHandler(Button, w32HClick, routine_id("Click_Button")) > WinMain(Win, Normal) >=20 > --^---------------------------------------------------------------- > This email was sent to: knixeur at speedy.com.ar >=20 >=20 > TOPICA - Start your own email discussion group. FREE! >=20 >=20 >=20 >=20