BUG with EnableGroup in VB6 |
Post Reply |
Author | |
checksandy
Groupie Joined: 17 May 2010 Status: Offline Points: 11 |
Post Options
Thanks(0)
Posted: 17 May 2010 at 9:11am |
Hi folks, I am trying the sample for VB6 under Samples\CommandBars\VB\MDISample (13.3.1), when I add code: Workspace.EnableGroups
after
Set Workspace = CommandBars.ShowTabWorkspace(True)
The new documents I create, does not function properly and neither does the Workspace tab work correctly. When I check with C# sample, it works just fine. What may be the reason?
Thanks Sandy |
|
SuperMario
Admin Group Joined: 14 February 2004 Status: Offline Points: 18057 |
Post Options
Thanks(0)
|
can you be more specific as to "not function properly"?
|
|
checksandy
Groupie Joined: 17 May 2010 Status: Offline Points: 11 |
Post Options
Thanks(0)
|
The feature which I want to use in VB6 is described in your product preview http://codejock.com/products/commandbars/tour_60.asp?platform=com I added the Enablegroup in MDIForm_Load event of sample provided in Samples\CommandBars\VB\MDISample Private Sub MDIForm_Load() .. Set Workspace = CommandBars.ShowTabWorkspace(True) Workspace.EnableGroups .. .. End Sub The results and problems, which I get is given below 1. Title Bar starts appearing when I click File->New
2. On Selection of Document 1 Tab, the complete Tab Control vanish
|
|
JantjeKeizer
Groupie Joined: 12 February 2008 Status: Offline Points: 70 |
Post Options
Thanks(0)
|
Yeah, not doing what it should be doing
|
|
SuperMario
Admin Group Joined: 14 February 2004 Status: Offline Points: 18057 |
Post Options
Thanks(0)
|
Just set child form's BorderStyle = 0 - None and WindowState = 0 - Normal
|
|
SuperMario
Admin Group Joined: 14 February 2004 Status: Offline Points: 18057 |
Post Options
Thanks(0)
|
So it works for you now?
|
|
checksandy
Groupie Joined: 17 May 2010 Status: Offline Points: 11 |
Post Options
Thanks(0)
|
Yeah! It works just fine.
Though the trick is to call the LoadDoc after all the initialization such as Skins etc.
Thanks a lot for the tip SuperMario
|
|
checksandy
Groupie Joined: 17 May 2010 Status: Offline Points: 11 |
Post Options
Thanks(0)
|
I think there is a problem in my understanding and I noticed another problem with the popup that appears.
Lets say there are 3 Documents loaded initially.
When Document 2 is dragged, the Popup menu is displayed with Option: New Horizontal Tab group, New Vertical Tab Group and Cancel.
I create a Horizontal Tab group for Document 2
------
Now when I drag, Document 3, Option displayed are: New Horizontal Tab group, Move to Next Tab Group & Cancel
Actually I wanted a Vertical Tab group to be created for Document 3 which is not possible unless I bring all the documents together in Tabs, and start with New Vertical Tab Group. So, the result is, either I have all Horizontal Tab group or All vertical group.
I am not sure, whether I have to do anything programatically. Till now, I have not done anything in the Code for the popup
|
|
SuperMario
Admin Group Joined: 14 February 2004 Status: Offline Points: 18057 |
Post Options
Thanks(0)
|
you can't mix them..all horizontal or all vertical....maybe you want docking panes instead
|
|
checksandy
Groupie Joined: 17 May 2010 Status: Offline Points: 11 |
Post Options
Thanks(0)
|
So we can have either Hor/Ver Tab Groups. Already I am using Docking panes for some other view parts. When I see your sample application MDITabWindow I notice that I can make a window Dockable/Non Dockable from menu option. How do I achieve that for the forms. Do I have to create panes and do that or some flags need to be set?
|
|
checksandy
Groupie Joined: 17 May 2010 Status: Offline Points: 11 |
Post Options
Thanks(0)
|
I am still waiting for some solution to create tabbed workspace as shown in http://www.codejock.com/download/win64/MDITabWindow64.zip with docking features in VB6.. Please help me out Thanks
Sandy
|
|
SuperMario
Admin Group Joined: 14 February 2004 Status: Offline Points: 18057 |
Post Options
Thanks(0)
|
That sample uses docking panes, it simply removes the document from tab workspace and puts it in a docking pane.
|
|
checksandy
Groupie Joined: 17 May 2010 Status: Offline Points: 11 |
Post Options
Thanks(0)
|
It would be a great help if you could provide with code snippets
Thanks
Sandy
|
|
Post Reply | |
Tweet
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |