Important alert: (current site time 7/16/2013 2:47:46 AM EDT)
 

winzip icon

VbEclipse Version 1.0 Final (docking MDI solution) - Updated: 01/09/2007

Email
Submitted on: 1/9/2007 3:54:34 PM
By: AB-Software  
Level: Advanced
User Rating: By 83 Users
Compatibility: VB 6.0
Views: 41359
(About the author)
 
     The VbEclipse project is a Visual Basic 6.0 implementation of the Eclipse perspectives. It provides a high flexible and complete configurable docking MDI solution with a nice user interface. FEATURES: + Multiple Perspectives + Tabbed Views + Drag & Drop Support + Maximize and Restore Views / Editors + Windows XP Schemes (Classic, Metallic, HomeStead, Normal) + Custom Color Scheme Support by IScheme Interface + Floating Views + Auto hide tab navigation buttons + Disable tab navigation buttons + * * * * * P L E A S E V O T E * * * * *

 

Windows API/Global Declarations:

Can't Copy and Paste this?
Click here for a copy-and-paste friendly version of this code!
'**************************************
'Windows API/Global Declarations for :VbEclipse Version 1.0 Final (docking MDI solution) - Updated: 01/09/2007
'**************************************
Private Sub Form_Load()
 
 With Me.ucPerspective1
 
 ' Set the handle of main window 
 .MainHwnd = Me.hWnd
 
 ' Register the views
 .AddView "Favorites", frmViewFavorites
 .AddView "History", frmViewHistory
 .AddView "Console", frmViewConsole
 
 ' Perspective without an editor area
 With .AddPerspective("OnlyViews")
 
 ' Add new folders with views
 With .AddFolder("Project_Folder", vbRelLeft, 1, .ID_EDITOR_AREA)
 .AddView "Project"
 .AddView "Objects"
 .ActiveViewId = "Objects" ' Set objects view as active view
 End With
 With .AddFolder("Properties_Folder", vbRelRight, 0.7, "Project_Folder")
 .AddView "Properties"
 .AddView "Help"
 .ActiveViewId = "Help"
 End With
 With .AddFolder("Console_Folder", vbRelBottom, 0.7, "Properties_Folder")
 .AddView "Console"
 .AddView "Tasks"
 .AddView "Code"
 .ActiveViewId = "Tasks"
 End With
 
 ' Set the perspectives active view
 .ActiveViewId = "Project"
 
 ' Hide the editor area
 .EditorAreaVisible = False
 
 End With
 ' Create a browser perspective
 With .AddPerspective("Browser")
 
 ' Add favorites left to the editor area
 With .AddFolder("Left_Folder", REL_LEFT, 0.3, .ID_EDITOR_AREA)
 .AddView "Favorites"
 End With
 ' Add history bottom to favorites
 With .AddFolder("Left_Bottom_Folder", REL_BOTTOM, 0.5, "Left_Folder")
 .AddView "History"
 End With
 ' Add console bottom to editor area
 With .AddFolder("Bottom_Folder", REL_BOTTOM, 0.7, .ID_EDITOR_AREA)
 .AddView "Console"
 End With
 
 ' Show the editor area
 .EditorAreaVisible = True
 
 End With
 
 ' Display the browser perspective 
 .ShowPerspective "Browser"
 
 End With
 
End Sub
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 4 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

2/2/2005 4:58:30 AMLight Templer

Plz tell me:
Whats the final goal of this?
A substitute for the VB IDE?
Thx
LiTe
(If this comment was disrespectful, please report it.)

 
2/2/2005 8:32:29 AMRECTUM OF ANAL

i don't understand this. if i dragout the form it freezes
(If this comment was disrespectful, please report it.)

 
2/2/2005 11:21:40 AMDan Redding - Blue Knot Software

If I move Project, Objects, Properties and Help all to floating windows, and then change to 'Browser Perspective', the floating windows turn into grey blocks. If I then remove both Object & Help from the window, sometimes the space is not reclaimed by the main window, there is just a grey 'placeholder' block there. Also, I sometimes get a 'object variable not set' error.

If I can figure out how to reproduce this consistently I will let you know.
(If this comment was disrespectful, please report it.)

 
2/2/2005 3:37:10 PMAB-Software

This is a big bug on handling the floating windows. I will fix it in the next update. Thank you for reporting this Dan!
(If this comment was disrespectful, please report it.)

 
2/2/2005 4:11:53 PMAB-Software

Hi LiTi,

at work I'm developing Java with the open source Eclipse 3.0 IDE (see www.eclipse.org). This IDE works with perspectives, which gives the developer different views on his source.

