Re: Replacing password with asterisks in text field?

2005-02-11 Thread Chris Faherty
On Thursday 10 February 2005 08:56, Roger Stringer wrote: This has been discussed many times in the past, so check the archives for the various solution. global var -- MemHandle passwordFontH; In StartApplication() - FontPtr fontP; /* define special

Re: Replacing password with asterisks in text field?

2005-02-11 Thread Chris Faherty
On Friday 11 February 2005 03:05, Chris Faherty wrote: global var etc etc etc Actually there may be a problem with the code I reposted and OS6. Not sure what's wrong, though I recall it not looking right on the Cobalt simulator. I haven't investigated it though. -- /* Chris Faherty [EMAIL

RE: Replacing password with asterisks in text field?

2005-02-10 Thread Manpreet Singh
Once I tried it but in vain, and some guy suggested me to invent my on font and replace chars with asterisks!!! I was not able to create my own font...and had to use those boxes [symbol 11] in one of my applications If anybody had any solution or any other idea? Hi all, Does anyone know a way

RE: Replacing password with asterisks in text field?

2005-02-10 Thread Sinisa Marovic (AC/EDD)
14:41 To: Palm Developer Forum Subject: RE: Replacing password with asterisks in text field? Once I tried it but in vain, and some guy suggested me to invent my on font and replace chars with asterisks!!! I was not able to create my own font...and had to use those boxes [symbol 11] in one of my

RE: Replacing password with asterisks in text field?

2005-02-10 Thread Manpreet Singh
: Thursday, 10 February, 2005 14:41 To: Palm Developer Forum Subject: RE: Replacing password with asterisks in text field? Once I tried it but in vain, and some guy suggested me to invent my on font and replace chars with asterisks!!! I was not able to create my own font...and had to use those

Re: Replacing password with asterisks in text field?

2005-02-10 Thread Roger Stringer
Subject: Replacing password with asterisks in text field? From: Robert Baruch [EMAIL PROTECTED] Date: Wed, 9 Feb 2005 14:56:22 - Does anyone know a way of having asterisks appear in a text field when a user types in a password? Specifically for the 68k API, not Protein. This has been

RE: Replacing password with asterisks in text field?

2005-02-10 Thread Manpreet Singh
. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Thursday, 10 February, 2005 14:41 To: Palm Developer Forum Subject: RE: Replacing password with asterisks in text field? Once I tried it but in vain, and some guy suggested me to invent my on font and replace chars

Re: Replacing password with asterisks in text field?

2005-02-10 Thread Douglas Handy
Manpreet, Any idea about the virtual keyboard problem? Catch the virtual chars for opening the keyboard, and write your own replacement. Also be sure to handle the user moving the insertion point within the field or selections within the field to delete or replace characters. Methinks it

RE: Replacing password with asterisks in text field?

2005-02-10 Thread Manpreet Singh
Thanks Doug, I need to try it once again Manpreet, Any idea about the virtual keyboard problem? Catch the virtual chars for opening the keyboard, and write your own replacement. Also be sure to handle the user moving the insertion point within the field or selections

Replacing password with asterisks in text field?

2005-02-09 Thread Robert Baruch
Hi all, Does anyone know a way of having asterisks appear in a text field when a user types in a password? Specifically for the 68k API, not Protein. Thanks! --Rob -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/

Re: Replacing password with asterisks in text field?

2005-02-09 Thread Douglas Handy
Rob, Does anyone know a way of having asterisks appear in a text field when a user types in a password? Create a custom font, leaving out virtually all glyphs except the default glyph (number -1). For it, instead of supplying an open rectangle like is customary on the device, supply an

Re: Replacing password with asterisks in text field?

2005-02-09 Thread Eric Potter
Robert Baruch wrote: Hi all, Does anyone know a way of having asterisks appear in a text field when a user types in a password? Specifically for the 68k API, not Protein. Thanks! --Rob One quick and dirty trick that I have done is to set the font of the field to one of the symbol fonts. That

Re: Replacing password with asterisks in text field?

2005-02-09 Thread Sebastian Cancinos
You can catch the 'keyDownEvent' event, concat the chars and replace it in the eventptr with a *. Even so, I wouldn't use a field with astericks, specially if the user will be writting the password with Graphitti. It's very common to make mistakes with Graphitti and with the astericks he

Re: Replacing password with asterisks in text field?

2005-02-09 Thread Henk Jonas
Robert Baruch wrote: Hi all, Does anyone know a way of having asterisks appear in a text field when a user types in a password? Specifically for the 68k API, not Protein. Thanks! --Rob You search for this question first? -- -

Re: Replacing password with asterisks in text field?

2005-02-09 Thread Logan Shaw
Sebastian Cancinos wrote: You can catch the 'keyDownEvent' event, concat the chars and replace it in the eventptr with a *. Um, if you do this, won't FldGetTextHandle() give you a handle to a string with a bunch of asterisks in it? How are you then going to do anything useful with the

Re: Replacing password with asterisks in text field?

2005-02-09 Thread Robert Moynihan
He probably meant concat the chars into a hidden character buffer somewhere, THEN replace them in the field string. Bob. Logan Shaw wrote: Sebastian Cancinos wrote: You can catch the 'keyDownEvent' event, concat the chars and replace it in the eventptr with a *. Um, if you do this,

Re: Replacing password with asterisks in text field?

2005-02-09 Thread Logan Shaw
Robert Moynihan wrote: He probably meant concat the chars into a hidden character buffer somewhere, THEN replace them in the field string. Bob. In that case, what happens when the user enters 3 or 4 characters, realizes they've made a mistake, then selects all the asterisks in the field and

Re: Replacing password with asterisks in text field?

2005-02-09 Thread odeleon
Hi Robert, long time ago, what I did is use a font that has no graphic for the character code you are entering (normaly code 32 and up) Palm OS display just boxes on the text field as you enter characters. Is not as pretty as asterisks but it works (hide real characters) and the resulting string

Re: Replacing password with asterisks in text field?

2005-02-09 Thread Robert Moynihan
Logan, you are absolutely right about keeping the 2 in synch. More of a pain than it's worth, probably. I was just guessing at the intent of Robert's note. Bob. Logan Shaw wrote: Robert Moynihan wrote: He probably meant concat the chars into a hidden character buffer somewhere, THEN