Important alert: (current site time 7/16/2013 3:01:09 AM EDT)
 

winzip icon

TabDock Version 2.4

Email
Submitted on: 4/1/2003 3:09:04 PM
By: Stewart  
Level: Advanced
User Rating: By 45 Users
Compatibility: VB 5.0, VB 6.0
Views: 23669
(About the author)
 
     Update: Thanks to neal who added the support for the maximize like button which makes the docked window maximize along with titlebar appearing on the side on top/bottom windows. TabDock is designed to provide Docking support similiar to that seen in Visual Basic itself, VC++, and a number of other programs available on the market today. It was originally written by Marclei V Silva and though an excellent control it was somewhat on the buggy side and was missing a number of features. This version has many of the desired features and all the known bugs have been worked out of it. It also directly incorperates the ssubtmr.dll from vbaccelerator so it is no longer a seperate requirement. New titlebar drawing methods are offered as well to give you options on how titlebars are drawn, and bottom/top docking is done side by side instead of on top of eachother. Also a persistant option is included which allows the tabdock control to automaticly load it's saved state up for you. It saves it even if the persistant state is off but will only read it and use it if the persistant state is on. It uses the registry. Comments are welcome, and appreciated. You may modify and repost this code. The original author gave myself and Neal permission and the same permission is extended from us to you. This code is fairly advanced, and uses a lot of subclassing to achieve it's effect. Please note it is not recomended you close the IDE while running this through the IDE, it will likely crash if you do. Anyway enjoy :)

 
winzip iconDownload code

Note: Due to the size or complexity of this submission, the author has submitted it as a .zip file to shorten your download time. Afterdownloading it, you will need a program like Winzip to decompress it.Virus note:All files are scanned once-a-day by Planet Source Code for viruses, but new viruses come out every day, so no prevention program can catch 100% of them. For your own safety, please:
  1. Re-scan downloaded files using your personal virus checker before using it.
  2. NEVER, EVER run compiled files (.exe's, .ocx's, .dll's etc.)--only run source code.
  3. Scan the source code with Minnow's Project Scanner

If you don't have a virus scanner, you can get one at many places on the net including:McAfee.com

 
Terms of Agreement:   
By using this code, you agree to the following terms...   
  1. You may use this code in your own programs (and may compile it into a program and distribute it in compiled format for languages that allow it) freely and with no charge.
  2. You MAY NOT redistribute this code (for example to a web site) without written permission from the original author. Failure to do so is a violation of copyright laws.   
  3. You may link to this code from another website, but ONLY if it is not wrapped in a frame. 
  4. You will abide by any additional copyright restrictions which the author may have placed in the code or code's description.


Other 15 submission(s) by this author

 


Report Bad Submission
Use this form to tell us if this entry should be deleted (i.e contains no code, is a virus, etc.).
This submission should be removed because:

Your Vote

What do you think of this code (in the Advanced category)?
(The code with your highest vote will win this month's coding contest!)
Excellent  Good  Average  Below Average  Poor (See voting log ...)
 

Other User Comments
4/1/2003 4:11:26 PM

Why is this coming up as an .3 file instead of a zip?
(If this comment was disrespectful, please report it.)

 
4/1/2003 4:12:51 PMAckbar

I'll reupload it but if you want just rename it to tabdock23.zip or something like that. It's cause it was tabdock2.3.zip so psc bugged it and just put 2.3. Sorry bout that.
(If this comment was disrespectful, please report it.)

 
4/2/2003 3:10:24 AMJ. Rostek

Cool Code 5 from me :-)
(If this comment was disrespectful, please report it.)

 
4/2/2003 3:14:20 AMAckbar

Glad you like it :)
(If this comment was disrespectful, please report it.)

 
4/2/2003 5:47:49 AMWill Barden

Great :)
(If this comment was disrespectful, please report it.)

 
4/2/2003 8:49:59 AMMichael Canejo

Very nice code mate. I hope others will stop being lazy and vote while it downloads. Any vote is better than none. 5 globes from me.
(If this comment was disrespectful, please report it.)

 
4/2/2003 3:03:09 PMAckbar