If the developer is simply coding Java, he will do this in the java perspective. This perspective has some views like project explorer, tasks, ...

But if you are debugging the source, Eclipse switches to the debug perspective. Here you can see other views like breakpoints, variables or the running tasks.

The user will automaticly see only the views he needs for his current work.

Cause I like this concept, I was inspired to implement this possibility for Visual Basic developers.

And this is also the final goal for this project.

But you can do more with this Control than just create IDE apps. I work on a better example application to show how to use VbEclipse.

Thanks for your interest on my work.

PLEASE VOTE IF YOU LIKE IT :o)
(If this comment was disrespectful, please report it.)

 
2/3/2005 7:51:51 AMDan Redding - Blue Knot Software

Interesting; I thought you were trying to recreate the VS.NET IDE. Guess I know where MS got their ideas now...
(If this comment was disrespectful, please report it.)

 
2/3/2005 8:07:13 AMDan Redding - Blue Knot Software

In the new version, if I perform the sequence above, I no longer get the floating blocks when switching perspectives. But after switching, I got the object variable not set error on floating the Objects window. On repositioning the floating window the error popped up a few more times - at first the former position of the objects window was gray block, but after clicking OK to the errors there was main window underneath. Oddest of all was that the help window retained its original size instead up expanding upwards, making an L-shaped work area in the main window.
(If this comment was disrespectful, please report it.)

 
2/3/2005 9:10:07 AMAB-Software

A new bug = a new challenge :-)
I promise to fix this in the next update!

Thanks for your comments Dan!
(If this comment was disrespectful, please report it.)

 
2/3/2005 9:43:32 AML. M. Trivette

I love to write MDI applications and this is a great tool to use. 5 Globes from me
(If this comment was disrespectful, please report it.)

 
2/3/2005 11:28:56 AM

***** from me!
(If this comment was disrespectful, please report it.)

 
2/3/2005 12:28:25 PMMatthias Zirngibl

Great one!

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

 
2/3/2005 12:32:31 PMjames kahl

very interesting project, lots of useful stuff in here, could use more comments though. I m currently working on something that more closely mimics the VB IDE, but this gives me some useful ideas for other projects. 5 from me. Well done.
(If this comment was disrespectful, please report it.)

 
2/3/2005 3:28:13 PM[rm_code]

finally some competition to the TabDock control, excellent :)

1) Difficult to explain this in english:
Gäbe es eine Möglichkeit, "ungedockte" Fenster auch in der Mitte, nicht nur außerhalb des Hauptfensters zu positionieren?
im Moment kehrt der Maus-Cursor ja einfach in den Normalzustand zurück,
wenn man ein Childfenster über das "unmagnetische" Gebiet zieht.

2) when scrolling in a tabstrip,
it shows the form behind the tab,
but not the tab ;)
(If this comment was disrespectful, please report it.)

 
2/3/2005 4:05:44 PMAB-Software

Gut zu hören, dass noch jemand seine kleinen Problemchen mit seinem englisch hat...

1) In the next version I will implement creating a floating window if you want to drop a view on the middle of the editor area. Current
version does nothing if you try to do this.

2) Thanks for this hint. I will write this on the todo list ;)

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

 
2/4/2005 7:25:44 PMzoom

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

 
2/4/2005 8:26:55 PMAB-Software

Nice to hear, zoom ;)

PLEASE VOTE if you like it
(If this comment was disrespectful, please report it.)

 
2/4/2005 11:04:48 PMXeon Productions

I like seeing you so determined at this project. You seem to really be pouring your heart and soul into this project. So 5 globes from me.
(If this comment was disrespectful, please report it.)

 
2/5/2005 2:41:23 PMJ. Berz

All ***** from me!!!
(If this comment was disrespectful, please report it.)

 
2/5/2005 4:57:12 PMPhred

I have looked through the documentation but cannot find anything about perspectives.
I keep getting the error:No active perspective!
What am I missing?
(If this comment was disrespectful, please report it.)

 
2/5/2005 5:07:59 PMAB-Software

Hi Phred,
I don't know when you get this error. Please describe me what want to do.

But I think that you get this error cause you don't call the ShowPerspective() method. Please look at the exsample above.

Hope I could help you...
(If this comment was disrespectful, please report it.)

 
2/5/2005 9:52:35 PMPhred

Just opening and running the "VbEclipse_VbDocExample.vbg" file. At first glance the form_load for frmMain looked similar to the above example. I will take a closer look.
(If this comment was disrespectful, please report it.)

 
2/6/2005 11:03:24 PMHeriberto Mantilla Santamaría

