Re: Password Prompt - How?

new topic     » goto parent     » topic index » view thread      » older message » newer message

Check the Win32Lib docs for:

openWindow()
showWindow()
closeWindow()

----- Original Message ----- 
From: <Louis at cwshop.com>
To: "EUforum" <EUforum at topica.com>
Subject: Re: Password Prompt - How?


>
>
> OK, The secret undocumented control ES_PASSWORD works.  Now another
question.
>
> I understand how to set up handlers and call WinMain().  I have always
assumed that when the window is closed, WinMain() returns and execution
resumes.  That's where I close the database.  I tried to use a second
WinMain() to open another window and found that it didn't work.  Then I
found WinMain is documented that when it closes, the application also
closes.  I tried openDialog, which says it activates handlers and waits for
input.  It doesn't.  It flashes the window on the screen and closes it
immediately.
>
> What I am trying to do is open a window to prompt for a password.  The
user types in the EditText field and clicks an "OK" button (or presses
Enter).  The window closes and if the password was correct, the main
application window opens.  (Has anyone seen example code?)  I'm not asking
someone to write this for me, just give me some hints as to what functions
to use.
>
> Where would I find things like ES_PASSWORD documented?  Would this be in a
"Windows Programming" text?
>
> Louis.
>
> *********** REPLY SEPARATOR  ***********
>
> On 9/30/2003 at 4:09 AM Guillermo Bonvehi wrote:
>
> >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
>
> --^----------------------------------------------------------------
> This email was sent to: euphoric at cklester.com
>
>
> TOPICA - Start your own email discussion group. FREE!
>
>

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu