Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Command Bars
  New Posts New Posts RSS Feed - "Groups" for the TabWorkspace
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

"Groups" for the TabWorkspace

 Post Reply Post Reply
Author
Message
MNovaro View Drop Down
Groupie
Groupie
Avatar

Joined: 20 June 2006
Status: Offline
Points: 71
Post Options Post Options   Thanks (0) Thanks(0)   Quote MNovaro Quote  Post ReplyReply Direct Link To This Post Topic: "Groups" for the TabWorkspace
    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??
Back to Top
MNovaro View Drop Down
Groupie
Groupie
Avatar

Joined: 20 June 2006
Status: Offline
Points: 71
Post Options Post Options   Thanks (0) Thanks(0)   Quote MNovaro Quote  Post ReplyReply Direct Link To This Post Posted: 22 June 2006 at 5:58am

I also tried with .Refresh of the tabs, with no luck...
Any help on this?? Cry
Back to Top
Oleg View Drop Down
Admin Group
Admin Group


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post Posted: 22 June 2006 at 7:56am
hi,
EnableGroups must be called only once before any document created.
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
MNovaro View Drop Down
Groupie
Groupie
Avatar

Joined: 20 June 2006
Status: Offline
Points: 71
Post Options Post Options   Thanks (0) Thanks(0)   Quote MNovaro Quote  Post ReplyReply Direct Link To This Post 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
 
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.156 seconds.