Happy everyone likes it. Any suggestions feel free.
(If this comment was disrespectful, please report it.)

 
4/2/2003 11:24:40 PMPete {vbAVI}

You've submitted a lot of great code in the few years I've been using this site! Thanks and best wishes!
(If this comment was disrespectful, please report it.)

 
4/3/2003 4:51:46 AMZhu JinYong

Try to draw Caption bar on left or right side for bottom docked Windows with "Close" button.It will be great.
(If this comment was disrespectful, please report it.)

 
4/3/2003 4:53:16 AMAckbar

That is one thing I've wanted to impliment but not been able to figure out. Neither has neal. No available documentation that I can find on how to pull it off. Anyone know anything?
(If this comment was disrespectful, please report it.)

 
4/3/2003 5:14:54 AMAckbar

Alas the one thing I do know is that part of the reason this can become difficult is because most docking utilizes a more frame method where as this is more litterly docking the forms to the mdi window instead of a frame. But... Maybe set the form to just plane borderless and different method of how it is placed in it's picturebox and draw a titlebar on the picturebox. Not sure how hard that would be.
(If this comment was disrespectful, please report it.)

 
4/4/2003 1:37:18 AMAckbar

Vince if you see this would appreciate suggestions to improve it. Votes are nice and all but fairly meaningless to me. I prefer a comment for why you think what you think. An excellent or good I suppose requires no comments as it obviously emplies they are happy with it as is. But average implies you want something improved and I'd love to but you gotta tell me what.
(If this comment was disrespectful, please report it.)

 
4/4/2003 2:52:42 AM

If anyone is interested I have now changed the Tabdock control to draw the caption bar on the left side of forms docked at the top and bottom. Also I have implemented a collapse property (i.e. if you click on a button on the docked window it will collapse any other window docked and make itself full size)

I can forward the code to Ackbar for update on the site if enough people want it.

(If this comment was disrespectful, please report it.)

 
4/4/2003 2:54:43 AMAckbar

I would appreciate that myself. Would be quite interesting to see. Who wrote that message though. Your name appears invisible :)
(If this comment was disrespectful, please report it.)

 
4/4/2003 3:04:58 AMAckbar

Ah Neal nice to hear from you. Havn't talked in a while. I'd really very much like to see your improvments. Your awesome as a coder :)
(If this comment was disrespectful, please report it.)

 
4/4/2003 8:18:24 AMDylan Morley

There's a simple bug in one of the Gradient OLE color properties, The Property Get for Gradient2 refers to Gradient1 & doesn't return a value...!
(If this comment was disrespectful, please report it.)

 
4/4/2003 11:38:22 AMPhantom Man

To The Person Thats Changed The Code To Implement Collapsing.

If You Truely Have Changed The Code Give It To Ackbar so He Can Implement It.

I Also Would Like to See It.

It Would Make The Control - Even Better Than It Is!

Regards
Phantom Man!


(If this comment was disrespectful, please report it.)

 
4/4/2003 7:30:19 PMAckbar

He sent it to me and I will update it in about 15-20 mins. Just about to go eat dinner then your welcome to it. It was in fact neal rushforth who did it also responsible for a number of the changes :)
(If this comment was disrespectful, please report it.)

 
4/5/2003 2:16:31 PM

Hope everyone likes the additional changes to Tabdock I have made. Any problems don't hesitate to email.
(If this comment was disrespectful, please report it.)

 
4/6/2003 4:02:12 AMMatthias Zirngibl

Wheeeeeeee
This is GREAT!

Thank You and 5 from me
(If this comment was disrespectful, please report it.)

 
4/6/2003 4:03:39 AMMatthias Zirngibl

Is it possible to disable the close button of the docking windows?
(If this comment was disrespectful, please report it.)

 
4/6/2003 4:04:24 AMAckbar

Not atm but that wouldn't be to hard to impliment.
(If this comment was disrespectful, please report it.)

 
4/6/2003 4:17:57 AMMArio Flores G

