Event to dock after ManualFloat?

I was reading the FAQ samples on the site and found the "make panel floating" very handy:

http://www.tmssoftware.com/site/tips.asp?s=faq&show=358

Just one question as I cannot get this solved after looking and GUI spying for some time now: how do I dock this panel again when I click the [X] close button on the floating panel? The panel is off the panel tab when floating, it is not destroyed. Cannot find a method to hook into now for docking instead of closing / hiding.

Thanks, Matthias

When the floating panel is destroyed, the toolpanel is destroyed. So, if you'd want to make it visible again, you'd have to recreate it again and insert it i the TAdvToolPanelTab.