This program is wonderful, very but very good work. *****.
(If this comment was disrespectful, please report it.)

 
2/7/2005 3:02:15 AMStefan Schermer

Amazing%2C+5+from+me+for+the+good+project+and+the+much+time+you+have+spend+on+this%2C+go +on%21
(If this comment was disrespectful, please report it.)

 
2/7/2005 11:42:15 AMMr Snerf

Doing great with 0.898 so far. Another small suggestion, double clicking a caption bar should "undock" a window and make it floating, this would be very handy. Keep up the excellent work.
(If this comment was disrespectful, please report it.)

 
2/7/2005 11:54:37 AMTheAlas

Yeah, one more subclassing stuff... I would never use it in commercial app. But if u need something so badly (e.g. docking with dumb vb forms) I guess its the only solution.
It have some bugs, but in some xxx version it will work great (except subclassing).
Code is written very good (only 3.5k code, excluding useless parts probably waiting for next version).
I dont thing u should use [] brackets in enums, it only makes stuff harder.
And never use too many vb components in your COM component, they are activex as well (dumb vb controls, just as vb forms) and they slow down your control BADLY.
And, nice cpp-style coding ;), too bad vb has that wretched code auto-formatting so u cant organize the code.
5 olives from me, I hope u will win this month.

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

 
2/7/2005 12:52:33 PMLight Templer

Starkes Teil!
Hätte mich nicht getraut so was in Angriff zu nehmen! (Und ich hab schon 3 mal so grosse Apps mit VB gebastelt ;) )
Was ich mir nicht so richtig vorstellen kann ist, dass man es dazu benutzen kann eine der MS VB IDE überlegene IDE zu basteln. (Muss ja aber auch nicht sein!) Dafür sind einfach zu viele Funktionen ohne Schnittstellen (leidgeprüfter AddIn Entwickler ;) ) . Den Debug Mode mit Änderungen
(If this comment was disrespectful, please report it.)

 
2/7/2005 12:54:37 PMLight Templer

... hat MS ja (bis jetzt) noch nicht mal in vb.net hinbekommen.
Viel Erfolg mit dem Teil - hat gute Chancen auf Code des Monats!
Grüße
LiTe
(If this comment was disrespectful, please report it.)

 
2/8/2005 6:50:48 AM[rm_code]

on a pentium II 500 mhz and win 98 it runs kind of slowly :) (win xp didn't want to boot anymore...), but again, a nice update.
just those tabs... ;)
(If this comment was disrespectful, please report it.)

 
2/8/2005 10:27:35 AMPhred

The sample now runs and I can see what everyone is raving about! 5 from me.

Very, very nice!
(If this comment was disrespectful, please report it.)

 
2/8/2005 1:16:48 PMrBg

You know, after browsing your samples of the work you submitted as opensource, if I were you I would rethink what you said and just be happy he shared such nice code with your simple mind.

5 balls from me and ignore the m0nkeys like that around here.
(If this comment was disrespectful, please report it.)

 
2/9/2005 4:53:53 PMMr Snerf

When adding new tabs to the tabStrip, it always makes the last tab you added as current, how can you set another tab, or even the 1st tab in the tabstrip, to current/default.
(If this comment was disrespectful, please report it.)

 
2/11/2005 11:40:02 AMAB-Software

Thx to Richard V. for his single ball voting!!! But he didn't tell me why the code is so poor :(

I have worked hard on this project the last two months and I want to thank you all for your great votings and your helpful comments. That was a really great motivation for me !!!

Thx to you all :o) !!!
(If this comment was disrespectful, please report it.)

 
2/11/2005 11:17:38 PMHeriberto Mantilla Santamaría

To Light Templer

Please if it's not a trouble you might place in English the commentaries that you put in your language.

I would be grateful for it to you.
(If this comment was disrespectful, please report it.)

 
2/19/2005 2:46:14 AM

I set the perspective width to 10250, a folder and 6 view, then a tab will be cut of hal displayed and some else dissapear, it still work but annoying, i think it would be nice if u add some routine to make the tabstrip on the rect. focus.
anyway this code is still great..but i only can give u 4 globe, i wait for the next update. ..excellent code, great job
(If this comment was disrespectful, please report it.)

 
2/22/2005 7:51:40 AM

Excellent. Easily worth *****.
(If this comment was disrespectful, please report it.)

 
2/22/2005 9:02:24 AMPhred

