例如,如何使用Delphi Onkeypress对时期进行更改

发布于 2025-01-25 19:40:33 字数 93 浏览 4 评论 0 原文

在程序仍在运行时,我需要在按下某个键后藏起来或消失。

我知道OnkeyPress方法无法真正更改图形项目,例如纹章,那么我可以为自己的情况使用其他其他方法吗?

I need to make a Timage item hide or disappear after a certain key is being pressed, while the program is still running.

I know that onKeyPress method can't really make changes to the Graphic items such like Timage, so is there any other alternative ways which I could use for my situation?

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

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

发布评论

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

评论(1

小兔几 2025-02-01 19:40:34

SET 键盘 true ,并为表单编写 onkeypress | down | up 事件,在其中隐藏该 timage

Set KeyPreview of the form to true and write an OnKeyPress|Down|Up event for the form, where you hide that TImage.

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