Print Page | Close Window

"Groups" for the TabWorkspace

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Command Bars
Forum Description: Topics Related to Codejock Command Bars
URL: http://forum.codejock.com/forum_posts.asp?TID=4445
Printed Date: 24 November 2024 at 2:38am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: "Groups" for the TabWorkspace
Posted By: MNovaro
Subject: "Groups" for the TabWorkspace
Date Posted: 20 June 2006 at 9:29am

I'm not able to work out how to use the "Groups" for the TabWorkspace.
I like the group functionality, and I need to use it, but ...it does not work (as expected, at least!)

I did the following modifications to the "TabManager" sample:

insde the frmDocument, I added a command button with this code:

Private Sub Command1_Click()
    Dim a As TabControlItem
    
    With fMainForm.CommandBars.TabWorkspace
       
        Set a = .FindItem(Me.hwnd)
    
        .EnableGroups
        .CreateGroup a, True
        .GroupSplitter(0) = 1000
       
    End With
   
End Sub

I expected to see the current form becoming the "master" of a new group. But, what I see is only that the current form tab becomes invisible, and I can't see any group...

Any help on this??



Replies:
Posted By: MNovaro
Date Posted: 22 June 2006 at 5:58am

I also tried with .Refresh of the tabs, with no luck...
Any help on this?? Cry


Posted By: Oleg
Date Posted: 22 June 2006 at 7:56am
hi,
EnableGroups must be called only once before any document created.


-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS


Posted By: MNovaro
Date Posted: 23 June 2006 at 8:31am
Hi, Oleg

thanks for the reply.
I tried what you suggested, in the example "TabManager", calling this:

CommandBars.TabWorkspace.EnableGroups

in the MDIForm_Load procedure, before the call to LoadNewDoc. This ""works"", but has a strange behaviour, since:

1. the MDI child form "title bar" (i.e. the blue line with the tile above) is shown even if the form is maximized
2. trying to drag a form to create a new group, before showing the menu "create new group" I can't see any form for a while

So, I tried to create a new project, adding a MDI form + a child form and I wrote this simple code:

Private Sub MDIForm_Load()
    Dim a As Form1
    
    Dim Workspace  As TabWorkspace
    Set Workspace = CommandBars1.ShowTabWorkspace(True)
'    Workspace.EnableGroups

    Set a = New Form1
    a.Show

    Set a = New Form1
    a.Show
   
End Sub

This works, but if I uncomment the line "Workspace.EnableGroups", then NO MDI child forms are shown anymore!!
What's going on?
I think that I'm missing something basic, but where??

Thanks for the reply, again
Marco
 



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net