by Maks Agamir (1 Submission)
Category: Custom Controls/Forms/Menus
Compatability: Visual Basic 3.0
Difficulty: Advanced
Date Added: Wed 3rd February 2021
Rating:
(6 Votes)
Update----------------------------------------
This is an improved version of previos DLL. Now it handles child controls of the container control which is being undocked, plus I've fixed the problem with changing focus. Also I've included test project so you can see how it is suppose to work.
Old ---------------------------------------------
This class allows to undock any control on the form and drag it around. Furthermore, during Undocked state events will be still received at the same place. It is an emulation of the Microsofts abilities to undock panels (ex VB Properties and Toolbar)
Inputs
There is methods which requires parameters to be passed to it. It is handle to the objects which is being undocked, Caption for the undock form and
position.
Assumes
It is a self contained Dll, it sould not be required to do any programmimng to undock the control.
Side Effects
It can be a little tricky when dealing with buttons controls. One more thing do not put container object within the container object.
For example frame1 and then frame2 inside of
frame1 and then try to undock frame1, because you will have slight glitches with controls on the frame2
Download Docking and UnDocking of toolbar and other controls (8 KB)