LoginSignup
0
0

More than 5 years have passed since last update.

c++ builder > TEdit > パスワード入力

Last updated at Posted at 2015-09-10
動作確認
C++ Builder XE4

パスワードを入力するTEditが欲しい。でもカスタムなどで作りこむのは面倒。

欲しい機能としては

  1. 入力中は入力した単語を非表示に
  2. 入力しているという情報があれば親切
  3. 処理後はCtrl+Cで取得されないこと
  4. パスワード入力のまま離席した時の対応 > パスワード自動削除

実装した。以下の番号は上記番号に対応する。

  1. TEditのFont->Colorをフォームデザインで clWindow にする
  2. 上記1により"|" (caret?) の位置が変わるので、入力しているのがわかる
  3. Buttonを押した時にTEditの中身を消す
  4. さらに念のため、Timer1で5秒などのインターバルののち削除する

4のTimer1を動かすタイミングは要検討。キーの入力が終了してからTimer1を起動する???

TODO: TEditをコピー不可にする

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0