Still has the "no perspective" problem on my XP sp2 but works great on Win 2K. For some reason, on Win 2K it seems to be forgiving when no perspective is found while initializing the perspective control. I wish I could give you more help than my emails with some of my troubleshooting. This is a very nice set of controls and I would like to use them.
(If this comment was disrespectful, please report it.)

 
2/22/2005 12:24:32 PMAB-Software

Hi Phred,

I have developed the VbEclipse control on WinXP SP2 and it works on my system.

Can you give me a better description of your problem? What is about your perspective layout? How many folders do you add? Does the included "simple example" run correct? Please tell me the complete error message occured.
(If this comment was disrespectful, please report it.)

 
2/22/2005 5:50:02 PMPhred

Hi AB,

It is the same problem as above on 2/5. The same as what I emailed you about the on error routine allowing it to work on 2K but was not in affect on XP.

The basic problem being (while running your included sample) that while the perspective control is being initialized at the very beginning, I get an error - "No active perspective!" If you look, that is actually your error in the control code. This is way before it even get to any of the form code.

On my Win 2K, the initialization does not cause a problem.
(If this comment was disrespectful, please report it.)

 
2/24/2005 3:09:37 PMGregg Housh

To AB-Software, I was wondering if anything was implemented yet for restoring the last state of the perspectives?
I write CryptIM (havent for awhile now but I am in the mood to do a lot more work on it.) View it and a screenshot here http://www.planetsourcecode.com/vb/scripts/ShowCode.asp?txtCodeId=50613&lngWId=1

Look
at that screenshot of the server. I think vbEclipse could replace my user interface and it would allow the server administrators to lay out the information they want to see in the way they want to see it. I was just wondering if any simple "save current state of all windows and restore on next startup" feature was in any way implemented?
(If this comment was disrespectful, please report it.)

 
2/24/2005 6:59:06 PMAB-Software

Hi Gregg,

this feature is still on my todo list. It will be implemented in one of the next updates.

CryptIM looks really nice and I would be pleased if you could use VbEclipse ;)

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

 
2/25/2005 3:51:15 PMGregg Housh

I am getting this error when I try and run my little project I made to try out a vbEclipse based project from scratch: control 'com_ab_software_ui_editorarea' not found

Any ideas what this is?
(If this comment was disrespectful, please report it.)

 
2/25/2005 5:14:55 PMGregg Housh

Its because I had this commented out:
.EditorAreaVisible = True

Here is the issue. I dont want an "editor" area. I want it to all be views. Can I do that? I dont want the gray background area of a blank editor to show up at all. I just want views.
(If this comment was disrespectful, please report it.)

 
2/25/2005 10:00:48 PMAB-Software

Hi Gregg, I will upload the next update this weekend. The bug (EditorAreaVisible = False) will be fixed then...
(If this comment was disrespectful, please report it.)

 
2/26/2005 1:30:25 AMGregg Housh

Awesome, glad to see you are working so much on this. It is a great project. Looking at my mockup so far I am really going to like the cryptim server once its all ported over to this new interface.
(If this comment was disrespectful, please report it.)

 
2/26/2005 10:51:28 PMGregg Housh

Now that I can hide the editor area, what do I set the refid to on AddFolder instead of .ID_EDITOR_AREA? Since it is still set to that all the views and folders are maximized and dont show up how I want them.
(If this comment was disrespectful, please report it.)

 
2/27/2005 8:38:17 AMAB-Software

Only the first folder should refer to the .ID_EDITOR_AREA. Each other folders should use another folder id to refer.

I add an example called "OnlyViews" to the code example above. Hope this will help you.
(If this comment was disrespectful, please report it.)

 
2/27/2005 10:34:25 AMGregg Housh

Thanks for all the help. I really appriciate it.
(If this comment was disrespectful, please report it.)

 
2/27/2005 10:46:58 AMGregg Housh

Have you given any thought to including some other controls in this? Such as a button control (like lvButton by LaVolpe maybe,) that matches the scheme you have set for the perspective its in.
(If this comment was disrespectful, please report it.)

 
2/27/2005 11:55:29 AMGregg Housh

ViewCaptionIcons = False is not working correctly. All the tabs and captions still have the icons from the forms. Is there a way to turn that off? or a way to have it scale the icons down since they are too big and look wierd.

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

 
2/28/2005 4:32:26 AM

Hi Andy
Hope u win, 4 such excellent work.
***** big ones from me.
(If this comment was disrespectful, please report it.)

 
3/11/2005 5:03:14 AMHappy Lobster

Excellent code :)
This great *****
(If this comment was disrespectful, please report it.)

 
8/6/2005 9:48:05 AMLaurence

