VBcoders Browse New Submit Contact Sign In

No account? Register free

Forgot password?

Docking and UnDocking of toolbar and other controls

Maks Agamir  (1 Submission)   Custom Controls/Forms/Menus   Visual Basic 3.0   Advanced   Wed 3rd February 2021

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

Rate Docking and UnDocking of toolbar and other controls (6(6 Vote))

Download Docking and UnDocking of toolbar and other controls

Docking and UnDocking of toolbar and other controls Comments

No comments yet — be the first to post one!

Post a Comment

0/1000 characters