如何显示类似于Delphi XE工具提示代码洞察的工具提示或提示
我正在考虑想要实现一个工具提示,类似于 Delphi XE 在调试并将鼠标悬停在对象上时所做的方式。即,它打开一个带有 + 号的提示窗口,您可以展开等。
我正在尝试创建一个提示窗口,当将鼠标悬停在控件(例如按钮)上时,该窗口将显示项目列表(例如)让用户单击一个项目,然后我可以根据他们选择的项目执行某些操作。
是否有任何组件可以做到这一点?或者我最好只是创建一个无边框表单并使用鼠标事件处理显示/隐藏自己?
谢谢杰森
I'm looking at wanting to implement a tooltip similar to the way Delphi XE does when you're debugging and you hover over an object. ie, it opens up a hint window with + signs which you can expand etc.
I'm trying to create a hint window which will show a list of items (for example) when hovering over a control (such as a button) which will let the user click on an item and I can then do something based on the item they've selected.
Are there any components out there that might do that already? Or am I better of just creating a borderless form and handle the showing/hiding myself with mouse events?
Thanks
Jason
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我知道有提示组件带有嵌入的html。所以你可以在你的提示中拥有一种 html 树视图!
我认为这对你来说是一个解决方案。
I know there are hint components with embedded html. So you can have a kind of html treeview inside you hint!
I think it is a solution for you.