Andreas, Nice job. I can see all the work you've put into this. The code is good, the code formatting is excellent. I have had a few freezes with docking, but I have no doubt you'll work it out.
(If this comment was disrespectful, please report it.)

 
8/7/2005 9:07:17 AMjavier alvarez

This is great. 5 start from me.
(If this comment was disrespectful, please report it.)

 
9/11/2005 2:32:08 AMenmity

i put several controls in a form, add it to the Perspective, but press "Tab" key, no focus within the controls, where is my tab key?
(If this comment was disrespectful, please report it.)

 
12/30/2005 9:54:31 PMdarkoverlordofdata

I very much like vbEclipse, it is most excellent. I was using tabdock, but this cleaner looking, leaves no artifacts ont he screen, and is much more integrated with the editing environment, and besides, tabdock is old and seems rather unsuported.
I am wondering, though about support for vbEclipse- no update for almost a year, and I posted a bug on the a-b website a few weeks ago, and there is no reply.
Here is what I find to be 'buggy' - when a view is closed, and then re-opened, it doesn't reopen in the same folder it was in, it re-opens on the last folder created. This is documented in the code, so it seems by design, but it is not ecplipse type behavior (nor visual studio or anything else i've used). I have modified my copy of vbEclipse to correct this, but I wonder if others find this 'design feature' as undesirable as I do. It would be great if feedback could be incorporated back into this project.
(If this comment was disrespectful, please report it.)

 
1/25/2006 9:02:32 AMJefe - Boss

Absolutely love the code!! It's beautiful! But I'm running into issues. I have compiled it into an OCX and referenced it in a project. When using it, every other run in the IDE shows all the windows with black backgrounds. Every other time the title bar do not appear correctly and I'm given one extra View that I did not invoke. Can you assist me or do I just need to add it in after the fact? This also happens when I compile the entire project and run outside the IDE. Thanks!
(If this comment was disrespectful, please report it.)

 
2/19/2006 7:08:41 AMIan Webling

Lots of resources missing running under Win2K. Crashes regularly (might be resource related).
(If this comment was disrespectful, please report it.)

 
2/20/2006 7:31:19 AMfrostbyte2k2

As i Can see on your screenshoot, it's a good component... But i have an error when i try to use this activex with your projects. it's concerning the VIEW_LIST_INACTIVE which can't be found
(If this comment was disrespectful, please report it.)

 
2/20/2006 5:39:31 PMHeriberto Mantilla Santamaria

Nice update.

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

 
2/26/2006 10:20:45 PMThabo

Hi AB-Software
Thank U for updating and better then ever. GBU. 5*
(If this comment was disrespectful, please report it.)

 
4/29/2006 1:00:57 AMSpector

Is is possible to make a folder non-resizable? (can only be moved)
(If this comment was disrespectful, please report it.)

 
6/29/2006 1:25:30 AMIVan

What a Great Code * * * * *
(If this comment was disrespectful, please report it.)

 
9/7/2006 3:44:15 PMNikola

This code is very exelent.
(If this comment was disrespectful, please report it.)

 
9/12/2006 1:45:14 PMHeriberto Mantilla Santamaria

This's version is amazing, I put some new properties in this, I can send you this changes?
(If this comment was disrespectful, please report it.)

 
10/19/2006 11:39:08 PMHALIM

Ab - Software

without seeing your code I've rated
your code as an excellent code

I know that you've workedout to make that and I just see in screenshot as a good look one... not tired to see
(If this comment was disrespectful, please report it.)

 
11/15/2006 7:14:23 PMHeriberto Mantilla Santamaria

I upload this great code in this URL with small changes and new properties http://www.fileupyours.com/files/43706/VbEclipse%201.0.rc5.zip
(If this comment was disrespectful, please report it.)

 
3/22/2007 2:59:25 PMMetano

This is the best docking i have seen on vb... Pretty good!
(If this comment was disrespectful, please report it.)

 
9/19/2007 1:26:19 PMJakeBullet

Really good!!! Amazing!!!!
(If this comment was disrespectful, please report it.)

 
12/22/2008 5:19:34 AMWindows VLx

it is perfect :) thank you.
it is very clover.
(If this comment was disrespectful, please report it.)

 
3/23/2009 10:58:18 PMNullstring

any chance of porting this to .NET version? most likely, C#?
(If this comment was disrespectful, please report it.)

 
10/23/2009 6:21:08 PMMEE_SS

http://www.fileupyours.com/files/43706/VbEclipse%201.0.rc5.zip

--NO MORE FILES--
(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.