View Full Version : How do I make a password come up as stars in Delphi?
johnmilton
26-04-2011, 01:34
How do I make a password come up as stars in Delphi?
If we knew, I'm sure we'd be happy to help you. Maybe some of the folks here can tell you, but I'm afraid there aren't going to be many.
You see, Chief Delphi is designed for discussing the FIRST Robotics Competition. (http://usfirst.org/) The Delphi teams (including the team that started this site) were/are sponsored by Delphi Automotive, which is where the name Chief Delphi comes from (they were team # 47; they've since merged with another team). As most of the programming for this competition is in C++, Labview, or Java, those are the most-known languages. Maybe someone does know some form of Delphi, but the odds are kind of slim.
There are some links in this post (http://www.chiefdelphi.com/forums/showthread.php?t=29944) in the Programming subforum that you may find useful in getting help.
As a guess, would it be possible to store an array of star characters longer than any possible password, count the characters in the entered password, and have the display show that many stars? Or maybe every time another character is entered, grab the next slot in that array? (Bear in mind, I have no knowledge of Delphi and I am an ME student--but I did have to take a C++ class.)
Tristan Lall
26-04-2011, 02:36
Try this (http://www.swissdelphicenter.ch/torry/showcode.php?id=1844). You might want to try the Delphi help (or searching the internet) for more information on the PasswordChar property of the TEdit control. (Depending on your Delphi version, this (https://forums.embarcadero.com/message.jspa?messageID=142917) may also be relevant.)
But like Eric said, this forum—and especially the Career section—isn't a reliable place to get Delphi programming information.
vBulletin® v3.6.4, Copyright ©2000-2017, Jelsoft Enterprises Ltd.