加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 综合聚焦 > 服务器 > Windows > 正文

windows – 如何让我的Delphi 5应用程序显示密码“blob”?

发布时间:2020-12-14 02:15:15 所属栏目:Windows 来源:网络整理
导读:很简单,但我找不到答案. 我正在使用Delphi 5 Enterprise构建应用程序,并希望我的应用程序在密码字段中使用新的粗体黑点而不是星号. 我怎样才能做到这一点? 解决方法 见 PasswordBox: A Better Way to Enter Passwords: Getting the black dots to show up
很简单,但我找不到答案.

我正在使用Delphi 5 Enterprise构建应用程序,并希望我的应用程序在密码字段中使用新的粗体黑点而不是星号.

我怎样才能做到这一点?

解决方法

见 PasswordBox: A Better Way to Enter Passwords:

Getting the black dots to show up based on the visual style was insanely simple!

private const int ES_PASSWORD = 0x0020;
    ...

    protected override CreateParams CreateParams
    {
        CreateParams cp = base.CreateParams;
        ...

        cp.Style |= ES_PASSWORD;
        ...

        return cp;
    }

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读