Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

EditView2如何让输入的字符变成大写 #65

Open
wfymqj opened this issue Mar 19, 2024 · 0 comments
Open

EditView2如何让输入的字符变成大写 #65

wfymqj opened this issue Mar 19, 2024 · 0 comments

Comments

@wfymqj
Copy link

wfymqj commented Mar 19, 2024

请问EditView2如何让输入的字符变成大写,就像TEdit的CharCase可以设置成ecUpperCase一样的效果。
我通过ChangeTracking事件可以实现,但我在FilterChar中设置为有效字符是‘0123456789ABCDEF’,造成的后果就是键盘输入小写的字母就无法触发ChangeTracking事件了。
在KeyDown事件中,我强制Shift=ssShift也没用,我测试时,只在特殊键按下才会触发,比如按下Enter。正常按下数字1时就不会触发此事件。
我的版本Delphi 11.3,上面的问题是针对安卓系统测试的。

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant