简体   繁体   English

如何从Delphi XE8中的代码关闭TMultiview?

[英]How to close a TMultiview from code in Delphi XE8?

I have a form with a speedbutton linked to a TMultiView component. 我有一个带有与TMultiView组件链接的速度按钮的表单。 On the multiview I have some buttons. 在多视图上我有一些按钮。 When clicking on any of the buttons I want the multiview to close and depending on the clicked button, different functions to be called. 单击任何按钮时,我希望多视图关闭,并根据单击的按钮,调用不同的功能。 I have tried to set the Visible property of my MultiView to false, but the shadow over the form then remains. 我试图将MultiView的Visible属性设置为false,但表单上的阴影仍然存在。 If I click on the speedbutton again, then menu disappears, and also the shadow, as expected. 如果我再次点击速度按钮,则菜单会消失,阴影也会如预期的那样消失。 Is there a way to solve this? 有办法解决这个问题吗?

I'm using Deplhi XE 8.1 我正在使用Deplhi XE 8.1

Multiview.HideMaster will close the multi view. Multiview.HideMaster将关闭多视图。 Call this whenever/wherever you want the multiview to close. 无论何时何地,您都希望关闭多视图。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM