Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to close a TMultiview from code in Delphi XE8?

I have a form with a speedbutton linked to a TMultiView component. 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. 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

like image 382
Lars Ljungberg Avatar asked Oct 29 '25 18:10

Lars Ljungberg


1 Answers

Multiview.HideMaster will close the multi view. Call this whenever/wherever you want the multiview to close.

like image 61
ThisGuy Avatar answered Oct 31 '25 12:10

ThisGuy



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!