use the following code to put "*"s while entering password in the Text
Filed. U need to keep the keyed-in password in some Variable for ur
Verification purpose.
static Boolean MainFormHandleEvent(EventPtr eventP)
{
Boolean handled = false;
FormPtr frmP;
FieldPtr fld;
switch (eventP->eType)
{
case keyDownEvent:
if (eventP->data.keyDown.chr > 32)
{
password[iIndex] = eventP->data.keyDown.chr;
iIndex++;
fld = (FieldPtr)
GetObjectPtr(MainPasswordField);
FldInsert(fld, "*", 1);
handled = true;
}
break;
case ....
}
}
-----Original Message-----
From: Hendrik Schreiber [mailto:[EMAIL PROTECTED]
Sent: Thursday, May 29, 2003 8:26 PM
To: Palm Developer Forum
Subject: password entry field
Hi,
can anyone please point me at a piece of code that illustrates how to
program a password entry field. I.e. a field that echoes asterisks instead
of the typed in characters.
Thanks,
-hendrik
--
For information on using the Palm Developer Forums, or to unsubscribe,
please see http://www.palmos.com/dev/support/forums/
"THIS E-MAIL MESSAGE ALONG WITH ANY ATTACHMENTS IS INTENDED ONLY FOR THE
ADDRESSEE and may contain confidential and privileged information.
If the reader of this message is not the intended recipient,
you are notified that any dissemination, distribution or copy of this
communication is strictly Prohibited.
If you have received this message by error, please notify us
immediately, return the original mail to the sender and delete the
message from your system."
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/support/forums/