DXL中的用户密码 - 对话框

发布于 2025-01-26 08:15:26 字数 211 浏览 2 评论 0原文

我需要在DXL程序中输入密码。我已经看到有一些功能可以执行此操作(createPasswordDialogcresencypassworddialog有些),但是我感兴趣的是显示一个普通的对话框(<<代码>字段),但使用加密字符,也就是说,不要显示或显示典型的“*”。

有什么办法吗?感谢您的帮助

I need to enter a password in a DXL program. I have seen that there are some functions to do this (createPasswordDialog or confirmPasswordDialog are some), but what I would be interested in would be to show a normal dialog box (field) but with the encrypted characters, that is, not to show them or show the typical "*".

Is ther any way to do it? Thanks for the help

)

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

夏雨凉 2025-02-02 08:15:26

我还没有看到这一点 - 但是也许您可以使用Perm setTextChangecb,每次按键都会被触发 - 但是我认为只有在显示按压字符后才触发它。因此,您可以实现诸如“每次用户按键时,将其添加到存储的密码中,并用适当数量的星号替换字段本身的内容”(但是您必须为BackSpace键找到解决方案)

I have not seen this - but perhaps you can use the perm setTextChangeCB which will be triggered every time that a key is pressed - but I think it will be triggered only after the pressed character is shown. So you could implement a behaviour like "every time a user presses a key, add this to the stored password and replace the content of the field itself with an appropriate number of asterisks" (but you will have to find a solution for the backspace key)

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文