Change TFDGUIxLoginDialog Caption and Text/Icon?

huangapple go评论54阅读模式
英文:

Change TFDGUIxLoginDialog Caption and Text/Icon?

问题

In C++ Builder 11.3,在一个使用SQLite的TFDConnection上,我启用了LoginPrompt并将LoginDialog设置为我的数据模块上的TFDGUIxLoginDialog。我设置了一个新的自定义标题,但当我运行程序时,登录标题仍然是FireDAC Login

那里有一个图标和一个显示输入您的凭据的文本,我该如何更改它们?为什么自定义标题没有显示在登录对话框上?

此外,我假设这个特殊用途的对话框是安全的,不仅仅是在内存中传递密码并留下吗?

英文:

In C++ Builder 11.3, on a TFDConnection using SQLite I enabled LoginPrompt and set the LoginDialog to a TFDGUIxLoginDialog on my data module. I setup a new custom caption but when I run the program the login caption is still FireDAC Login.

There is an icon there and text that reads Enter your credentials, how do I change those? Why is the custom caption not showing on the login dialog?

Also, I presume this special purpose dialog is secure and not just throwing the password around and leaving in memory?

答案1

得分: 0

关于Caption无法正常工作的问题,似乎与IDE有关。当我退出IDE,删除了数据库,然后重新打开IDE时,它要求输入密码并显示了另一个对话框。数据库也被创建了。因此,在IDE中处于“Connected”状态时,它使用了自己的登录提示。一旦我禁用了它,我会得到一个新的提示,其中包含多个字段和我的Caption。我仍然不知道如何自定义其他项目。

英文:

On the issue of the Caption not working, it appears it was something to do with the IDE. When I exited the IDE, deleted database, and opened the IDE, it asked for the password with that other dialog. The database was also created. So when it is Connected in the IDE, it was using its own login prompt. Once I disabled that, I get the new prompt with multiple fields and my Caption. I still don't have the answer how to customize the other items.

huangapple
  • 本文由 发表于 2023年4月17日 02:36:45
  • 转载请务必保留本文链接:https://go.coder-hub.com/76029667.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定