Never used before..cant make it to work..something is wrong with one missing reference or something..HELP :(

(If this comment was disrespectful, please report it.)

 
4/6/2003 4:22:52 AMAckbar

What missing refrence? You did open the project group not one of the projects correct? Then you just run the default project which is the demo and shows how to make use of everything. If you want you can then compile the control from the controls project and make use of it in your own apps. Enjoy :)
(If this comment was disrespectful, please report it.)

 
4/9/2003 12:55:14 PMPhantom Man

Ackbar

If Your Interested I Have Made an Update To TabDock.

The Following Has Been Added Or Ammended:

My Version Of TabDock Now Has New Properties - HasCloseButton and HasMaxButton.
Enabling The User To Display The Max Only Button Or The Close Only Button Or Optionaly Both Or None.

If The Docked Form Has The Close Button Property Is Set To False The Form When Floating Has The Close Button Disabled!

The Splitter Bar Is Improved.
Gripper Bar Placement Has Been Improved

Plus More!!

If You Want It Email Me Your Email Address And I Will Send It To You!

Regards
Phantom Man
gwnoble@msn.com


(If this comment was disrespectful, please report it.)

 
4/9/2003 9:46:26 PM

Cool code but was wondering how one would get rid of the close button when docked but it appears when it is undocked as if it were a dockable toolbar/toolwindow
(If this comment was disrespectful, please report it.)

 
4/26/2003 8:31:30 AMPeter Wilson

5* from me because you got gazumped by NR/GN.
(If this comment was disrespectful, please report it.)

 
4/28/2003 10:17:14 PMSpodii

5 *****! W00t Ackbar! The CREATOR! =P
(If this comment was disrespectful, please report it.)

 
4/29/2003 5:55:10 PMLlama Boy

I have yet to use it, but from what I've read, I cant wait.
(If this comment was disrespectful, please report it.)

 
7/15/2003 1:10:48 PM

Hope you are still monitoring this, i have noticed even in the screen shot that the forms aren't drawn correctly. Their headers are overdrawing the top part of the form making the form look bad. I have run through the code for the past couple of hours but i was unable to find a solution that worked.
(If this comment was disrespectful, please report it.)

 
7/15/2003 2:48:12 PMCarl Bartlett

Sorry last one my name didn't come through... any another question, is there a way to detect the placement of the forms such that you could control where the form went in the position. currently the selected form always goes to the end... it would be better if the form found where it was released and inserted or moved it self accordingly...
(If this comment was disrespectful, please report it.)

 
7/15/2003 2:51:32 PMCarl Bartlett

Finally i just noticed that the forms have information and also don't have the window buttons only the close buttons... is there something i did wrong?

(If this comment was disrespectful, please report it.)

 
9/15/2003 12:50:18 AMillWill

Ive seen this same submission on www.sourceforge.com but not as updated!! Also i have not used this one yet but been interested in finding something as nice so i wouldnt have to reinvent the wheel n all :) TY for sharing your work here. Also www.visualbasicforum.com would be a good place to drop a link to your code. They have alot of examples there for docking forms in a MDI but none this good IMHO!
(If this comment was disrespectful, please report it.)

 
10/15/2003 2:21:17 PMJeremy

I got the same error as MArio but I compiled the control and that seems to have solved that problem but I found that the objects in the docked window are painted over the caption, and I got another error when I tried the control out in one of my projects I have a single toolwindow Docked to the right with a toolbar in that form I thought the Toolbar didn't redraw correctly but when I click the raised edge at the bottom your control crashed and could recover. Now the I can't view the MDIform with the control. Error 0 is displayed by your control and after I get System Error &H800401F7 (-147221001)
Any thoughts Did I do something wrong?
(If this comment was disrespectful, please report it.)

 
8/2/2009 1:41:22 PMC0113c70r

I've tried for an hour to get this to work. No luck. Too many references to missing components and forms.
(If this comment was disrespectful, please report it.)

 

Add Your Feedback
Your feedback will be posted below and an email sent to the author. Please remember that the author was kind enough to share this with you, so any criticisms must be stated politely, or they will be deleted. (For feedback not related to this particular code, please click here instead.)
 

To post feedback, first please login.