Borland C++ Builder:某些 UI 事件不再可用?
我目前正在将旧代码从 Borland C++ Builder 5 移植到 C++ Builder XE(最新版本)。 XE 似乎不再支持很多属性和一些事件。反正大部分都已经被设置为默认值了,所以删除它们是没有问题的。然而,现在我遇到了以下问题:TPanels 不再提供 OnKeyUp 事件!这是为什么?我该如何解决这个问题? TPanel 上的 OnKeyUp 事件到底是如何工作的?
I'm currently porting old code from Borland C++ Builder 5 to C++ Builder XE (the newest version). There seem to be a lot of properties and some events that are not anymore supported in XE. Most of them have been set to default values anyway, so it was no problem to remove them. Now, however, I have encountered the following problem: The event OnKeyUp is not available for TPanels anymore! Why is that? How can I fix this? And how did an OnKeyUp event on a TPanel work anyway?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
OnKeyUp
事件仍然存在。一如既往,它在TControl
中受到保护。后代选择是否将其推广到公共/出版。这一点没有改变。TPanel
没有在 BCB5(或任何其他版本)中推广任何OnKey...
事件,因此我不知道您以前可以使用什么。The
OnKeyUp
event still exists. It is protected inTControl
, as it always has been. Descendants choose whether to promote it to public/published access. That has not changed.TPanel
did not promote any of theOnKey...
events in BCB5 (or any other version), so I don't know whay you could have been using before.